mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Requiring a ticket after registration is convoluted; while it may be neccesary for some workflows, it definitely isn't for others, and the core of osem doesn't need it... so let's make it optional.
45 lines
1.7 KiB
Text
45 lines
1.7 KiB
Text
.row
|
|
.col-md-12
|
|
.page-header
|
|
%h1 Registration Period
|
|
%p.text-muted
|
|
The stretch of time where people can register to your conference
|
|
- if @registration_period
|
|
.row
|
|
.col-md-8
|
|
%dl.dl-horizontal
|
|
%dt Start Date
|
|
%dd= @registration_period.start_date
|
|
%dt End Date
|
|
%dd= @registration_period.end_date
|
|
%dt Ticket required?
|
|
%dd= @conference.tickets.for_registration.any? ? 'Yes' : 'No'
|
|
|
|
.row
|
|
.col-md-12
|
|
%p
|
|
If you would like to require a ticket purchase for registration, at least
|
|
one
|
|
= link_to 'ticket', admin_conference_tickets_path(@conference)
|
|
must be set as a registration ticket, and the registration process
|
|
will not proceed without the purchase (or selection of a free) single
|
|
registration ticket.
|
|
%p
|
|
To make ticketing optional, do not mark any
|
|
= link_to 'tickets', admin_conference_tickets_path(@conference)
|
|
as registration tickets, and registration can proceed without them.
|
|
.row
|
|
.col-md-12.text-right
|
|
.btn-group{ role: 'group' }
|
|
- if @registration_period
|
|
- if can? :update, @registration_period
|
|
= link_to 'Edit', edit_admin_conference_registration_period_path,
|
|
class: 'btn btn-primary'
|
|
- if can? :destroy, @registration_period
|
|
= link_to 'Delete', admin_conference_registration_period_path,
|
|
method: :delete, data: { confirm: 'Are you sure?' },
|
|
class: 'btn btn-danger'
|
|
- elsif can? :create, @conference.build_registration_period
|
|
= link_to 'New Registration Period',
|
|
new_admin_conference_registration_period_path,
|
|
class: 'btn btn-primary'
|