app/views/comable/admin/orders/index.slim in comable_backend-0.3.3 vs app/views/comable/admin/orders/index.slim in comable_backend-0.3.4
- old
+ new
@@ -11,12 +11,11 @@
| >
h1.page-header
= Comable.t('admin.nav.order')
small<
- = @orders.total_count
- = Comable.t('admin.results')
+ | #{@orders.total_count} #{Comable.t('admin.results')}
.comable-page-body
.comable-search
= search_form_for @q, url: comable.admin_orders_path do |f|
.input-group
@@ -24,16 +23,20 @@
button.btn.btn-default.dropdown-toggle type="button" data-toggle="dropdown"
i.fa.fa-search
span.caret<
ul.dropdown-menu role="menu"
li
+ = link_to Comable.t('admin.advanced_search'), 'javascript:void(0)', 'data-toggle' => 'collapse', 'data-target' => '#comable-advanced-search'
+ li
= link_to Comable.t('admin.clear_search_conditions'), comable.admin_orders_path
= f.text_field :code_cont, class: 'form-control'
span.input-group-btn
= f.submit Comable.t('admin.search'), class: 'btn btn-default'
.hidden
= f.label :customer_id
= f.text_field :customer_id_eq
+
+ = render 'comable/admin/shared/advanced_search', f: f
section
- if @orders.empty?
= Comable.t('admin.not_found')
- else