aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/lines
diff options
context:
space:
mode:
authorXinhui2017-05-12 11:27:41 +0200
committerXinhui2017-05-12 11:27:41 +0200
commitc165b56f3cebe8e500434ca86c647955ba944b61 (patch)
tree3ada532dc37584542170353ae11590716c3ff8f1 /app/views/lines
parent1f6fb9c73206f3984d2f942d5d16fb9c094b2164 (diff)
downloadchouette-core-c165b56f3cebe8e500434ca86c647955ba944b61.tar.bz2
Fix sort line transport mode alphabetically
Refs #3109
Diffstat (limited to 'app/views/lines')
-rw-r--r--app/views/lines/_filters.html.slim4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/lines/_filters.html.slim b/app/views/lines/_filters.html.slim
index b52aa73e9..a0188f562 100644
--- a/app/views/lines/_filters.html.slim
+++ b/app/views/lines/_filters.html.slim
@@ -17,11 +17,11 @@
.form-group.togglable
= f.label @lines.human_attribute_name(:transport_mode), required: false, class: 'control-label'
- = f.input :transport_mode_eq_any, collection: Chouette::Line.transport_mode.values, as: :check_boxes, label: false, label_method: lambda{|l| ("<span>" + t("enumerize.line.transport_mode.#{l}") + "</span>").html_safe}, required: false, wrapper_html: { class: 'checkbox_list'}
+ = f.input :transport_mode_eq_any, collection: sorted_transport_mode, as: :check_boxes, label: false, label_method: lambda{|l| ("<span>" + t("enumerize.line.transport_mode.#{l}") + "</span>").html_safe}, required: false, wrapper_html: { class: 'checkbox_list'}
.form-group.togglable
= f.label @lines.human_attribute_name(:transport_submode), required: false, class: 'control-label'
- = f.input :transport_submode_eq_any, collection: Chouette::Line.transport_submode.values, as: :check_boxes, label: false, label_method: lambda{|l| ("<span>" + t("enumerize.line.transport_submode.#{l}") + "</span>").html_safe}, required: false, wrapper_html: { class: 'checkbox_list'}
+ = f.input :transport_submode_eq_any, collection: sorted_transport_submode, as: :check_boxes, label: false, label_method: lambda{|l| ("<span>" + t("enumerize.line.transport_submode.#{l}") + "</span>").html_safe}, required: false, wrapper_html: { class: 'checkbox_list'}
.actions
= link_to 'Effacer', @workbench, class: 'btn btn-link'