mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
* Survey period constraints * Add abilities * Enforce required questions * Update survey_submssion updated_at * Do a full match of possible answer and user reply
22 lines
882 B
Text
22 lines
882 B
Text
%span.badge
|
|
= question_index
|
|
= survey_question.title
|
|
|
|
- if survey_question.multiple_choice?
|
|
( Select
|
|
- if survey_question.min_choices != survey_question.max_choices
|
|
a minimum of
|
|
= survey_question.min_choices
|
|
- if survey_question.min_choices != survey_question.max_choices
|
|
and a maximum of
|
|
= survey_question.max_choices
|
|
choices )
|
|
- if survey_question.mandatory
|
|
%span.fa.fa-asterisk.text-danger
|
|
- if can? :edit, @survey
|
|
%p.pull-right
|
|
= "(#{survey_question.survey_replies.count} replies)"
|
|
= 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
|