mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Roles into their own controller. Rework interface. Add flash messages to ajax calls. Add description to roles. Possible to edit roles in use.
This commit is contained in:
parent
eda5c2bc07
commit
ccd7ecbb90
59 changed files with 618 additions and 356 deletions
|
|
@ -17,12 +17,6 @@ Osem::Application.routes.draw do
|
|||
resources :people
|
||||
resources :comments, only: [:index]
|
||||
resources :conference do
|
||||
member do
|
||||
get :roles
|
||||
post :roles
|
||||
post :add_user
|
||||
delete :remove_user
|
||||
end
|
||||
resource :contact, except: [:index, :new, :create, :show, :destroy]
|
||||
resources :photos, except: [:show]
|
||||
resource :schedule, only: [:show, :update]
|
||||
|
|
@ -74,6 +68,11 @@ Osem::Application.routes.draw do
|
|||
resources :targets, except: [:show]
|
||||
resources :campaigns, except: [:show]
|
||||
resources :emails, only: [:show, :update, :index]
|
||||
resources :roles, except: [ :new, :create ] do
|
||||
member do
|
||||
post :toggle_user
|
||||
end
|
||||
end
|
||||
|
||||
resources :sponsorship_levels, except: [:show] do
|
||||
member do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue