Add a Foreground color field to tracks by request of @krokodilerian
This commit is contained in:
parent
8ffc859a9b
commit
b8b24b918c
|
@ -56,7 +56,7 @@ module Management
|
||||||
event_types_attributes: [:id, :name, :description, :maximum_length,
|
event_types_attributes: [:id, :name, :description, :maximum_length,
|
||||||
:minimum_length, :_destroy],
|
:minimum_length, :_destroy],
|
||||||
tracks_attributes: [:id, :name, :color, :css_class, :description,
|
tracks_attributes: [:id, :name, :color, :css_class, :description,
|
||||||
:css_style, :_destroy],
|
:css_style, :foreground_color, :_destroy],
|
||||||
halls_attributes: [:id, :name, :_destroy],
|
halls_attributes: [:id, :name, :_destroy],
|
||||||
volunteer_teams_attributes: [:id, :name, :description, :color, :_destroy]
|
volunteer_teams_attributes: [:id, :name, :description, :color, :_destroy]
|
||||||
)
|
)
|
||||||
|
|
|
@ -10,6 +10,7 @@ div#tracks
|
||||||
.panel-body
|
.panel-body
|
||||||
= ff.input :name
|
= ff.input :name
|
||||||
= ff.input :color, as: :color
|
= ff.input :color, as: :color
|
||||||
|
= ff.input :foreground_color, as: :color
|
||||||
= ff.input :css_class
|
= ff.input :css_class
|
||||||
= ff.input :css_style
|
= ff.input :css_style
|
||||||
= ff.input :description
|
= ff.input :description
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
class AddForegroundColorToTracks < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :tracks, :foreground_color, :string
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue