Check CfP existence in proposal form

This commit is contained in:
Stella Rouzi 2020-01-06 22:49:55 +02:00 committed by Henne Vogelsang
parent 823f41427f
commit cb7519f7a4
No known key found for this signature in database
GPG key ID: 9D6164C2955FADE0
2 changed files with 12 additions and 1 deletions

View file

@ -43,7 +43,7 @@
250
words.
- if current_user.is_admin? or @program.cfp.enable_registrations?
- if current_user.is_admin? or @program.cfp&.enable_registrations?
= f.inputs 'Enable pre-registration' do
= f.input :require_registration, label: 'Require participants to register to your event'
- message = @event.room ? "Value must be between 1 and #{@event.room.size}" : 'Check room capacity after scheduling.'