Sponsorship level dashboard

removed donation amount
removed explicit rendering of sponsor levels
This commit is contained in:
Gopesh Tulsyan 2014-06-05 14:52:44 +05:30
parent 8bce579283
commit f68ac7e032
11 changed files with 93 additions and 4 deletions

View file

@ -10,7 +10,8 @@ class Conference < ActiveRecord::Base
:difficulty_levels_attributes, :use_difficulty_levels,
:use_vpositions, :use_vdays, :vdays_attributes, :vpositions_attributes, :use_volunteers,
:media_id, :media_type, :color, :description,
:registration_description, :ticket_description
:registration_description, :ticket_description,
:sponsorship_levels_attributes
has_paper_trail
@ -42,6 +43,7 @@ class Conference < ActiveRecord::Base
accepts_nested_attributes_for :venue
accepts_nested_attributes_for :dietary_choices, :allow_destroy => true
accepts_nested_attributes_for :supporter_levels, :allow_destroy => true
accepts_nested_attributes_for :sponsorship_levels, allow_destroy: true
accepts_nested_attributes_for :event_types, :allow_destroy => true
accepts_nested_attributes_for :email_settings
accepts_nested_attributes_for :questions, :allow_destroy => true

View file

@ -1,5 +1,5 @@
class SponsorshipLevel < ActiveRecord::Base
attr_accessible :title, :donation_amount
attr_accessible :title
validates_presence_of :title
belongs_to :conference
end