Sha256: 0a6674e1507fc272aa56048710419aac510fc29171720408090ef9747f0b85c1

Contents?: true

Size: 1.67 KB

Versions: 15

Compression:

Stored size: 1.67 KB

Contents

#items
  = form_tag do
    -unless is_child
      .row-fluid
        .span4.grouped-form-target{:style => 'width:210px'}
        .span8{:style => 'margin-top:5px'}
          %span.help.tight{'data-placement' => 'bottom', 'data-title' => 'Refund/Exchange/Return', 'data-content' => "<p><b>Refund</b> Refunds full price of the ticket to the patron.</p><br/><p><b>Exchange</b> Swaps this ticket for another ticket, no money is charged or refunded.</p><br/><p><b>Return</b> Returns a ticket to inventory.  Use this to return comp'd tickets.".html_safe} ?
    %table.zebra.table#item-table
      %thead
        %tr
          %th.grouped-checkbox= check_box_tag :all, nil, false, :class => :checkall
          %th Item
          %th Price Paid
          %th Discount
          %th
      %tbody
        - order.all_items.each do |item|
          %tr{:id => "row_item_#{item.id}", :class => item.state}
            %td.grouped-checkbox= check_box_tag "item_#{item.id}", item.id, false, :disabled => true
            %td.item-description
              - if item.product_type.eql?("Ticket")
                %span=(item.state.eql?("refund") ? "Refund for" : "Ticket to")
                %span
                  #{link_to "#{item.product.event.name}", event_path(item.product.event)},
                  #{link_to "#{l item.product.datetime}", event_show_path(item.product.show.event, item.product.show)}
              - if item.product_type.eql?("Donation")
                %span Donation
            %td.price= amount_and_nongift item
            %td
              =item.discount.try(:code)
            %td.state
              -if (item.product_type.eql?('Ticket') && !item.purchased?)
                = item.state.capitalize

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.pre.16 app/views/orders/_item_table.haml
artfully_ose-1.2.0.pre.15 app/views/orders/_item_table.haml
artfully_ose-1.2.0.pre.12 app/views/orders/_item_table.haml
artfully_ose-1.2.0.pre.11 app/views/orders/_item_table.haml
artfully_ose-1.2.0.pre.10 app/views/orders/_item_table.haml
artfully_ose-1.2.0.pre.9 app/views/orders/_item_table.haml
artfully_ose-1.2.0.pre.8 app/views/orders/_item_table.haml
artfully_ose-1.2.0.pre.7 app/views/orders/_item_table.haml
artfully_ose-1.2.0.pre.6 app/views/orders/_item_table.haml
artfully_ose-1.2.0.pre.5 app/views/orders/_item_table.haml
artfully_ose-1.2.0.pre.4 app/views/orders/_item_table.haml
artfully_ose-1.2.0.pre.3 app/views/orders/_item_table.haml
artfully_ose-1.2.0.pre.2 app/views/orders/_item_table.haml
artfully_ose-1.2.0.pre.1 app/views/orders/_item_table.haml
artfully_ose-1.2.0.pre app/views/orders/_item_table.haml