Add survey with target after_event
This commit is contained in:
parent
e1adf28081
commit
9908f88570
10 changed files with 45 additions and 9 deletions
|
|
@ -38,7 +38,7 @@
|
|||
class: 'rating myrating'
|
||||
- else
|
||||
= rating_stars(event.user_rating(current_user), max_rating, voted: true)
|
||||
= (Voting period is closed)
|
||||
(Voting period is closed)
|
||||
|
||||
- if show_votes
|
||||
- unless votes.blank?
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@
|
|||
%b State
|
||||
%th
|
||||
.fa.fa-comment
|
||||
%th Add Survey
|
||||
- @events.each do |event|
|
||||
= render 'datatable_row',
|
||||
event: event,
|
||||
|
|
|
|||
|
|
@ -52,5 +52,5 @@
|
|||
= link_to 'Unsubscribe', conference_subscriptions_path(conference.short_title), method: :delete, class: 'btn btn-default'
|
||||
- if current_user && current_user.physical_tickets.by_conference(conference).any?
|
||||
= link_to 'My Tickets', conference_physical_tickets_path(conference.short_title), class: 'btn btn-default'
|
||||
- surveys = conference.surveys.after_conference.select(&:active?)
|
||||
= link_to 'Surveys', conference_surveys_path(conference.short_title), class: 'btn btn-default' if surveys.any?
|
||||
- surveys_after_conference = conference.surveys.after_conference.select(&:active?)
|
||||
= link_to 'Surveys', conference_surveys_path(conference.short_title), class: 'btn btn-default' if surveys_after_conference.any? && conference.ended?
|
||||
|
|
|
|||
|
|
@ -122,3 +122,8 @@
|
|||
%dt Room:
|
||||
%dd
|
||||
= event.room.name
|
||||
.row
|
||||
.col-md-12
|
||||
- if @surveys_after_event.any? && @event.ended?
|
||||
.page-header
|
||||
= render partial: 'surveys/list', locals: { surveys: @surveys_after_event, conference: @conference }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue