Sha256: 85f1e78e87fa33ef1da7b42bd0ce263269a678268b73652a722d41727f75aceb

Contents?: true

Size: 775 Bytes

Versions: 5

Compression:

Stored size: 775 Bytes

Contents

<fieldset class="fields">
  <legend>Question <%= form.object.position %></legend>
  <div class="question">
    <%= form.label :prompt, "Label" %>
    <%= form.text_field :prompt %>
    <%= link_to_remove_fields "remove", form %>
    <br/>
    <%= form.label :data_type %>
    <%= form.collection_select :data_type, Census::DataType.all, :name, :name %>
  </div>
  <fieldset>
    <legend>Answer Choices (leave empty to allow freeform text entry)</legend>
    <% form.fields_for :choices do |builder| %>
      <%= render 'choice_fields', :form => builder %>
    <% end %>
    <div>
      <%= link_to_add_fields "Add Answer", form, :choices %>
    </div>
    <%= form.check_box :multiple %>
    <%= form.label :multiple, "Allow multiple selections" %>
  </fieldset>
</fieldset>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
census-0.3.1 app/views/census/data_groups/_question_fields.html.erb
census-0.3.0 app/views/census/data_groups/_question_fields.html.erb
census-0.2.1 app/views/census/data_groups/_question_fields.html.erb
census-0.2.0 app/views/census/data_groups/_question_fields.html.erb
census-0.1.0 app/views/census/data_groups/_question_fields.html.erb