[IMP] Update fields layout and UX

This commit is contained in:
Pablo
2019-03-28 18:49:41 +01:00
parent 3d34ab2f2c
commit a5b3ec8f57
2 changed files with 16 additions and 13 deletions

View File

@@ -16,13 +16,13 @@
<group colspan="8" col="8"> <group colspan="8" col="8">
<field name="date_start" required="1" colspan="4"/> <field name="date_start" required="1" colspan="4"/>
<field name="date_end" required="1" colspan="4" /> <field name="date_end" required="1" colspan="4" />
<field name="dmo" colspan="2" /> <field name="dmo" />
<field name="dtu" colspan="2" /> <field name="dtu" />
<field name="dwe" colspan="2" /> <field name="dwe" />
<field name="dth" colspan="2" /> <field name="dth" />
<field name="dfr" colspan="2" /> <field name="dfr" />
<field name="dsa" colspan="2" /> <field name="dsa" />
<field name="dsu" colspan="2" /> <field name="dsu" />
</group> </group>
<!-- Restricion Fields --> <!-- Restricion Fields -->
<group col="4" colspan="4" attrs="{'invisible':[('section', '!=', 'restrictions')]}"> <group col="4" colspan="4" attrs="{'invisible':[('section', '!=', 'restrictions')]}">

View File

@@ -8,17 +8,20 @@
<xpath expr="//form/group[last()]" position="after"> <xpath expr="//form/group[last()]" position="after">
<!-- Availability Fields --> <!-- Availability Fields -->
<group col="8" colspan="8" attrs="{'invisible':[('section', '!=', 'avail')]}"> <group col="8" colspan="8" attrs="{'invisible':[('section', '!=', 'avail')]}">
<field name="change_max_avail" string=""/> <field name="change_max_avail"/>
<field name="max_avail" <field name="max_avail"
attrs="{'readonly':[('change_max_avail', '=', False)]}" /> attrs="{'readonly':[('change_max_avail', '=', False)],
'invisible':[('change_max_avail', '=', False)]}"/>
<field name="change_quota" string=""/> <field name="change_quota"/>
<field name="quota" <field name="quota"
attrs="{'readonly':[('change_quota', '=', False)]}" /> attrs="{'readonly':[('change_quota', '=', False)],
'invisible':[('change_quota', '=', False)]}"/>
<field name="change_no_ota" string=""/> <field name="change_no_ota"/>
<field name="no_ota" <field name="no_ota"
attrs="{'readonly':[('change_no_ota', '=', False)]}" /> attrs="{'readonly':[('change_no_ota', '=', False)],
'invisible':[('change_no_ota', '=', False)]}"/>
</group> </group>
</xpath> </xpath>
</field> </field>