Merge pull request #1079 from Ana06/suggest_track_color
Different colors for new tracks, types and levels
This commit is contained in:
commit
28f0973fc4
17 changed files with 91 additions and 16 deletions
|
|
@ -11,7 +11,7 @@ module Admin
|
|||
def edit; end
|
||||
|
||||
def new
|
||||
@difficulty_level = @conference.program.difficulty_levels.new
|
||||
@difficulty_level = @conference.program.difficulty_levels.new(color: @conference.next_color_for_collection(:levels))
|
||||
end
|
||||
|
||||
def create
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ module Admin
|
|||
def edit; end
|
||||
|
||||
def new
|
||||
@event_type = @conference.program.event_types.new
|
||||
@event_type = @conference.program.event_types.new(color: @conference.next_color_for_collection(:types))
|
||||
end
|
||||
|
||||
def create
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ module Admin
|
|||
end
|
||||
|
||||
def new
|
||||
@track = @program.tracks.new
|
||||
@track = @program.tracks.new(color: @conference.next_color_for_collection(:tracks))
|
||||
end
|
||||
|
||||
def create
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue