Add a CSS Style string to tracks by request of @krokodilerian
This commit is contained in:
parent
5edabe1382
commit
8ffc859a9b
|
@ -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,
|
||||||
:_destroy],
|
:css_style, :_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]
|
||||||
)
|
)
|
||||||
|
|
|
@ -11,6 +11,7 @@ div#tracks
|
||||||
= ff.input :name
|
= ff.input :name
|
||||||
= ff.input :color, as: :color
|
= ff.input :color, as: :color
|
||||||
= ff.input :css_class
|
= ff.input :css_class
|
||||||
|
= ff.input :css_style
|
||||||
= ff.input :description
|
= ff.input :description
|
||||||
.col-lg-6
|
.col-lg-6
|
||||||
.panel.panel-default
|
.panel.panel-default
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
class AddCssStyleStringToTracks < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :tracks, :css_style, :text
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue