From 762c93498ebf085c132659d30655b891cac11ef4 Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Fri, 1 Jul 2016 10:58:44 +0200 Subject: [PATCH] Fix the survey view --- app/views/survey/show.html.haml | 41 +++++++++++++++++---------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/app/views/survey/show.html.haml b/app/views/survey/show.html.haml index d6babaa8..d7d5b689 100644 --- a/app/views/survey/show.html.haml +++ b/app/views/survey/show.html.haml @@ -1,21 +1,22 @@ -.row - .col-md-12 - .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 +.container + .row + .col-md-12 + .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 -.row - .col-md-12 - = 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| - .row - .col-md-12 - = render partial: 'admin/surveys/survey_question', locals: { survey_question: survey_question, index: index, f: f } - = f.submit 'Submit', class: 'btn btn-primary pull-right' + .row + .col-md-12 + = 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| + .row + .col-md-12 + = render partial: 'admin/surveys/survey_question', locals: { survey_question: survey_question, index: index, f: f } + = f.submit 'Submit', class: 'btn btn-primary pull-right'