Sha256: 526c0d24f57eb20a7be8dbcc6375c9bb254a07bab14979b66fbd6a3fc244f64f
Contents?: true
Size: 1.66 KB
Versions: 2
Compression:
Stored size: 1.66 KB
Contents
<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 %> <div class="form-group"> <%= f.label :type %> <%= f.select :type, ::Rapidfire::QuestionForm::QUESTION_TYPES, {}, id: "question_type" %> </div> <div class="form-group"> <%= f.label :question_text %> <%= f.text_area :question_text, rows: 5 %> </div> <div class="form-group"> <%= f.label :position %> <%= f.number_field :position %> </div> <div class="form-group"> <%= f.label :placeholder %> <%= f.text_field :placeholder %> </div> <div class="form-group"> <%= f.label :default_text %> <%= f.text_field :default_text %> </div> <div class="form-group"> <%= f.label :answer_options %> <%= f.text_area :answer_options, rows: 5 %> </div> <h4>Other options</h4> <hr/> <div class="form-group"> <%= f.label :answer_presence %> <%= f.check_box :answer_presence %> </div> <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 %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rapidfire-8.0.0 | app/views/rapidfire/questions/_form.html.erb |
rapidfire-5.0.0 | app/views/rapidfire/questions/_form.html.erb |