|
29 | 29 | <div class="col-md-12"> |
30 | 30 | <!-- jquery validation --> |
31 | 31 | <div class="card card-primary"> |
32 | | - <div class="card-footer"> |
33 | | - <div class="pull-right"> |
34 | | - <%= modal_button_to("#csvImportModal", { icon: "upload", text: "Import Vendors", size: "md"}) if @vendors.empty? %> |
35 | | - <%= download_button_to(vendors_path(format: :csv, filters: filter_params.merge(date_range: date_range_params)), {text: "Export Vendors", size: "md"}) if @vendors.any? %> |
36 | | - <%= new_button_to new_vendor_path, text: "New Vendor" %> </div> |
| 32 | + <div class="card-header"> |
| 33 | + <h3 class="card-title">Vendor Filter</h3> |
37 | 34 | </div> |
38 | | - </div> |
| 35 | + <!-- /.card-header --> |
| 36 | + <!-- form start --> |
| 37 | + <div class="card-body"> |
| 38 | + <%= form_tag(vendors_path, method: :get) do |f| %> |
| 39 | + <div class="row"> |
| 40 | + <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12"> |
| 41 | + <%= filter_checkbox(label: "Also include inactive vendors", scope: "include_inactive_vendors", selected: @include_inactive_vendors) %> |
| 42 | + </div> |
| 43 | + </div> |
| 44 | + </div> |
| 45 | + <div class="card-footer"> |
| 46 | + <%= filter_button %> |
| 47 | + <%= clear_filter_button %> |
| 48 | + <span class="float-right"> |
| 49 | + <%= download_button_to(vendors_path(format: :csv, filters: filter_params.merge(date_range: date_range_params, include_inactive_vendors: @include_inactive_vendors)), {text: "Export Vendors", size: "md"}) if @vendors.any? %> |
| 50 | + <%= modal_button_to("#csvImportModal", { icon: "upload", text: "Import Vendors", size: "md"}) if @vendors.empty? %> |
| 51 | + <%= new_button_to new_vendor_path, text: "New Vendor" %> |
| 52 | + </span> |
| 53 | + </div> |
| 54 | + <% end # form %> |
| 55 | + </div> |
39 | 56 | <!-- /.card --> |
40 | 57 | </div> |
41 | | - <!--/.col (left) --> |
42 | 58 | </div> |
43 | 59 | <!-- /.row --> |
44 | 60 | </div><!-- /.container-fluid --> |
| 61 | +</section> |
45 | 62 |
|
| 63 | +<section class="content"> |
46 | 64 | <div class="container-fluid"> |
47 | 65 | <div class="row"> |
48 | 66 | <div class="col-12"> |
|
0 commit comments