diff options
| author | jpl | 2017-03-15 15:53:37 +0100 |
|---|---|---|
| committer | jpl | 2017-03-15 15:53:37 +0100 |
| commit | 4c15d6d9127c8c5fa187221ab5ad23dd7c8b1127 (patch) | |
| tree | 1572114bb724631d55d07cb016b859642c11d0a9 /app/views/lines | |
| parent | 0e88a03798edc961c9a63b9407c50e07df83ce57 (diff) | |
| download | chouette-core-4c15d6d9127c8c5fa187221ab5ad23dd7c8b1127.tar.bz2 | |
Refs #2794: fixing new filters integration
Diffstat (limited to 'app/views/lines')
| -rw-r--r-- | app/views/lines/_filters.html.slim | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/app/views/lines/_filters.html.slim b/app/views/lines/_filters.html.slim index 719491dc3..6a5f38ae4 100644 --- a/app/views/lines/_filters.html.slim +++ b/app/views/lines/_filters.html.slim @@ -1,25 +1,27 @@ = search_form_for @q, url: line_referential_lines_path(@line_referential), html: {method: :get}, class: 'form form-filter' do |f| - .input-group.search_bar - = f.search_field :name_or_objectid_cont, placeholder: t('lines.index.name_or_objectid'), class: 'form-control' - span.input-group-btn - button.btn.btn-default#search-btn type='submit' - span.fa.fa-search + .ffg-row + .input-group.search_bar + = f.search_field :name_or_objectid_cont, placeholder: t('lines.index.name_or_objectid'), class: 'form-control' + span.input-group-btn + button.btn.btn-default#search-btn type='submit' + span.fa.fa-search - .form-group.togglable - = f.label @lines.human_attribute_name(:network), required: false, class: 'control-label' - = f.input :network_id_eq_any, collection: @line_referential.networks.order(name: :asc), as: :check_boxes, label: false, label_method: lambda{|l| ("<span>" + l.name + "</span>").html_safe}, required: false, wrapper_html: { class: 'checkbox_list'} + .ffg-row + .form-group.togglable + = f.label @lines.human_attribute_name(:network), required: false, class: 'control-label' + = f.input :network_id_eq_any, collection: @line_referential.networks.order(name: :asc), as: :check_boxes, label: false, label_method: lambda{|l| ("<span>" + l.name + "</span>").html_safe}, required: false, wrapper_html: { class: 'checkbox_list'} - .form-group.togglable - = f.label @lines.human_attribute_name(:company), required: false, class: 'control-label' - = f.input :company_id_eq_any, collection: @line_referential.companies.order(name: :asc), as: :check_boxes, label: false, label_method: lambda{|l| ("<span>" + l.name + "</span>").html_safe}, required: false, wrapper_html: { class: 'checkbox_list'} + .form-group.togglable + = f.label @lines.human_attribute_name(:company), required: false, class: 'control-label' + = f.input :company_id_eq_any, collection: @line_referential.companies.order(name: :asc), as: :check_boxes, label: false, label_method: lambda{|l| ("<span>" + l.name + "</span>").html_safe}, required: false, wrapper_html: { class: 'checkbox_list'} - .form-group.togglable - = f.label @lines.human_attribute_name(:transport_mode), required: false, class: 'control-label' - = f.input :transport_mode_eq_any, collection: Chouette::Line.transport_mode.values, as: :check_boxes, label: false, label_method: lambda{|l| ("<span>" + t("enumerize.line.transport_mode.#{l}") + "</span>").html_safe}, required: false, wrapper_html: { class: 'checkbox_list'} + .form-group.togglable + = f.label @lines.human_attribute_name(:transport_mode), required: false, class: 'control-label' + = f.input :transport_mode_eq_any, collection: Chouette::Line.transport_mode.values, as: :check_boxes, label: false, label_method: lambda{|l| ("<span>" + t("enumerize.line.transport_mode.#{l}") + "</span>").html_safe}, required: false, wrapper_html: { class: 'checkbox_list'} - .form-group.togglable - = f.label @lines.human_attribute_name(:transport_submode), required: false, class: 'control-label' - = f.input :transport_submode_eq_any, collection: Chouette::Line.transport_submode.values, as: :check_boxes, label: false, label_method: lambda{|l| ("<span>" + t("enumerize.line.transport_submode.#{l}") + "</span>").html_safe}, required: false, wrapper_html: { class: 'checkbox_list'} + .form-group.togglable + = f.label @lines.human_attribute_name(:transport_submode), required: false, class: 'control-label' + = f.input :transport_submode_eq_any, collection: Chouette::Line.transport_submode.values, as: :check_boxes, label: false, label_method: lambda{|l| ("<span>" + t("enumerize.line.transport_submode.#{l}") + "</span>").html_safe}, required: false, wrapper_html: { class: 'checkbox_list'} .actions = link_to 'Effacer', @workbench, class: 'btn btn-link' |
