Fix the survey view
This commit is contained in:
parent
805cbb9606
commit
762c93498e
1 changed files with 21 additions and 20 deletions
|
|
@ -1,21 +1,22 @@
|
||||||
.row
|
.container
|
||||||
.col-md-12
|
.row
|
||||||
.page-header
|
.col-md-12
|
||||||
%h1
|
.page-header
|
||||||
Survey #{@survey.title}
|
%h1
|
||||||
- if can? :edit, @survey
|
Survey #{@survey.title}
|
||||||
= link_to 'Edit Survey', admin_conference_survey_path(@conference.short_title, @survey), class: 'btn btn-primary pull-right'
|
- if can? :edit, @survey
|
||||||
%p.text-muted
|
= link_to 'Edit Survey', admin_conference_survey_path(@conference.short_title, @survey), class: 'btn btn-primary pull-right'
|
||||||
From:
|
%p.text-muted
|
||||||
= @survey.start_date
|
From:
|
||||||
to
|
= @survey.start_date
|
||||||
= @survey.end_date
|
to
|
||||||
|
= @survey.end_date
|
||||||
|
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
= semantic_form_for @survey_submission, url: conference_survey_reply_path(@conference.short_title, @survey) do |f|
|
= semantic_form_for @survey_submission, url: conference_survey_reply_path(@conference.short_title, @survey) do |f|
|
||||||
- @survey.survey_questions.each.with_index(1) do |survey_question, index|
|
- @survey.survey_questions.each.with_index(1) do |survey_question, index|
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
= render partial: 'admin/surveys/survey_question', locals: { survey_question: survey_question, index: index, f: f }
|
= render partial: 'admin/surveys/survey_question', locals: { survey_question: survey_question, index: index, f: f }
|
||||||
= f.submit 'Submit', class: 'btn btn-primary pull-right'
|
= f.submit 'Submit', class: 'btn btn-primary pull-right'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue