Sha256: bad8f098c169f517a76860c0570547064303c4c6ee742b7b36860bde62628e12

Contents?: true

Size: 639 Bytes

Versions: 6

Compression:

Stored size: 639 Bytes

Contents

<!-- this code makes it possible to call this part of the view from either an ajax call
or a reference from the survey_sections.html.erb -->
<% if local_assigns[:f] -%>
  <%= render_questions_and_groups_helper q, s -%>
<% else -%>
  <%= simple_fields_for 'surveyform', @question.survey_section.survey do |sf| %>
    <%= sf.simple_fields_for :survey_sections do |ss| %>
    <% end %>
    <%= sf.simple_fields_for :survey_sections, @question.survey_section do |ss| %>
      <%= ss.simple_fields_for :questions, @question do |q| %>
        <%= render_questions_and_groups_helper q, ss -%>
      <% end %>
    <% end %>
  <% end %>
<% end -%>

Version data entries

6 entries across 6 versions & 2 rubygems

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