Registration tickets to be set for registration period
Admin must create at least one registration ticket before creating registration period.
This commit is contained in:
parent
22fc20468f
commit
157c270497
10 changed files with 27 additions and 5 deletions
|
|
@ -25,5 +25,12 @@
|
|||
= link_to 'Delete', admin_conference_registration_period_path,
|
||||
method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger'
|
||||
- else
|
||||
- if can? :create, @conference.build_registration_period
|
||||
= link_to 'New Registration Period', new_admin_conference_registration_period_path, class: 'btn btn-primary'
|
||||
- unless @conference.tickets.for_registration.empty?
|
||||
- if can? :create, @conference.build_registration_period
|
||||
= link_to 'New Registration Period', new_admin_conference_registration_period_path, class: 'btn btn-primary'
|
||||
- else
|
||||
.h3.text-left
|
||||
No Registration Tickets!
|
||||
%small
|
||||
= link_to 'Create registration tickets', new_admin_conference_ticket_path
|
||||
before creating the registration period.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue