Sha256: d51986cd5094f845cb8fa4d6655b5c8eb55ac99ffe3aeeeb5f4312c14101c8c2

Contents?: true

Size: 1011 Bytes

Versions: 6

Compression:

Stored size: 1011 Bytes

Contents

#surveyor
  - unless (types = flash.keys.select{|k| [:notice, :error, :warning].include?(k)}).blank?
    .surveyor_flash
      = flash_messages(types)
      .close
  = semantic_form_for(@response_set, :as => :r, :url => update_my_survey_path, :html => {:method => :put, :id => "survey_form", :class => @survey.custom_class}) do |f|
  
    = hidden_field_tag :surveyor_javascript_enabled, false
  
    = render 'partials/section_menu' # unless @sections.size < 3
    .survey_title= @survey.title
    .previous_section= previous_section
    = render 'partials/dependents' unless @dependents.empty?
    - if false #@response_set.no_responses_for_section?(@section) # cache if response_set has no responses for current section
      = cache("section_#{@section.id}"){ render "/partials/section", :f => f }
    - else # no cache
      = render "/partials/section", :f => f
    .next_section= next_section
  %br

:javascript
  $(document).ready(function() {
    $("input#surveyor_javascript_enabled").val(true);
  });

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
surveyor-1.2.0 app/views/surveyor/edit.html.haml
surveyor-1.1.0 app/views/surveyor/edit.html.haml
surveyor-1.0.1 app/views/surveyor/edit.html.haml
surveyor-1.0.0 app/views/surveyor/edit.html.haml
surveyor-0.22.0 app/views/surveyor/edit.html.haml
surveyor-0.21.0 app/views/surveyor/edit.html.haml