Add CSS class to tracks by request of @krokodilerian

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

View File

@ -55,7 +55,8 @@ module Management
:title, :email, :start_date, :end_date, :description, :host_name, :title, :email, :start_date, :end_date, :description, :host_name,
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, :description, :_destroy], tracks_attributes: [:id, :name, :color, :css_class, :description,
:_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

@ -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 :css_class
= 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 AddCssClassToTracks < ActiveRecord::Migration
def change
add_column :tracks, :css_class, :string
end
end