aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/referentials
diff options
context:
space:
mode:
authorjpl2017-03-03 11:59:26 +0100
committerjpl2017-03-03 11:59:26 +0100
commitece023e308b97d9062d2ec6bf242b1e50188e1df (patch)
treefba7c42a0f4c2406b7da7db2c91066824a8119b6 /app/views/referentials
parentb2e981ab9980898686c7a80ac24c7c4f18b8b335 (diff)
downloadchouette-core-ece023e308b97d9062d2ec6bf242b1e50188e1df.tar.bz2
updating tables+metas attributes display
Diffstat (limited to 'app/views/referentials')
-rw-r--r--app/views/referentials/show.html.slim4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/referentials/show.html.slim b/app/views/referentials/show.html.slim
index 8f2e7a8fd..fa89b220d 100644
--- a/app/views/referentials/show.html.slim
+++ b/app/views/referentials/show.html.slim
@@ -55,8 +55,10 @@
.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',
+ { 'ID Codif' => Proc.new { |n| n.objectid.local_id },
+ 'Nom court' => 'number',
@reflines.human_attribute_name(:name) => 'name',
+ 'Activé' => Proc.new{|n| n.deactivated? ? t('false') : t('true')},
@reflines.human_attribute_name(:transport_mode) => 'transport_mode',
@reflines.human_attribute_name(:network) => Proc.new { |n| n.try(:network).try(:name) },
@reflines.human_attribute_name(:company) => Proc.new { |n| n.try(:company).try(:name) } },