Sponsor dashboard added, with sponsor component for splash page
This commit is contained in:
parent
643b8b173a
commit
ea119a8158
36 changed files with 549 additions and 12 deletions
16
app/controllers/admin/sponsorship_levels_controller.rb
Normal file
16
app/controllers/admin/sponsorship_levels_controller.rb
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
class Admin::SponsorshipLevelsController < ApplicationController
|
||||
before_filter :verify_organizer
|
||||
|
||||
def show
|
||||
render :sponsorship_levels
|
||||
end
|
||||
|
||||
def update
|
||||
begin
|
||||
@conference.update_attributes!(params[:conference])
|
||||
redirect_to(admin_conference_sponsorship_levels_path(:conference_id => @conference.short_title), :notice => 'Sponsorship levels were successfully updated.')
|
||||
rescue Exception => e
|
||||
redirect_to(admin_conference_sponsorship_levels_path(:conference_id => @conference.short_title), :alert => "Sponsorship levels update failed: #{e.message}")
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue