Sha256: 35167e3e31a1337f6fa878d951cc1f5e5fc09fd061cb790dbc4c99c8bb3d4cd6
Contents?: true
Size: 1 KB
Versions: 3
Compression:
Stored size: 1 KB
Contents
<h3>Question</h3> <%= form_for [@question_group, question] do |f| %> <%- unless question.errors.empty? %> <ul> <%- question.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 %> <% end %>
Version data entries
3 entries across 3 versions & 2 rubygems