aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/referentials
diff options
context:
space:
mode:
authorjpl2017-02-17 11:52:21 +0100
committerjpl2017-02-17 11:52:21 +0100
commit89629faa94c436430fe2c2910a53956db7ffd261 (patch)
treeea486c2c8c54c40898feabf01ee37a56f300a5a0 /app/views/referentials
parent7d6609313bf0a00d6e9f1ce80852b72bb7a46c42 (diff)
downloadchouette-core-89629faa94c436430fe2c2910a53956db7ffd261.tar.bz2
Refs #2615: fix layouts on empty filter results, for workbenches#show & referentials#show
Diffstat (limited to 'app/views/referentials')
-rw-r--r--app/views/referentials/show.html.slim8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/views/referentials/show.html.slim b/app/views/referentials/show.html.slim
index af8e6b8cd..ff4d3e64b 100644
--- a/app/views/referentials/show.html.slim
+++ b/app/views/referentials/show.html.slim
@@ -47,11 +47,13 @@
.col-lg-7.col-md-6.col-sm-6.col-xs-4.text-right
= new_pagination @reflines
- - if @reflines.any?
- .row.mt-sm
+ .row
.col-lg-12
= render 'filters'
+ - if @reflines.any?
+ .row
+ .col-lg-12
/ ID Codif, nom court, nom de la ligne, réseau, mode, transporteur principal, actions = [show, edit_notes]
= table_builder @reflines,
{ 'ID Codif' => Proc.new { |n| n.objectid.local_id }, @reflines.human_attribute_name(:registration_number) => 'registration_number',
@@ -66,7 +68,7 @@
= new_pagination @reflines, 'pull-right'
- unless @reflines.any?
- .row
+ .row.mt-xs
.col-lg-12
= replacement_msg t('referential_lines.search_no_results')