From d5d94f4623e4122693cf983935323bf2e30fbb6c Mon Sep 17 00:00:00 2001 From: Kovacs Nicolas Date: Mon, 29 Feb 2016 17:22:52 +0100 Subject: [PATCH] Update form_colorpicker.html.haml The default css class of the field should be the bootstrap class "form-control" --- app/views/rails_admin/main/_form_colorpicker.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/rails_admin/main/_form_colorpicker.html.haml b/app/views/rails_admin/main/_form_colorpicker.html.haml index 4ba1e97344..3f4e876f31 100644 --- a/app/views/rails_admin/main/_form_colorpicker.html.haml +++ b/app/views/rails_admin/main/_form_colorpicker.html.haml @@ -1 +1 @@ -= form.send field.view_helper, field.method_name, field.html_attributes.reverse_merge({value: field.form_value, style: "background-color: #{field.color}", data: {color: true}}) += form.send field.view_helper, field.method_name, field.html_attributes.reverse_merge({class: 'form-control', value: field.form_value, style: "background-color: #{field.color}", data: {color: true}})