[FIX] survey: align Survey Time Limit checkboxes on mobile
Steps to reproduce: - Go to Survey - Click on Create - Go to the "Options" tab and see 1) "Survey Time Limit" Field in "Questions" 2) "Attempts Limit" after clicking on "Login Required" Related task-ID: 1929043
This commit is contained in:
@@ -89,10 +89,12 @@
|
||||
<field name="questions_layout" widget="radio"
|
||||
attrs="{'readonly': [('session_state', 'in', ['ready', 'in_progress'])]}"/>
|
||||
<field name="progression_mode" widget="radio" />
|
||||
<label for="is_time_limited" string="Survey Time Limit"/>
|
||||
<div>
|
||||
<div colspan="2" class="o_checkbox_optional_field">
|
||||
<label for="is_time_limited" string="Survey Time Limit"/>
|
||||
<field name="is_time_limited" nolabel="1"/>
|
||||
<field name="time_limit" widget="float_time" attrs="{'invisible': [('is_time_limited', '=', False)]}" nolabel="1" class="oe_inline" /> <span attrs="{'invisible': [('is_time_limited', '=', False)]}"> minutes</span>
|
||||
<div attrs="{'invisible': [('is_time_limited', '=', False)]}">
|
||||
<field name="time_limit" widget="float_time" nolabel="1" class="oe_inline"/> minutes
|
||||
</div>
|
||||
</div>
|
||||
<field name="questions_selection" widget="radio" />
|
||||
<field name="users_can_go_back" string="Back Button" attrs="{'invisible': [('questions_layout', '=', 'one_page')]}"/>
|
||||
@@ -100,11 +102,13 @@
|
||||
<group string="Candidates" name="candidates">
|
||||
<field name="access_mode"/>
|
||||
<field name="users_login_required"/>
|
||||
<label for="is_attempts_limited" string="Attempts Limit"
|
||||
attrs="{'invisible': ['|', ('has_conditional_questions', '=', True), '&', ('access_mode', '=', 'public'), ('users_login_required', '=', False)]}"/>
|
||||
<div attrs="{'invisible': ['|', ('has_conditional_questions', '=', True), '&', ('access_mode', '=', 'public'), ('users_login_required', '=', False)]}">
|
||||
<div colspan="2" class="o_checkbox_optional_field"
|
||||
attrs="{'invisible': ['|', ('has_conditional_questions', '=', True), '&', ('access_mode', '=', 'public'), ('users_login_required', '=', False)]}">
|
||||
<label for="is_attempts_limited" string="Attempts Limit"/>
|
||||
<field name="is_attempts_limited" nolabel="1"/>
|
||||
<field name="attempts_limit" attrs="{'invisible': [('is_attempts_limited', '=', False)]}" nolabel="1" class="oe_inline" /> <span attrs="{'invisible': [('is_attempts_limited', '=', False)]}"> attempts</span>
|
||||
<div attrs="{'invisible': [('is_attempts_limited', '=', False)]}">
|
||||
<field name="attempts_limit" nolabel="1" class="oe_inline"/> attempts
|
||||
</div>
|
||||
</div>
|
||||
</group>
|
||||
<group string="Scoring" name="scoring">
|
||||
|
||||
Reference in New Issue
Block a user