app/views/orders/sales.html.haml in artfully_ose-1.2.0 vs app/views/orders/sales.html.haml in artfully_ose-1.3.0.pre1
- old
+ new
@@ -1,11 +1,11 @@
- in_section :transactions
- content_for :header do
%h1 Ticket Orders
#donations-search
- = form_tag sales_orders_path, :method => :get, :class => 'form-inline' do
+ = form_tag sales_orders_path, :method => :get, :class => 'form-inline', :id => 'sales-form' do
.control-group.well
.pull-left
= label_tag :start, "From", :class => "control-label"
= text_field_tag :start,"#{l @search.start, :format => :date_for_input}", :class => 'datepicker input-small'
@@ -19,11 +19,11 @@
= label_tag :show_id, nil, :class => "control-label"
= raw select_show_for_sales_search @shows, :show_id, params[:show_id]
.pull-right
= submit_tag "Search", :class => "btn"
- = submit_tag "Download", :class => "btn"
+ = submit_tag "Download", :class => "btn", :id => "download-button"
- if @search.results.present?
#tickets
%table.standalone.zebra.table
@@ -32,11 +32,11 @@
%th Order
%th Time
%th Person
%th Method
%th Event and Show
- %th Amount
+ %th.right Amount
%tbody
- @search.results.each do |order|
- order.items.select(&:ticket?).each_with_index do |item, index|
%tr
- if index == 0
@@ -47,11 +47,11 @@
%td{:rowspan => rowspan}= (order.payment_method || "")
%td
="#{item.show.event.name}"
%br
="#{l item.show.datetime_local_to_event}"
- %td= number_as_cents item.price
+ %td.right= number_as_cents item.price
= will_paginate(@search.results)
- else
- %h4= "No sales found."
+ %h4= "No sales found."