mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Different colors for new tracks, types and levels
Every time a new track, event type or difficulty level is created, the color picker has a different color by default. Closes https://github.com/openSUSE/osem/issues/1077
This commit is contained in:
parent
798998b73f
commit
0deaf1abc7
8 changed files with 21 additions and 3 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue