Sha256: 9502d5a4a5cc9e1354c9f53dabe162eea1eb7f10162a6dc23fa9b8ebc3751e4b

Contents?: true

Size: 1.3 KB

Versions: 6

Compression:

Stored size: 1.3 KB

Contents

.orderSearch{:style => action_name == 'search' ? "display:block" : ''}
  = search_form_for @query, :url => search_orders_path, :html => { :method => :post } do |f|
    %dl.left
      %dt= f.label :id_eq, "Order Number"
      %dd= f.text_field :id_eq
      %dt= f.label :first_name_or_last_name_or_company_cont, "Customer"
      %dd= f.text_field :first_name_or_last_name_or_company_cont
      %dt= f.label :address1_or_address2_or_address3_or_address4_or_postcode_cont, "Billing Address"
      %dd= f.text_field :billing_address1_or_billing_address2_or_billing_address3_or_billing_address4_or_billing_postcode_cont
      %dt= f.label :consignment_number_cont, "Consignment Number"
      %dd= f.text_field :consignment_number_cont
      %dt= f.label :received_at_eq, "Received between"
      %dd
        = f.text_field :received_at_gteq, :class => 'small'
        →
        = f.text_field :received_at_lteq, :class => 'small'
    %dl.right
      %dt= f.label :email_address_cont, "E-Mail Address"
      %dd= f.text_field :email_address_cont
      %dt= f.label :phone_number_cont, "Phone Number"
      %dd= f.text_field :phone_number_cont
      %dt= f.label :status_eq, "Status"
      %dd= f.select :status_eq, [nil] + Shoppe::Order::STATUSES.map { |s| [s.humanize, s]}
      %dd= f.submit "Search", :class => 'button green button'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
shoppe-1.0.2 app/views/shoppe/orders/_search_form.html.haml
shoppe-1.0.1 app/views/shoppe/orders/_search_form.html.haml
shoppe-1.0.0 app/views/shoppe/orders/_search_form.html.haml
shoppe-0.0.21 app/views/shoppe/orders/_search_form.html.haml
shoppe-0.0.20 app/views/shoppe/orders/_search_form.html.haml
shoppe-0.0.19 app/views/shoppe/orders/_search_form.html.haml