Sha256: 9de6f5de4e451725392445bab2a007aab0ebc56dc0837b9e77585550364e2b59
Contents?: true
Size: 848 Bytes
Versions: 6
Compression:
Stored size: 848 Bytes
Contents
<%= simple_fields_for 'Question', @question do |f| %> <span class='fl'> Generate list from a database field? </span> <%= f.input :dynamically_generate, :as => :radio_buttons, :label => false, :wrapper_html=>{:class=>'fl notfirst'}, :input_html=>{:class=>'fl notfirst'} %><br /><br /> <div id="dynamic_source"> Specify statement used to generate list:<br /> <%= f.input :dynamic_source, :label=>false %> </div> <div id="fixed_source"> <strong>Possible Answers:</strong> <div id='sortable_answers'> <%= f.simple_fields_for @answers do |a| %> <%= render 'answer_fields', :a => a %> <% end %> <p class="floatdown2"> Add Possible Answer<%= link_to_add_fields "Add Answer", @questions.id, f, :answers, 'a' %> </p> </div> </div> <% end %>
Version data entries
6 entries across 6 versions & 2 rubygems