app/views/refunds/new.html.haml in artfully_ose-1.1.0 vs app/views/refunds/new.html.haml in artfully_ose-1.2.0.alpha.1

- old
+ new

@@ -1,42 +1,60 @@ -- in_section :people -- content_for :header do - %h1 Refund Tickets +- in_section :transactions .row - .span8.offset2 - = form_tag refunds_path do + .span8.offset2#refund-contaner + %h1 Refund Order - = hidden_field_tag :order_id, @order.id + %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 - %table.table + %h2=refund_header(@items) + + %table.table#refund-ticket-table %thead %tr %th - Event - %th - Show - %th - Price - %th + Details + %th.right Sold - @items.each do |item| - if item.ticket? - %tr - %td=item.product.show.event.name - %td=l item.product.show.datetime_local_to_event, :format => :short - %td=number_as_cents item.product.price - %td=number_as_cents item.price + %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 - Refund these tickets and return them to inventory - %br - = submit_tag "Issue Refund and Return", :class => "btn" - %p - %br - %p - Refund these tickets and keep the tickets out of inventory. - %br - = submit_tag "Issue Refund", :class => "btn" \ No newline at end of file + = submit_tag "Issue Refund", :class => "btn", :id => "issue-refund-button", :disable_with => "Refunding..."