Showing survey for users and handling authorization

This commit is contained in:
Shyukri Shyukriev 2016-06-30 13:04:07 +02:00
parent 9ce4ba6f6b
commit 67bccf0195
6 changed files with 44 additions and 6 deletions

View file

@ -14,11 +14,12 @@
choices )
- if survey_question.mandatory
%span.fa.fa-asterisk.text-danger
%p.pull-right
= link_to edit_admin_conference_survey_survey_question_path(@conference.short_title, @survey, survey_question) do
%span.fa.fa-edit
= link_to admin_conference_survey_survey_question_path(@conference.short_title, @survey, survey_question), method: :delete, data: { confirm: 'Are you sure you want to delete this question?' } do
%span.fa.fa-times
- if can? :edit, @survey
%p.pull-right
= link_to edit_admin_conference_survey_survey_question_path(@conference.short_title, @survey, survey_question) do
%span.fa.fa-edit
= link_to admin_conference_survey_survey_question_path(@conference.short_title, @survey, survey_question), method: :delete, data: { confirm: 'Are you sure you want to delete this question?' } do
%span.fa.fa-times
.panel-body
- if survey_question.boolean?
%input{type: 'radio', name: 'radio'}