Merge pull request #172 from ChrisBr/add_color_to_conference
Adds color attribute to model
This commit is contained in:
commit
6155286b24
4 changed files with 10 additions and 3 deletions
|
|
@ -9,7 +9,7 @@ class Conference < ActiveRecord::Base
|
|||
:questions_attributes, :question_ids, :answers_attributes, :answer_ids,
|
||||
:difficulty_levels_attributes, :use_difficulty_levels,
|
||||
:use_vpositions, :use_vdays, :vdays_attributes, :vpositions_attributes, :use_volunteers,
|
||||
:media_id, :media_type
|
||||
:media_id, :media_type, :color
|
||||
|
||||
has_paper_trail
|
||||
|
||||
|
|
@ -122,7 +122,7 @@ class Conference < ActiveRecord::Base
|
|||
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
private
|
||||
|
||||
##
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
= f.input :short_title, :hint => "A short title, such as 'osc2013', to be used in URLs"
|
||||
= f.input :social_tag, :hint => "The hashtag you'll use on Twitter and Google+. Don't include the '#' sign!'"
|
||||
= f.input :contact_email, :hint => "Contact email address for your conference. Will be used as reply-to address in emails sent out by the system."
|
||||
= f.input :color, :hint => "The color will be used eg for the dashboard.", :input_html => {:size => 6, :type => "color"}
|
||||
|
||||
= f.inputs :name => "Scheduling" do
|
||||
= f.input :timezone, :as => :time_zone, :hint => "The conference time zone"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue