Sha256: 29e743b4504b1cd9acf20296eeba87f52324fdaf59452958785b7b1561588fdb

Contents?: true

Size: 1.75 KB

Versions: 7

Compression:

Stored size: 1.75 KB

Contents

- in_section :transactions

.row
  .span8.offset2#refund-contaner
    %h1 Refund Order

    %p
    -if @order.credit?
      ="#{@order.person} will receive a refund credited to the card that he/she used to as payment for this order."
    -else
      ="#{@order.person} paid with #{@order.payment_method.downcase}. Artful.ly will process the tickets and donations as refunded but you'll need to settle any money owed to #{@order.person} manually." 


    = form_tag refunds_path do
      = hidden_field_tag :order_id, @order.id
      - @items.each do |item|
        = hidden_field_tag "items[]", item.id

      %h2=refund_header(@items)

      %table.table#refund-ticket-table
        %thead
          %tr
            %th
              Details
            %th.right
              Sold
        - @items.each do |item|
          - if item.ticket?
            %tr.refund-ticket-row
              %td="#{item.product.show.event.name} #{l item.product.show.datetime_local_to_event, :format => :short}"
              %td.right=number_as_cents item.price
          - if item.donation?
            %tr.refund-donation-row
              %td="Donation"
              %td.right=number_as_cents item.price

      %h2 Options
      .well

        - unless @order.skip_confirmation_email?
          .control-group
            .controls
              %label.checkbox
                = check_box_tag :send_email_confirmation, "1", ""
                ="Send an email confirmation to #{@order.person.email}."

        - if @items.select(&:ticket?).any?
          .control-group
            .controls
              %label.checkbox
                = check_box_tag :return_to_inventory, "1", ""
                ="Put these tickets back on sale."

      %p
        = submit_tag "Issue Refund ", :class => "btn"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.pre.23 app/views/refunds/new.html.haml
artfully_ose-1.2.0.pre.21 app/views/refunds/new.html.haml
artfully_ose-1.2.0.pre.20 app/views/refunds/new.html.haml
artfully_ose-1.2.0.pre.19 app/views/refunds/new.html.haml
artfully_ose-1.2.0.pre.18 app/views/refunds/new.html.haml
artfully_ose-1.2.0.pre.17 app/views/refunds/new.html.haml
artfully_ose-1.2.0.pre.16 app/views/refunds/new.html.haml