Changing form for surveys

This commit is contained in:
Shyukri Shyukriev 2016-06-30 14:52:43 +02:00
parent 463a242c24
commit f433786c61
2 changed files with 16 additions and 15 deletions

View file

@ -10,9 +10,12 @@
= @survey.start_date
to
= @survey.end_date
.row
.col-md-12
- @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 }
= semantic_form_for @survey, 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'