limits max number of tickets
This commit is contained in:
parent
97b43d1a22
commit
716fda687b
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@
|
||||||
%td.col-sm-1.col-md-2.text-center
|
%td.col-sm-1.col-md-2.text-center
|
||||||
= ticket.registration_ticket? ? 'Yes' : 'No'
|
= ticket.registration_ticket? ? 'Yes' : 'No'
|
||||||
%td.col-sm-1.col-md-1
|
%td.col-sm-1.col-md-1
|
||||||
- options = { type: 'number', min: 0, class: "form-control quantity", 'data-id' => ticket.id }
|
- options = { type: 'number', min: 0, max: 99, class: "form-control quantity", 'data-id' => ticket.id }
|
||||||
- if ticket.registration_ticket?
|
- if ticket.registration_ticket?
|
||||||
- options[:max] = 1
|
- options[:max] = 1
|
||||||
- options[:disabled] = current_user.tickets.for_registration(ticket.conference).present?
|
- options[:disabled] = current_user.tickets.for_registration(ticket.conference).present?
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue