Supports talks without speakers

Admins may want to have discussions or any other general activity
that does not have any particular speaker. Thus, speaker validation
is removed.

Closes https://github.com/openSUSE/osem/issues/2520
This commit is contained in:
snpd 2019-09-04 17:48:18 +05:30
parent fef08bf951
commit 4b3c10f52c
7 changed files with 54 additions and 34 deletions

View file

@ -24,11 +24,15 @@
Unknown submitter
%td
- event.speakers_ordered.each do |speaker|
.speaker
= link_to speaker.name, admin_user_path(speaker)
- unless speaker.registrations.for_conference(event.conference)
%span.label.label-danger Unregistered
-if event.speakers.any?
- event.speakers_ordered.each do |speaker|
.speaker
= link_to speaker.name, admin_user_path(speaker)
- unless speaker.registrations.for_conference(event.conference)
%span.label.label-danger Unregistered
-else
.small
No Speaker
- if @program.languages.present?
%td

View file

@ -71,7 +71,7 @@
%td
- if @event.speakers.count == 1
= link_to 'Fill out speaker\'s biography', edit_admin_user_path(@event.speakers.first)
- else
- elsif @event.speakers.count > 1
Fill out speaker's biography:
= speaker_links(@event)
%td{ 'class' => class_for_todo(progress_status['biographies']) }