osem-fcy/app/views/admin/surveys/show.html.haml
2016-07-01 16:08:48 +03:00

19 lines
774 B
Text

.row
.col-md-12
.page-header
%h1
Survey #{@survey.title}
= link_to 'Edit Survey', edit_admin_conference_survey_path(@conference.short_title, @survey), class: 'btn btn-primary pull-right'
%p.text-muted
From:
= @survey.start_date
to
= @survey.end_date
.row
.col-md-12
= semantic_form_for 'survey_submission', url: '#' do |f|
- @survey.survey_questions.each.with_index(1) do |survey_question, index|
.row
.col-md-12
= render partial: 'survey_question', locals: { survey_question: survey_question, index: index, f: f }
= link_to 'Add Question', new_admin_conference_survey_survey_question_path(@conference.short_title, @survey), class: 'btn btn-success pull-right'