Sha256: 8b7a1994c3f6dce9bc429b765f07a0ebe51378d6d39757c24e2e4398b2a0dc26

Contents?: true

Size: 1.94 KB

Versions: 10

Compression:

Stored size: 1.94 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
          - if item.pass?
            %tr.refund-pass-row
              %td="Pass"
              %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", :id => "issue-refund-button", :disable_with => "Refunding..."

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
artfully_ose-1.3.0.pre4 app/views/refunds/new.html.haml
artfully_ose-1.3.0.pre3 app/views/refunds/new.html.haml
artfully_ose-1.3.0.pre2 app/views/refunds/new.html.haml
artfully_ose-1.3.0.pre1 app/views/refunds/new.html.haml
artfully_ose-1.2.0 app/views/refunds/new.html.haml
artfully_ose-1.2.0.beta.1 app/views/refunds/new.html.haml
artfully_ose-1.2.0.alpha.2 app/views/refunds/new.html.haml
artfully_ose-1.2.0.alpha.1 app/views/refunds/new.html.haml
artfully_ose-1.2.0.pre.27 app/views/refunds/new.html.haml
artfully_ose-1.2.0.pre.26 app/views/refunds/new.html.haml