app/views/rapidfire/questions/_form.html.erb in rapidfire-3.0.0 vs app/views/rapidfire/questions/_form.html.erb in rapidfire-3.1.0

- old
+ new

@@ -7,34 +7,65 @@ <li><%= message %></li> <% end %> </ul> <% end %> - <%= f.label :type %> - <%= f.select :type, ::Rapidfire::QuestionForm::QUESTION_TYPES, {}, id: "question_type" %> + <div class="form-group"> + <%= f.label :type %> + <%= f.select :type, ::Rapidfire::QuestionForm::QUESTION_TYPES, {}, id: "question_type" %> + </div> - <%= f.label :question_text %> - <%= f.text_field :question_text %> + <div class="form-group"> + <%= f.label :question_text %> + <%= f.text_field :question_text %> + </div> - <%= f.label :answer_options %> - <%= f.text_area :answer_options, rows: 5 %> + <div class="form-group"> + <%= f.label :position %> + <%= f.number_field :position %> + </div> - <h4>Other options</h4> - <hr/> + <div class="form-group"> + <%= f.label :placeholder %> + <%= f.text_field :placeholder %> + </div> - <%= f.label :answer_presence %> - <%= f.check_box :answer_presence %> + <div class="form-group"> + <%= f.label :default_text %> + <%= f.text_field :default_text %> + </div> - <%= f.label :answer_minimum_length %> - <%= f.text_field :answer_minimum_length %> + <div class="form-group"> + <%= f.label :answer_options %> + <%= f.text_area :answer_options, rows: 5 %> + </div> - <%= f.label :answer_maximum_length %> - <%= f.text_field :answer_maximum_length %> + <h4>Other options</h4> + <hr/> - <%= f.label :answer_greater_than_or_equal_to %> - <%= f.text_field :answer_greater_than_or_equal_to %> + <div class="form-group"> + <%= f.label :answer_presence %> + <%= f.check_box :answer_presence %> + </div> - <%= f.label :answer_less_than_or_equal_to %> - <%= f.text_field :answer_less_than_or_equal_to %> + <div class="form-group"> + <%= f.label :answer_minimum_length %> + <%= f.text_field :answer_minimum_length %> + </div> + + <div class="form-group"> + <%= f.label :answer_maximum_length %> + <%= f.text_field :answer_maximum_length %> + </div> + + <div class="form-group"> + <%= f.label :answer_greater_than_or_equal_to %> + <%= f.text_field :answer_greater_than_or_equal_to %> + </div> + + <div class="form-group"> + <%= f.label :answer_less_than_or_equal_to %> + <%= f.text_field :answer_less_than_or_equal_to %> + </div> <%= f.submit submit_text %> <% end %>