Add surveys to proposal todo list
This commit is contained in:
parent
f8d6283f44
commit
1260786a62
8 changed files with 25 additions and 2 deletions
|
|
@ -67,6 +67,11 @@
|
|||
%td= link_to "#{'Speaker'.pluralize(@event.speakers.count)} must be registered to the conference", admin_conference_registrations_path(@event.program.conference.short_title)
|
||||
%td{ 'class' => class_for_todo(progress_status['registered']) }
|
||||
%span{ 'class' => [icon_for_todo(progress_status['registered']), 'fa-lg'] }
|
||||
- unless progress_status['surveys'].nil?
|
||||
%tr
|
||||
%td= link_to 'Respond to surveys', admin_conference_surveys_path(@event.program.conference.short_title)
|
||||
%td{ 'class' => class_for_todo(progress_status['surveys']) }
|
||||
%span{ 'class' => [icon_for_todo(progress_status['surveys']), 'fa-lg'] }
|
||||
%tr
|
||||
%td
|
||||
- speakers_count = @event.speakers.count
|
||||
|
|
|
|||
|
|
@ -7,6 +7,10 @@
|
|||
Speaker(s) registered to the conference
|
||||
- else
|
||||
= link_to 'Speaker(s) not registered to the conference', new_conference_conference_registration_path(event.program.conference.short_title)
|
||||
- unless progress_status['surveys'].nil?
|
||||
%li{'class'=>class_for_todo(progress_status['surveys'])}
|
||||
%span{'class'=>icon_for_todo(progress_status['surveys'])}
|
||||
= link_to 'Respond to surveys', '#surveys'
|
||||
%li{'class'=>class_for_todo(progress_status['biographies'])}
|
||||
%span{'class'=>icon_for_todo(progress_status['biographies'])}
|
||||
- if progress_status['biographies']
|
||||
|
|
|
|||
|
|
@ -121,6 +121,6 @@
|
|||
- if @surveys.any?
|
||||
.row
|
||||
.col-md-12
|
||||
%h2 Surveys
|
||||
%h2#surveys Surveys
|
||||
|
||||
= render partial: 'surveys/list', locals: { surveys: @surveys, conference: @conference }
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
- surveys.each do |survey|
|
||||
- if survey.survey_submissions.find_by(user: current_user)
|
||||
- if survey.replied?(current_user)
|
||||
%i.fa-solid.fa-square-check.text-success{ title: 'Thank you for filling out the survey' }
|
||||
- else
|
||||
%i.fa-solid.fa-square-minus.text-danger{ title: 'Please fill out the survey' }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue