app/views/store/shows/_show.html.haml in artfully_ose-1.2.0.pre.23 vs app/views/store/shows/_show.html.haml in artfully_ose-1.2.0.pre.24
- old
+ new
@@ -19,11 +19,11 @@
%tr
%td.ticket-type-name
= ticket_type.name
%td.right.span2.ticket-type-price
%span{:class => 'price'}= number_as_cents(ticket_type.price)
- %td.right.span4
+ %td.right.span4.controls
= form_tag store_order_path(@store_organization.cached_slug), :class => 'add-tickets-to-cart', :id => "add-tickets-to-cart-#{ticket_type.id}" do
= hidden_field_tag :show_id, show.id
= hidden_field_tag :ticket_type_id, ticket_type.id
= hidden_field_tag :section_name, ticket_type.name
= hidden_field_tag :ticket_price, ticket_type.price
@@ -33,10 +33,10 @@
%select{:style => "width:140px", :class => 'ticket-type-quantity', :id => 'quantity', :name => 'quantity'}
%option SOLD OUT
- else
= select_tag :quantity, options_for_select((1..[10, available].min).to_a.map {|i| [pluralize(i, 'Ticket'), i]}), :style => "width:140px", :class => 'ticket-type-quantity'
- = submit_tag 'Add to cart', :class => 'btn btn-primary'
+ = submit_tag 'Add to cart', :class => 'add-to-cart btn btn-primary'
%tr.no-border
%td.ticket-type-description{:colspan => "4"}
-unless ticket_type.description.nil?
-description = ticket_type.description
-if description.length > 150