decidim-surveys/app/views/decidim/surveys/admin/surveys/_question.html.erb in decidim-0.4.4 vs decidim-surveys/app/views/decidim/surveys/admin/surveys/_question.html.erb in decidim-0.5.0

- old
+ new

@@ -9,25 +9,32 @@ </div> <div class="card-section"> <div class="row column"> <%= - translated_field_tag :text_field_tag, "survey[questions][]", "body", question.body, { + translated_field_tag( + :text_field_tag, + "survey[questions][]", + "body", + question.body, tabs_id: tabs_id_for_question(question), label: t('.statement'), disabled: disabled_for_question(survey, question), enable_tabs: question.persisted? - } + ) %> </div> <div class="row column"> <%= - check_box_tag "survey[questions][][mandatory]", "1", question.mandatory, { + check_box_tag( + "survey[questions][][mandatory]", + "1", + question.mandatory, id: mandatory_id_for_question(question), disabled: disabled_for_question(survey, question) - } + ) %> <%= label_tag "", t('activemodel.attributes.survey_question.mandatory'), for: mandatory_id_for_question(question) %> </div> <div class="row column"> @@ -52,6 +59,6 @@ <%= render "answer_option", question: question, answer_option: answer_option, idx: idx %> <% end %> </div> </div> </div> -</div> \ No newline at end of file +</div>