osem-fcy/app/views/surveys/show.html.haml

23 lines
899 B
Text
Raw Normal View History

.row
2016-07-01 16:08:48 +03:00
.col-md-10.col-md-offset-1
.page-header
%h1
Survey #{@survey.title}
- if can? :edit, @survey
= link_to 'Edit Survey', 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
2016-06-30 14:52:43 +02:00
.row
.col-md-12
2016-06-30 17:28:07 +02:00
= semantic_form_for @survey_submission, url: conference_survey_reply_path(@conference.short_title, @survey) do |f|
2016-07-01 16:08:48 +03:00
- @survey.survey_questions.each.with_index(1) do |survey_question|
2016-06-30 14:52:43 +02:00
.row
2016-07-01 16:08:48 +03:00
.col-md-10.col-md-offset-1
= f.semantic_fields_for :survey_reply do |myreply, index|
= render partial: 'admin/surveys/survey_question', locals: { survey_question: survey_question, index: index, myreply: myreply }
2016-06-30 14:52:43 +02:00
= f.submit 'Submit', class: 'btn btn-primary pull-right'