Retire semantic_form_for

Also a buttload of form cleanups...
This commit is contained in:
Henne Vogelsang 2022-02-23 17:52:16 +01:00
parent 350b1ebbbe
commit 81853d1ef9
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
136 changed files with 1825 additions and 1441 deletions

View file

@ -1,10 +1,17 @@
.row
.col-md-6
%legend Question
= f.input :title, label: 'Your Question'
= f.input :question_type
= f.input :global, label: 'Make Global',
hint: '(Global questions are available for selection to all conferences)'
.form-group
= f.label :title, 'Your Question'
= f.text_field :title, class: 'form-control'
.form-group
= f.select :question_type_id, QuestionType.all.pluck(:title, :id), {}, { class: 'form-control' }
.checkbox
%label
= f.check_box :global
Make Global
%span.help-block
Global questions are available for selection to all conferences
.col-md-6.hidden{id: 'answers_col'}
= dynamic_association :answers, 'Answers', f,
hint: 'Insert your answers in the order you want them to appear'