Sponsorship level dashboard
removed donation amount removed explicit rendering of sponsor levels
This commit is contained in:
parent
8bce579283
commit
f68ac7e032
11 changed files with 93 additions and 4 deletions
17
app/controllers/admin/sponsorship_levels_controller.rb
Normal file
17
app/controllers/admin/sponsorship_levels_controller.rb
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
module Admin
|
||||
class SponsorshipLevelsController < ApplicationController
|
||||
before_filter :verify_organizer
|
||||
|
||||
def update
|
||||
if @conference.update_attributes(params[:conference])
|
||||
redirect_to(admin_conference_sponsorship_levels_path(
|
||||
conference_id: @conference.short_title),
|
||||
notice: 'Sponsorship levels were successfully updated.')
|
||||
else
|
||||
redirect_to(admin_conference_sponsorship_levels_path(
|
||||
conference_id: @conference.short_title),
|
||||
alert: 'Sponsorship levels update failed')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue