diff options
| author | jpl | 2017-03-21 17:41:03 +0100 |
|---|---|---|
| committer | jpl | 2017-03-21 17:41:11 +0100 |
| commit | 7fd8b759b21fe157a2767f5d5342f4e438e98aac (patch) | |
| tree | 5da1cf2903ddcee30b2b4f8085c3073bf1cd8bc4 | |
| parent | b18a233d6f41803462b01988f1a3e5e7853b99b1 (diff) | |
| download | chouette-core-7fd8b759b21fe157a2767f5d5342f4e438e98aac.tar.bz2 | |
Refs #2799: adding company to displayed results (on select)
| -rw-r--r-- | app/views/workbenches/_filters.html.slim | 2 |
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' |
