diff options
| author | jpl | 2017-03-02 15:28:52 +0100 |
|---|---|---|
| committer | jpl | 2017-03-02 15:28:52 +0100 |
| commit | a33b8a193f357224c13a74ae1741a9d9da461946 (patch) | |
| tree | b0327d3c66ae42214a3979d401fd808c09a93b37 /app/views/lines | |
| parent | 1238523513a6699bfdbb7bc1baf63044ed3aab9e (diff) | |
| download | chouette-core-a33b8a193f357224c13a74ae1741a9d9da461946.tar.bz2 | |
Refs #2704: updating filter/search bars on every instance
Diffstat (limited to 'app/views/lines')
| -rw-r--r-- | app/views/lines/index.html.slim | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/app/views/lines/index.html.slim b/app/views/lines/index.html.slim index 7fa9eb586..8e8a73e1b 100644 --- a/app/views/lines/index.html.slim +++ b/app/views/lines/index.html.slim @@ -10,7 +10,11 @@ .container-fluid - if params[:q].present? or @lines.any? .row.mb-sm - .col-lg-5.col-md-6.col-sm-6.col-xs-8 + .col-lg-12.text-right + = new_pagination @lines + + .row + .col-lg-12 = search_form_for @q, url: line_referential_lines_path(@line_referential), html: {method: :get} do |f| .input-group.search_bar = f.search_field :name_or_objectid_cont, placeholder: t('lines.index.name_or_objectid'), class: 'form-control' @@ -19,11 +23,6 @@ button.btn.btn-default#search-btn type='submit' span.fa.fa-search - .col-lg-7.col-md-6.col-sm-6.col-xs-4.text-right - = new_pagination @lines - - .row - .col-lg-12 = render 'filters' - if @lines.any? @@ -37,7 +36,7 @@ @lines.human_attribute_name(:transport_submode) => Proc.new { |n| n.transport_submode.nil? ? '-' : t("enumerize.line.transport_submode.#{n.try(:transport_submode)}") } }, [:show, :delete], [], - 'table' + 'table has-filter has-search' = new_pagination @lines, 'pull-right' |
