<?xml version="1.0" encoding="UTF-8"?>
<openerp>
    <data>

        <record id="signup_form_view" model="ir.ui.view">
            <field name="name">signup.signup.form</field>
            <field name="model">signup.signup</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Signup" version="7.0">
                    <field name="state" invisible="1"/>
                    <group colspan="4" states="draft,missmatch">
                        <field name="name" required="1"/>
                        <field name="email" required="1"/>
                        <field name="password" required='1' on_change="onchange_pw(password,password_confirmation)"/>
                        <field name="password_confirmation" required='1' on_change="onchange_pw(password,password_confirmation)"/>
                        <group colspan="4" states="missmatch">
                            <div>Passwords missmatch</div>
                        </group>
                        <group colspan="2" col="1">
                            <button string="Sign Up" name="signup" attrs="{'readonly': [('state', '=', 'missmatch')]}" type="object"/>
                        </group>
                    </group>
                    <group colspan="4" states="done" col="1">
                        <div>You can now login.</div>
                        <button special="cancel" string="Close"/>
                    </group>
                </form>
            </field>
        </record>

        <record id="signup_action" model="ir.actions.act_window">
            <field name="name">signup.signup</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">signup.signup</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="target">new</field>
        </record>

    </data>
</openerp>
