From 7e3966023e991125fc3fd1633e49688ef376632d Mon Sep 17 00:00:00 2001
From: cedricnjanga
Date: Thu, 21 Dec 2017 12:50:02 +0100
Subject: Refs # 5308 Fix translation errors on Referential#index
filters
---
app/views/referentials/_filters.html.slim | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'app')
diff --git a/app/views/referentials/_filters.html.slim b/app/views/referentials/_filters.html.slim
index c5b6042f0..93fa679df 100644
--- a/app/views/referentials/_filters.html.slim
+++ b/app/views/referentials/_filters.html.slim
@@ -12,11 +12,11 @@
= f.input :transport_mode_eq_any, collection: @referential.lines.pluck(:transport_mode).uniq.compact, as: :check_boxes, label: false, label_method: lambda{|l| ("" + t("enumerize.transport_mode.#{l}") + "").html_safe}, required: false, wrapper_html: { class: 'checkbox_list' }
.form-group.togglable
- = f.label Chouette::Line.human_attribute_name(:network), required: false, class: 'control-label'
+ = f.label t('activerecord.attributes.referential.networks'), required: false, class: 'control-label'
= f.input :network_id_eq_any, collection: LineReferential.first.networks.order('name').pluck(:id), as: :check_boxes, label: false, label_method: lambda{|l| ("#{LineReferential.first.networks.find(l).name}").html_safe}, required: false, wrapper_html: { class: 'checkbox_list' }
.form-group.togglable
- = f.label Chouette::Line.human_attribute_name(:company), required: false, class: 'control-label'
+ = f.label t('activerecord.attributes.referential.companies'), required: false, class: 'control-label'
= f.input :company_id_eq_any, collection: LineReferential.first.companies.order('name').pluck(:id), as: :check_boxes, label: false, label_method: lambda{|l| ("#{LineReferential.first.companies.find(l).name}").html_safe}, required: false, wrapper_html: { class: 'checkbox_list' }
.actions
--
cgit v1.2.3