diff --git a/app/views/admin/supporter_levels/supporter_levels.html.haml b/app/views/admin/supporter_levels/index.html.haml similarity index 80% rename from app/views/admin/supporter_levels/supporter_levels.html.haml rename to app/views/admin/supporter_levels/index.html.haml index e45f0e4b..fa809dbc 100644 --- a/app/views/admin/supporter_levels/supporter_levels.html.haml +++ b/app/views/admin/supporter_levels/index.html.haml @@ -2,7 +2,7 @@ .col-md-3 = render 'admin/conference/sidebar' .col-md-9 - = semantic_form_for(@conference, :url => admin_conference_supporter_levels_path(@conference.short_title)) do |f| + = semantic_form_for(@conference, :url => admin_conference_supporter_level_path(@conference.short_title, @conference.supporter_levels)) do |f| = f.input :use_supporter_levels, :label => false = dynamic_association :supporter_levels, "Supporter Levels", f = f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"} diff --git a/config/routes.rb b/config/routes.rb index bed913b7..16b34704 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -18,8 +18,6 @@ Osem::Application.routes.draw do put "/registrations/change_field" => "registrations#change_field" get "/emailsettings" => "emails#show", :as => "email_settings" put "/emailsettings" => "emails#update" - get "/supporter_levels" => "supporter_levels#show" - put "/supporter_levels" => "supporter_levels#update" get "/venue" => "venue#show", :as => "venue_info" put "/venue" => "venue#update", :as => "venue_update" get "/dietary_choices" => "dietchoices#show", :as => "dietary_list" @@ -36,6 +34,7 @@ Osem::Application.routes.draw do resources :tracks, :only => [ :show, :update, :index ] resources :eventtype, :only => [ :show, :update, :index ] resources :social_events, :only => [ :show, :update, :index ] + resources :supporter_levels, :only => [ :show, :update, :index ] put "/questions/update_conference" => "questions#update_conference" resources :questions resources :events do