Sha256: 706dcee83518f16b7e2bac270afdcf2c2570a223bcb0bb9e3ae9dc5e876f7b53

Contents?: true

Size: 1.41 KB

Versions: 5

Compression:

Stored size: 1.41 KB

Contents

#surveyor
  - form_tag(update_my_survey_path, :method => :put, :id => "survey_form", :class => @survey.custom_class) do
    = hidden_field_tag :current_section_id, @section.id
    - unless @sections.size < 3
      #menu
        = t('surveyor.sections')
        %ul
          - @sections.each do |s|
            %li{:class => ("active" if s == @section)}= menu_button_for(s)
    #header
      .title= @survey.title
    .previous_section= previous_section
    - unless @dependents.empty?
      #dependents
        .title Follow-up questions from your answers on the previous page
        -# @dependents.each_with_index do |question, index|
          = dependency_explanation_helper(question, @response_set)
          = render(:partial => question.custom_renderer || "/partials/question", :locals => {:question => question, :response_set => @response_set, :number => "D#{index+1}"})
    -# cache section if there are no responses for that section in th current response_set
    - if @response_set.no_responses_for_section?(@section)
      - cache("section_#{@section.id}") do
        -# cache
        = render(:partial => "/partials/section", :locals => {:section => @section, :questions => @questions, :response_set => @response_set})
    - else
      -# no cache
      = render(:partial => "/partials/section", :locals => {:section => @section, :questions => @questions, :response_set => @response_set})
    .next_section= next_section
      

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
surveyor-0.18.2 app/views/surveyor/edit.html.haml
surveyor-0.18.1 app/views/surveyor/edit.html.haml
surveyor-0.18.0 app/views/surveyor/edit.html.haml
surveyor-0.17.0 app/views/surveyor/edit.html.haml
surveyor-0.16.1 app/views/surveyor/edit.html.haml