Sha256: 5de7d16239dc20c41cf879a20c8ff672b9945b2ca8fa99a8a145f1b21bcfcb81

Contents?: true

Size: 1.52 KB

Versions: 9

Compression:

Stored size: 1.52 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, t('kkt_shoppe.orders.order_number')
      %dd= f.text_field :id_eq
      %dt= f.label :first_name_or_last_name_or_company_cont, t('kkt_shoppe.orders.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, t('kkt_shoppe.orders.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, t('kkt_shoppe.orders.consignment_number')
      %dd= f.text_field :consignment_number_cont
      %dt= f.label :received_at_eq, t('kkt_shoppe.orders.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, t('kkt_shoppe.orders.email_address')
      %dd= f.text_field :email_address_cont
      %dt= f.label :phone_number_cont, t('kkt_shoppe.orders.phone_number')
      %dd= f.text_field :phone_number_cont
      %dt= f.label :status_eq, t('kkt_shoppe.orders.status')
      %dd= f.select :status_eq, [nil] + KktShoppe::Order::STATUSES.map { |s| [t("kkt_shoppe.orders.statuses.#{s}"), s]}
      %dd= f.submit  t('kkt_shoppe.orders.search'), :class => 'button green button'

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kkt_shoppe-2.0.2 app/views/kkt_shoppe/orders/_search_form.html.haml
kkt_shoppe-2.0.1 app/views/kkt_shoppe/orders/_search_form.html.haml
kkt_shoppe-2.0.0 app/views/kkt_shoppe/orders/_search_form.html.haml
kkt_shoppe-1.3.0 app/views/kkt_shoppe/orders/_search_form.html.haml
kkt_shoppe-1.2.1 app/views/kkt_shoppe/orders/_search_form.html.haml
kkt_shoppe-1.2.0 app/views/kkt_shoppe/orders/_search_form.html.haml
kkt_shoppe-1.1.2 app/views/kkt_shoppe/orders/_search_form.html.haml
kkt_shoppe-1.1.1 app/views/kkt_shoppe/orders/_search_form.html.haml
kkt_shoppe-1.1.0 app/views/kkt_shoppe/orders/_search_form.html.haml