aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/networks
diff options
context:
space:
mode:
authorjpl2017-02-15 17:46:38 +0100
committerjpl2017-02-15 17:47:17 +0100
commit4d41a1cc6adbf64d16a9293f883be15d3ee6c03f (patch)
tree9d462c55cd2467401ec2cfa6c6b66baa777dd76c /app/views/networks
parente4728ce291f65d1902d539a21dc8d342660a3edb (diff)
downloadchouette-core-4d41a1cc6adbf64d16a9293f883be15d3ee6c03f.tar.bz2
Refs #2609: updating codifligne objects index
Diffstat (limited to 'app/views/networks')
-rw-r--r--app/views/networks/index.html.slim9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/views/networks/index.html.slim b/app/views/networks/index.html.slim
index 89c5d0751..2bc934f61 100644
--- a/app/views/networks/index.html.slim
+++ b/app/views/networks/index.html.slim
@@ -8,8 +8,8 @@
/ PageContent
.page_content
.container-fluid
- - if @networks.any?
- .row
+ - if params[:q].present? or @networks.any?
+ .row.mb-sm
.col-lg-5.col-md-6.col-sm-6.col-xs-8
= search_form_for @q, url: line_referential_networks_path(@line_referential), html: {method: :get} do |f|
.input-group.search_bar
@@ -22,7 +22,8 @@
.col-lg-7.col-md-6.col-sm-6.col-xs-4.text-right
= new_pagination @networks
- .row.mt-sm
+ - if @networks.any?
+ .row
.col-lg-12
= table_builder @networks,
{ 'Oid' => Proc.new { |n| n.try(:objectid).try(:local_id) }, @networks.human_attribute_name(:name) => 'name' },
@@ -32,7 +33,7 @@
= new_pagination @networks, 'pull-right'
- - else
+ - unless @networks.any?
.row
.col-lg-12
= replacement_msg t('networks.search_no_results')