Add surveys; custom generated by admins
Available during registration or after conference Co-authored-by: Shyukri <shshyukriev@suse.com> Co-authored-by: Henne <hvogel@opensuse.org> Co-authored-by: Moises <mdeniz@suse.com>
This commit is contained in:
parent
4e742d170f
commit
9f3c0eff5d
43 changed files with 701 additions and 17 deletions
|
|
@ -55,24 +55,17 @@
|
|||
= @registration.departure.strftime('%A, %B %-d. %Y %H:%M')
|
||||
- else
|
||||
You haven't scheduled your departure
|
||||
- if @conference.questions.any?
|
||||
- if @conference.surveys.for_registration.any?
|
||||
.row
|
||||
.col-md-12
|
||||
%h4
|
||||
%span.fa-stack
|
||||
%i.fa.fa-square-o.fa-stack-2x
|
||||
%i.fa.fa-info.fa-stack-1x
|
||||
Additional Info
|
||||
Surveys
|
||||
|
||||
%ul
|
||||
- @conference.questions.each do |q|
|
||||
%li
|
||||
%strong
|
||||
= q.title
|
||||
- if @registration.qanswers.any?
|
||||
- @registration.qanswers.where(question_id: q.id).each do |qa|
|
||||
= qa.answer.title
|
||||
- else
|
||||
You haven't answered
|
||||
= render partial: 'surveys/list', locals: { surveys: @conference.surveys.for_registration, conference: @conference }
|
||||
- if @registration.events.any?
|
||||
.row
|
||||
.col-md-12
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue