[FIX] survey: improve the survey question form view
Right now, for the survey that has scoring enabled, when we try to add scored question, the label 'Scored' is displayed twice, which looks odd. With this commit we rearrange the 'is_scored_question' and 'answer_score' field, and display them next to each other to improve the view of survey question form view. task-2704057 closes odoo/odoo#82161 X-original-commit: c5c8f5ddfc3c89b92288fa9a72977835b7614ae4 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
@@ -126,9 +126,11 @@
|
||||
|
||||
<group attrs="{'invisible': ['|', ('scoring_type', '=', 'no_scoring'), ('question_type', 'not in', ['numerical_box', 'date', 'datetime'])]}">
|
||||
<label for="is_scored_question"/>
|
||||
<field name="is_scored_question"/>
|
||||
<field name="answer_score" nolabel="1" class="oe_inline" attrs="{'invisible': [('is_scored_question', '=', False)]}"/>
|
||||
<span class="oe_inline" attrs="{'invisible': [('is_scored_question', '=', False)]}">Points</span>
|
||||
<div name="survey_scored_question">
|
||||
<field name="is_scored_question" nolabel="1"/>
|
||||
<field name="answer_score" class="w-50 mx-2" attrs="{'invisible': [('is_scored_question', '=', False)]}" nolabel="1"/>
|
||||
<span attrs="{'invisible': [('is_scored_question', '!=', True)]}">Points</span>
|
||||
</div>
|
||||
</group>
|
||||
</group>
|
||||
<group attrs="{'invisible': [('question_type', 'not in', ['simple_choice', 'multiple_choice', 'matrix'])]}">
|
||||
|
||||
Reference in New Issue
Block a user