aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjpl2017-03-21 17:41:03 +0100
committerjpl2017-03-21 17:41:11 +0100
commit7fd8b759b21fe157a2767f5d5342f4e438e98aac (patch)
tree5da1cf2903ddcee30b2b4f8085c3073bf1cd8bc4
parentb18a233d6f41803462b01988f1a3e5e7853b99b1 (diff)
downloadchouette-core-7fd8b759b21fe157a2767f5d5342f4e438e98aac.tar.bz2
Refs #2799: adding company to displayed results (on select)
-rw-r--r--app/views/workbenches/_filters.html.slim2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/workbenches/_filters.html.slim b/app/views/workbenches/_filters.html.slim
index 5abf8a8ea..7a962f927 100644
--- a/app/views/workbenches/_filters.html.slim
+++ b/app/views/workbenches/_filters.html.slim
@@ -9,7 +9,7 @@
.ffg-row
.form-group
= f.label 'Ligne', required: false, class: 'control-label'
- = f.input :associated_lines_id_eq, as: :select, collection: @workbench.lines.order(:name).map{|l| [l.name, l.id]}, input_html: { 'data-select2ed': 'true', 'data-select2ed-placeholder': 'Indiquez une ligne...' }, label: false, wrapper_html: { class: 'select2ed'}
+ = f.input :associated_lines_id_eq, as: :select, collection: @workbench.lines.includes(:company).order(:name), input_html: { 'data-select2ed': 'true', 'data-select2ed-placeholder': 'Indiquez une ligne...' }, label: false, label_method: :display_name, wrapper_html: { class: 'select2ed'}
.form-group.togglable
= f.label @wbench_refs.human_attribute_name(:status), required: false, class: 'control-label'