Sha256: bb9ab8f6b3548e14e8011faddb1f70b8802e94db0d5cd4c9d627c742a3bd63e8

Contents?: true

Size: 1.29 KB

Versions: 6

Compression:

Stored size: 1.29 KB

Contents

<%= simple_fields_for :question_group, @question_group do |qg| %>
  <div class="sortable_group_questions" id="sortable_question<%= @survey_section_id.to_s %>">
      <%= qg.simple_fields_for :questions do |q| %>
        <%= div_for(q.object, class: "group_inline_question") do %>
          <div class="handle"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span></div>
          <%= q.hidden_field :survey_section_id, value: @survey_section_id %>
          <%= q.hidden_field :id %>
          <%= q.input :text, label: false, as: :string, wrapper_html:{class: "question"} %>
          <%= q.input :question_type_id, label: false, collection: QuestionType.all.map{|t|[t.text, t.id]}[0..13].uniq.select{|c| [:box,:number,:date,:string,:dropdown,:pick_one,:pick_any, :slider, :stars, :file].include? c[1]}, wrapper_html:{class: "question"}   %>
          <%= q.input :answers_textbox, label: false, as: :text, wrapper_html:{class: "question group_answers_textbox"} %>
          
          <%= q.hidden_field :display_order %>
          <%= q.hidden_field :display_type %>
          <%= q.hidden_field :pick %>
          <span class="delete_group_inline_question">
            <%= link_to_remove_fields "remove", q, ".group_inline_question" %>
          </span>
        <% end -%>
      <% end -%>
  </div>
<% end -%>

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
upgrade_surveyor_gui-0.1.3 app/views/surveyor_gui/question_groups/_group_inline_field.html.erb
upgrade_surveyor_gui-0.1.2 app/views/surveyor_gui/question_groups/_group_inline_field.html.erb
surveyor_gui-0.1.2 app/views/surveyor_gui/question_groups/_group_inline_field.html.erb
surveyor_gui-0.1.1 app/views/surveyor_gui/question_groups/_group_inline_field.html.erb
surveyor_gui-0.1.0 app/views/surveyor_gui/question_groups/_group_inline_field.html.erb
surveyor_gui-0.0.3 app/views/question_groups/_group_inline_field.html.erb