Sha256: 77c1f369a6fe081f9ffa0178599f6977314b65bef02dc7d47c7a2fce9d53514b

Contents?: true

Size: 742 Bytes

Versions: 2

Compression:

Stored size: 742 Bytes

Contents

#surveyor
  - unless (types = flash.keys.select{|k| [:notice, :error, :warning].include?(k)}).blank?
    .surveyor_flash
      = flash_messages(types)
      .close
  .survey_title= t('surveyor.take_these_surveys')
  %br
  #survey_list
    %ul
      - unless @surveys.empty?
        - @surveys.each do |survey|
          %li
            = form_tag(take_survey_path(:survey_code => survey.access_code)) do 
              = hidden_field_tag :surveyor_javascript_enabled, false              

              = survey.title
               
              = submit_tag( t('surveyor.take_it') )
      - else
        %li
          No surveys

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
surveyor-0.22.0 app/views/surveyor/new.html.haml
surveyor-0.21.0 app/views/surveyor/new.html.haml