Modify views for booths

This commit is contained in:
nasia 2017-06-18 23:33:54 +03:00
parent a5ce1239f2
commit 60ec569553
13 changed files with 280 additions and 92 deletions

View file

@ -31,7 +31,7 @@ Osem::Application.routes.draw do
resources :conferences do
resource :contact, except: [:index, :new, :create, :show, :destroy]
resources :schedules, only: [:index, :create, :show, :update, :destroy]
resources :booths
resources :event_schedules, only: [:create, :update, :destroy]
get 'commercials/render_commercial' => 'commercials#render_commercial'
resources :commercials, only: [:index, :create, :update, :destroy]
@ -39,6 +39,17 @@ Osem::Application.routes.draw do
get '/volunteers' => 'volunteers#index', as: 'volunteers_info'
patch '/volunteers' => 'volunteers#update', as: 'volunteers_update'
resources :booths do
member do
patch :accept
patch :restart
patch :withdrawn
patch :to_accept
patch :reject
patch :reset
end
end
resources :registrations, except: [:create, :new] do
member do
patch :toggle_attendance