<h3>Question</h3>

<%= form_for form, as: :question, url: url, method: method do |f| %>
  <%- unless form.errors.empty? %>
    <ul>
      <%- form.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
    </ul>
  <% end %>

  <%= f.label :type %>
  <%= f.select :type, ::Rapidfire::QuestionForm::QUESTION_TYPES, {}, id: "question_type" %>

  <%= f.label :question_text %>
  <%= f.text_field :question_text %>

  <%= f.label :answer_options %>
  <%= f.text_area :answer_options, rows: 5 %>

  <h4>Other options</h4>
  <hr/>

  <%= f.label :answer_presence %>
  <%= f.check_box :answer_presence %>

  <%= f.label :answer_minimum_length %>
  <%= f.text_field :answer_minimum_length %>

  <%= f.label :answer_maximum_length %>
  <%= f.text_field :answer_maximum_length %>

  <%= f.label :answer_greater_than_or_equal_to %>
  <%= f.text_field :answer_greater_than_or_equal_to %>

  <%= f.label :answer_less_than_or_equal_to %>
  <%= f.text_field :answer_less_than_or_equal_to %>

  <%= f.submit submit_text %>
<% end %>

<h3>Question</h3>

<%= form_for form, as: :question, url: url, method: method do |f| %>
  <%- unless form.errors.empty? %>
    <ul>
      <%- form.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
    </ul>
  <% end %>

  <%= f.label :type %>
  <%= f.select :type, ::Rapidfire::QuestionForm::QUESTION_TYPES, {}, id: "question_type" %>

  <%= f.label :question_text %>
  <%= f.text_field :question_text %>

  <%= f.label :position %>
  <%= f.text_field :position %>

  <%= f.label :answer_options %>
  <%= f.text_area :answer_options, rows: 5 %>

  <h4>Other options</h4>
  <hr/>

  <%= f.label :answer_presence %>
  <%= f.check_box :answer_presence %>

  <%= f.label :answer_minimum_length %>
  <%= f.text_field :answer_minimum_length %>

  <%= f.label :answer_maximum_length %>
  <%= f.text_field :answer_maximum_length %>

  <%= f.label :answer_greater_than_or_equal_to %>
  <%= f.text_field :answer_greater_than_or_equal_to %>

  <%= f.label :answer_less_than_or_equal_to %>
  <%= f.text_field :answer_less_than_or_equal_to %>

  <%= f.submit submit_text %>
<% end %>

Add position-field to questions form
Add position-field to questions form
