Fixes difficulty level form
This commit is contained in:
parent
6886b121ae
commit
fc11653f27
2 changed files with 3 additions and 3 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
.col-md-3
|
.col-md-3
|
||||||
= render 'admin/conference/sidebar'
|
= render 'admin/conference/sidebar'
|
||||||
.col-md-9
|
.col-md-9
|
||||||
= semantic_form_for(@conference, :url => admin_conference_difficulty_levels_path(@conference.short_title)) do |f|
|
= semantic_form_for @conference, :url => admin_conference_difficulty_level_path(:conference_id => @conference.short_title, :id => @conference.difficulty_levels) do |f|
|
||||||
= f.input :use_difficulty_levels, :label => false
|
= f.input :use_difficulty_levels, :label => false
|
||||||
= dynamic_association :difficulty_levels, "Difficulty_Levels", f
|
= dynamic_association :difficulty_levels, "Difficulty_Levels", f
|
||||||
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
||||||
|
|
|
||||||
|
|
@ -38,8 +38,8 @@ Osem::Application.routes.draw do
|
||||||
post "/cfp" => "callforpapers#create", :as => "cfp_create"
|
post "/cfp" => "callforpapers#create", :as => "cfp_create"
|
||||||
get "/event_types" => "eventtype#show", :as => "eventtype_list"
|
get "/event_types" => "eventtype#show", :as => "eventtype_list"
|
||||||
put "/event_types" => "eventtype#update", :as => "eventtype_update"
|
put "/event_types" => "eventtype#update", :as => "eventtype_update"
|
||||||
put "/difficulty_levels" => "difficulty_levels#update"
|
#put "/difficulty_levels" => "difficulty_levels#update"
|
||||||
resources :difficulty_levels
|
resources :difficulty_levels, :only => [ :show, :update, :index ]
|
||||||
put "/questions/update_conference" => "questions#update_conference"
|
put "/questions/update_conference" => "questions#update_conference"
|
||||||
resources :questions
|
resources :questions
|
||||||
resources :events do
|
resources :events do
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue