Sha256: 9da5127f88ba89307f6a38b9c94249614182fc5491a35178463ad6874d444696

Contents?: true

Size: 1.69 KB

Versions: 1

Compression:

Stored size: 1.69 KB

Contents

.helena-admin
  %h2
    = Helena::Survey.model_name.human(count: 2)
    = "(#{@surveys.count})"
  - if @surveys.empty?
    .alert.alert-warning
      = t('.empty')
  - else
    - @surveys.each do |survey|
      %div[survey]
        %h3= survey.name
        - if survey.draft_version.survey_detail.present?
          %h4= survey.draft_version.survey_detail.title
          %p= survey.draft_version.survey_detail.description
          - if survey.tag_list.present?
            %p
              = "#{Helena::Survey.human_attribute_name :tags}:"
              = survey.tag_list
        .btn-group
          - unless survey.last?
            = link_to move_down_admin_survey_path(survey), class: 'btn btn-primary', method: :patch, title: t('shared.move_down')  do
              %i.glyphicon.glyphicon-chevron-down
          - unless survey.first?
            = link_to move_up_admin_survey_path(survey), class: 'btn btn-primary', method: :patch, title: t('shared.move_up')   do
              %i.glyphicon.glyphicon-chevron-up

          = link_to t('shared.edit'), edit_admin_survey_path(survey), class: 'btn btn-primary'
          = link_to Helena::QuestionGroup.model_name.human(count: 2), admin_survey_question_groups_path(survey), class: 'btn btn-primary'
          = link_to Helena::Session.model_name.human(count: 2), admin_survey_sessions_path(survey), class: 'btn btn-primary'
          = link_to Helena::Version.model_name.human(count: 2), admin_survey_versions_path(survey), class: 'btn btn-primary'
          = link_to t('shared.delete'), admin_survey_path(survey), method: :delete, class: 'btn btn-danger', data: { confirm: t('shared.delete_question') }

  %br
  %a.btn.btn-success{ href:  new_admin_survey_path}
    = t '.add'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
helena-0.3.3 app/views/helena/admin/surveys/index.html.haml