update ticket purchase and conference registration views for new structure

This commit is contained in:
Rishabh Saxena 2016-06-18 18:32:21 +05:30
parent 14594c7a4d
commit b202984fa9
3 changed files with 28 additions and 28 deletions

View file

@ -9,7 +9,7 @@
= markdown(ticket.description)
%td.col-sm-1.col-md-1
- if ticket.bought?(current_user)
= text_field_tag("tickets[][#{ticket.id}]", ticket.quantity_bought_by(current_user),
= text_field_tag("tickets[][#{ticket.id}]", 0,
type: 'number', min: 0, class: "form-control quantity", 'data-id' => ticket.id)
- else
= text_field_tag("tickets[][#{ticket.id}]", 0, type: 'number', min: 0,