aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorAlban Peignier2017-12-27 00:18:21 +0100
committerGitHub2017-12-27 00:18:21 +0100
commitfdae84e447a09e8dac6b7f3167a35c209db342a6 (patch)
tree31caabfb9d27a4e9efae60dfb978a4365560eafe /app/views
parentce109f3b7ad1aefe1c120796c24535cd178f2af2 (diff)
parent1ed10dce7790d6cf6d63e7d5943bfa0b20ffad6c (diff)
downloadchouette-core-fdae84e447a09e8dac6b7f3167a35c209db342a6.tar.bz2
Merge pull request #180 from af83/5367-add-color-input
Add a ColorSelectInput. Refs #5367
Diffstat (limited to 'app/views')
-rw-r--r--app/views/purchase_windows/_form.html.slim10
1 files changed, 1 insertions, 9 deletions
diff --git a/app/views/purchase_windows/_form.html.slim b/app/views/purchase_windows/_form.html.slim
index 8821ecc8a..2101ae6db 100644
--- a/app/views/purchase_windows/_form.html.slim
+++ b/app/views/purchase_windows/_form.html.slim
@@ -2,15 +2,7 @@
.row
.col-lg-12
= f.input :name
- // = f.input :color, as: :select, boolean_style: :inline, collection: Chouette::PurchaseWindow.color.values, input_html: {class: 'color_selector '}
- div
- .form-group
- label.select.optional.col-sm-4.col-xs-5.control-label
- = @purchase_window.class.human_attribute_name :color
- div.col-sm-8.col-xs-7
- span.fa.fa-circle style="color:#7F551B"
-
- = f.input :color, as: :hidden, input_html: { value: '#7F551B' }
+ = f.input :color, as: :color_select, collection: Chouette::PurchaseWindow.colors_i18n
.separator