Fix label color input.

This commit is contained in:
Douwe Maan 2015-04-17 17:38:31 +02:00
parent a66953b16b
commit da89ebbe48
2 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,8 @@
class Label < ActiveRecord::Base
DEFAULT_COLOR = '#428BCA'
default_value_for :color, DEFAULT_COLOR
belongs_to :project
has_many :label_links, dependent: :destroy
has_many :issues, through: :label_links, source: :target, source_type: 'Issue'

View File

@ -16,7 +16,7 @@
.col-sm-10
.input-group
.input-group-addon.label-color-preview &nbsp;
= f.color_field :color, value: "#AA33EE", class: "form-control"
= f.color_field :color, class: "form-control"
.help-block
Choose any color.
%br