Sha256: 04e2001430ee19c6d6886303d521296a9388d2468af6144f19a6c16d56236254

Contents?: true

Size: 996 Bytes

Versions: 6

Compression:

Stored size: 996 Bytes

Contents

<strong>Possible Answers:</strong> enter each choice on a separate line.
<%= simple_fields_for 'question', @questions do |f| %>
  <%= f.input :answers_textbox, :as => :text, :wrapper_html => {:class=>'answers_collection'}, :label => false %>
  <!--  <%= f.simple_fields_for :answers do |a| %>
    <%= div_for(a.object) do %>
      <div id='original_choice', data-original_choice="<%= a.object.original_choice %>"></div>
      <div class="fields vertical_collection" style='display: table;'>
        <span class='fl ui-icon ui-icon-arrowthick-2-n-s answer_handle'>
          Move
        </span>
        <%= a.input :text, :as => :string, :label => false, :required => false, :wrapper_html=>{:class=>'fl notfirst'}%>
        <%= a.hidden_field :display_order %>
        <%= a.hidden_field :id %>
        <span class="fl notfirst">
          <%= link_to_remove_fields "remove", a %>
        </span>
      </div>
    <% end %>
  <% end -%>
  -->
  
  <%= render "answer_options", f: f %>
<% end -%>

Version data entries

6 entries across 6 versions & 2 rubygems

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