Add a CSS Style string to tracks by request of @krokodilerian

This commit is contained in:
Petko Bordjukov 2015-10-18 13:58:44 +03:00
parent 5edabe1382
commit 8ffc859a9b
3 changed files with 7 additions and 1 deletions

View File

@ -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]
) )

View File

@ -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

View File

@ -0,0 +1,5 @@
class AddCssStyleStringToTracks < ActiveRecord::Migration
def change
add_column :tracks, :css_style, :text
end
end