svg
Cadoles/nineskeletor/pipeline/head There was a failure building this commit
Details
Cadoles/nineskeletor/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
f659e27ad6
commit
671b37197e
1855
config/routes.yaml
1855
config/routes.yaml
|
@ -1,1620 +1,1641 @@
|
||||||
#== Home ========================================================================================================
|
#== Home ========================================================================================================
|
||||||
app_home:
|
app_home:
|
||||||
path: /
|
path: /
|
||||||
controller: App\Controller\HomeController::home
|
controller: App\Controller\HomeController::home
|
||||||
|
|
||||||
app_user_home:
|
app_user_home:
|
||||||
path: /user
|
path: /user
|
||||||
controller: App\Controller\HomeController::homeuser
|
controller: App\Controller\HomeController::homeuser
|
||||||
defaults: { access: user }
|
defaults: { access: user }
|
||||||
|
|
||||||
app_manager_home:
|
app_manager_home:
|
||||||
path: /manager
|
path: /manager
|
||||||
controller: App\Controller\HomeController::homemanager
|
controller: App\Controller\HomeController::homemanager
|
||||||
defaults: { access: manager }
|
defaults: { access: manager }
|
||||||
|
|
||||||
app_master_home:
|
app_master_home:
|
||||||
path: /master
|
path: /master
|
||||||
controller: App\Controller\HomeController::homemaster
|
controller: App\Controller\HomeController::homemaster
|
||||||
defaults: { access: master }
|
defaults: { access: master }
|
||||||
|
|
||||||
app_modo_home:
|
app_modo_home:
|
||||||
path: /modo
|
path: /modo
|
||||||
controller: App\Controller\HomeController::homemodo
|
controller: App\Controller\HomeController::homemodo
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_admin_home:
|
app_admin_home:
|
||||||
path: /admin
|
path: /admin
|
||||||
controller: App\Controller\HomeController::homeadmin
|
controller: App\Controller\HomeController::homeadmin
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
oneup_uploader:
|
oneup_uploader:
|
||||||
resource: .
|
resource: .
|
||||||
type: uploader
|
type: uploader
|
||||||
|
|
||||||
#== Security ====================================================================================================
|
#== Security ====================================================================================================
|
||||||
#-- Access public
|
#-- Access public
|
||||||
app_login:
|
app_login:
|
||||||
path: /login
|
path: /login
|
||||||
controller: App\Controller\SecurityController::login
|
controller: App\Controller\SecurityController::login
|
||||||
|
|
||||||
app_loginldapcheck:
|
app_loginldapcheck:
|
||||||
path: /loginldapcheck
|
path: /loginldapcheck
|
||||||
controller: App\Controller\SecurityController::loginldapcheck
|
controller: App\Controller\SecurityController::loginldapcheck
|
||||||
|
|
||||||
app_loginopenidcallback:
|
app_loginopenidcallback:
|
||||||
path: /oauth2/callback
|
path: /oauth2/callback
|
||||||
controller: App\Controller\SecurityController::loginopenidcallback
|
controller: App\Controller\SecurityController::loginopenidcallback
|
||||||
|
|
||||||
app_logout:
|
app_logout:
|
||||||
path: /logout
|
path: /logout
|
||||||
controller: App\Controller\SecurityController::logout
|
controller: App\Controller\SecurityController::logout
|
||||||
|
|
||||||
app_noperm:
|
app_noperm:
|
||||||
path: /noperm
|
path: /noperm
|
||||||
controller: App\Controller\SecurityController::noperm
|
controller: App\Controller\SecurityController::noperm
|
||||||
|
|
||||||
#== Websocket====================================================================================================
|
#== Websocket====================================================================================================
|
||||||
#-- Access all
|
#-- Access all
|
||||||
app_publish_sample:
|
app_publish_sample:
|
||||||
path: /all/publish/sample/{id}
|
path: /all/publish/sample/{id}
|
||||||
controller: App\Controller\PublishController::sample
|
controller: App\Controller\PublishController::sample
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_publish:
|
app_publish:
|
||||||
path: /all/publish/{channel}/{id}
|
path: /all/publish/{channel}/{id}
|
||||||
controller: App\Controller\PublishController::publish
|
controller: App\Controller\PublishController::publish
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
#== Config ======================================================================================================
|
#== Config ======================================================================================================
|
||||||
#-- Access admin
|
#-- Access admin
|
||||||
app_admin_config:
|
app_admin_config:
|
||||||
path: /admin/config
|
path: /admin/config
|
||||||
controller: App\Controller\ConfigController::list
|
controller: App\Controller\ConfigController::list
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_config_render:
|
app_admin_config_render:
|
||||||
path: /admin/admin/render/{category}
|
path: /admin/admin/render/{category}
|
||||||
controller: App\Controller\ConfigController::listrender
|
controller: App\Controller\ConfigController::listrender
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_config_submit:
|
app_admin_config_submit:
|
||||||
path: /admin/admin/submit
|
path: /admin/admin/submit
|
||||||
controller: App\Controller\ConfigController::submit
|
controller: App\Controller\ConfigController::submit
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_config_update:
|
app_admin_config_update:
|
||||||
path: /admin/admin/update/{id}
|
path: /admin/admin/update/{id}
|
||||||
controller: App\Controller\ConfigController::update
|
controller: App\Controller\ConfigController::update
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_config_delete:
|
app_admin_config_delete:
|
||||||
path: /admin/admin/delete/{id}
|
path: /admin/admin/delete/{id}
|
||||||
controller: App\Controller\ConfigController::delete
|
controller: App\Controller\ConfigController::delete
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_config_logo:
|
app_admin_config_logo:
|
||||||
path: /admin/admin/logo
|
path: /admin/admin/logo
|
||||||
controller: App\Controller\ConfigController::logo
|
controller: App\Controller\ConfigController::logo
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
#== Theme =======================================================================================================
|
#== Theme =======================================================================================================
|
||||||
#-- Access admin
|
#-- Access admin
|
||||||
app_admin_theme:
|
app_admin_theme:
|
||||||
path: /admin/theme
|
path: /admin/theme
|
||||||
controller: App\Controller\ThemeController::list
|
controller: App\Controller\ThemeController::list
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_theme_select:
|
app_admin_theme_select:
|
||||||
path: /admin/theme/select/{name}
|
path: /admin/theme/select/{name}
|
||||||
controller: App\Controller\ThemeController::select
|
controller: App\Controller\ThemeController::select
|
||||||
defaults: { name: "", access: admin }
|
defaults: { name: "", access: admin }
|
||||||
|
|
||||||
#== API =========================================================================================================
|
#== API =========================================================================================================
|
||||||
#-- Access public
|
#-- Access public
|
||||||
app_rest:
|
app_rest:
|
||||||
path: /docrest
|
path: /docrest
|
||||||
controller: App\Controller\HomeController::docrest
|
controller: App\Controller\HomeController::docrest
|
||||||
|
|
||||||
#== Cron ========================================================================================================
|
#== Cron ========================================================================================================
|
||||||
#-- Access admin
|
#-- Access admin
|
||||||
app_admin_cron:
|
app_admin_cron:
|
||||||
path: /admin/cron
|
path: /admin/cron
|
||||||
controller: App\Controller\CronController::list
|
controller: App\Controller\CronController::list
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_cron_tablelist:
|
app_admin_cron_tablelist:
|
||||||
path: /admin/cron/tablelist
|
path: /admin/cron/tablelist
|
||||||
controller: App\Controller\CronController::tablelist
|
controller: App\Controller\CronController::tablelist
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_cron_update:
|
app_admin_cron_update:
|
||||||
path: /admin/cron/update/{id}
|
path: /admin/cron/update/{id}
|
||||||
controller: App\Controller\CronController::update
|
controller: App\Controller\CronController::update
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_cron_exec:
|
app_admin_cron_exec:
|
||||||
path: /admin/cron/exec/{id}
|
path: /admin/cron/exec/{id}
|
||||||
controller: App\Controller\CronController::exec
|
controller: App\Controller\CronController::exec
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_log:
|
app_admin_log:
|
||||||
path: /admin/log
|
path: /admin/log
|
||||||
controller: App\Controller\CronController::log
|
controller: App\Controller\CronController::log
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_log_get:
|
app_admin_log_get:
|
||||||
path: /admin/log/{id}
|
path: /admin/log/{id}
|
||||||
controller: App\Controller\CronController::get
|
controller: App\Controller\CronController::get
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
#== Crop ========================================================================================================
|
#== Crop ========================================================================================================
|
||||||
#-- Access all
|
#-- Access all
|
||||||
app_all_crop01:
|
app_all_crop01:
|
||||||
path: /all/crop01/{type}/{reportinput}
|
path: /all/crop01/{type}/{reportinput}
|
||||||
controller: App\Controller\CropController::crop01
|
controller: App\Controller\CropController::crop01
|
||||||
|
|
||||||
app_all_crop02:
|
app_all_crop02:
|
||||||
path: /all/crop02/{type}/{reportinput}
|
path: /all/crop02/{type}/{reportinput}
|
||||||
controller: App\Controller\CropController::crop02
|
controller: App\Controller\CropController::crop02
|
||||||
|
|
||||||
#== Minio =======================================================================================================
|
#== Minio =======================================================================================================
|
||||||
#-- Access public
|
#-- Access public
|
||||||
app_minio_logo:
|
app_minio_logo:
|
||||||
path: /minio/logo
|
path: /minio/logo
|
||||||
controller: App\Controller\MinioController::logo
|
controller: App\Controller\MinioController::logo
|
||||||
|
|
||||||
app_minio_image:
|
app_minio_image:
|
||||||
path: /minio/image
|
path: /minio/image
|
||||||
controller: App\Controller\MinioController::image
|
controller: App\Controller\MinioController::image
|
||||||
|
|
||||||
app_minio_document:
|
app_minio_document:
|
||||||
path: /minio/document
|
path: /minio/document
|
||||||
controller: App\Controller\MinioController::document
|
controller: App\Controller\MinioController::document
|
||||||
|
|
||||||
#== Hydra =======================================================================================================
|
#== Hydra =======================================================================================================
|
||||||
#-- Access public
|
#-- Access public
|
||||||
app_hydra_loginsql:
|
app_hydra_loginsql:
|
||||||
path: /hydra/loginsql
|
path: /hydra/loginsql
|
||||||
controller: App\Controller\HydraController::loginsql
|
controller: App\Controller\HydraController::loginsql
|
||||||
|
|
||||||
app_hydra_checkloginsql:
|
app_hydra_checkloginsql:
|
||||||
path: /hydra/checkloginsql
|
path: /hydra/checkloginsql
|
||||||
controller: App\Controller\HydraController::checkloginsql
|
controller: App\Controller\HydraController::checkloginsql
|
||||||
|
|
||||||
app_hydra_loginldap:
|
app_hydra_loginldap:
|
||||||
path: /hydra/loginldap
|
path: /hydra/loginldap
|
||||||
controller: App\Controller\HydraController::loginldap
|
controller: App\Controller\HydraController::loginldap
|
||||||
|
|
||||||
app_hydra_checkloginldap:
|
app_hydra_checkloginldap:
|
||||||
path: /hydra/checkloginldap
|
path: /hydra/checkloginldap
|
||||||
controller: App\Controller\HydraController::checkloginldap
|
controller: App\Controller\HydraController::checkloginldap
|
||||||
|
|
||||||
app_hydra_consent:
|
app_hydra_consent:
|
||||||
path: /hydra/consent
|
path: /hydra/consent
|
||||||
controller: App\Controller\HydraController::consent
|
controller: App\Controller\HydraController::consent
|
||||||
|
|
||||||
#== Ckeditor ====================================================================================================
|
#== Ckeditor ====================================================================================================
|
||||||
#-- Access all
|
#-- Access all
|
||||||
app_ckeditor_upload:
|
app_ckeditor_upload:
|
||||||
path: /all/upload/{{category}}/{{id}}/{{usage}}
|
path: /all/upload/{{category}}/{{id}}/{{usage}}
|
||||||
controller: App\Controller\MinioController::ckupload
|
controller: App\Controller\MinioController::ckupload
|
||||||
defaults: { access: all, category: all, id: 0, usage: all }
|
defaults: { access: all, category: all, id: 0, usage: all }
|
||||||
|
|
||||||
#== Audit =======================================================================================================
|
#== Audit =======================================================================================================
|
||||||
#--Access admin
|
#--Access admin
|
||||||
app_admin_audit_renderid:
|
app_admin_audit_renderid:
|
||||||
path: /admin/audit/{entityname}/{entityid}
|
path: /admin/audit/{entityname}/{entityid}
|
||||||
controller: App\Controller\AuditController::auditrender
|
controller: App\Controller\AuditController::auditrender
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_audit_render:
|
app_admin_audit_render:
|
||||||
path: /admin/audit/{entityname}
|
path: /admin/audit/{entityname}
|
||||||
controller: App\Controller\AuditController::list
|
controller: App\Controller\AuditController::list
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
#--Access modo
|
#--Access modo
|
||||||
app_modo_audit_renderid:
|
app_modo_audit_renderid:
|
||||||
path: /modo/audit/{entityname}/{entityid}
|
path: /modo/audit/{entityname}/{entityid}
|
||||||
controller: App\Controller\AuditController::auditrender
|
controller: App\Controller\AuditController::auditrender
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
#== Niveau01 ====================================================================================================
|
#== Niveau01 ====================================================================================================
|
||||||
#-- Access admin
|
#-- Access admin
|
||||||
app_admin_niveau01:
|
app_admin_niveau01:
|
||||||
path: /admin/niveau01
|
path: /admin/niveau01
|
||||||
controller: App\Controller\Niveau01Controller::list
|
controller: App\Controller\Niveau01Controller::list
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_niveau01_tablelist:
|
app_admin_niveau01_tablelist:
|
||||||
path: /admin/niveau01/tablelist
|
path: /admin/niveau01/tablelist
|
||||||
controller: App\Controller\Niveau01Controller::tablelist
|
controller: App\Controller\Niveau01Controller::tablelist
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_niveau01_selectlist:
|
app_admin_niveau01_selectlist:
|
||||||
path: /admin/niveau01/selectlist
|
path: /admin/niveau01/selectlist
|
||||||
controller: App\Controller\Niveau01Controller::selectlist
|
controller: App\Controller\Niveau01Controller::selectlist
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_niveau01_submit:
|
app_admin_niveau01_submit:
|
||||||
path: /admin/niveau01/submit
|
path: /admin/niveau01/submit
|
||||||
controller: App\Controller\Niveau01Controller::submit
|
controller: App\Controller\Niveau01Controller::submit
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_niveau01_update:
|
app_admin_niveau01_update:
|
||||||
path: /admin/niveau01/update/{id}
|
path: /admin/niveau01/update/{id}
|
||||||
controller: App\Controller\Niveau01Controller::update
|
controller: App\Controller\Niveau01Controller::update
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_niveau01_delete:
|
app_admin_niveau01_delete:
|
||||||
path: /admin/niveau01/delete/{id}
|
path: /admin/niveau01/delete/{id}
|
||||||
controller: App\Controller\Niveau01Controller::delete
|
controller: App\Controller\Niveau01Controller::delete
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
|
|
||||||
#== Niveau02 ====================================================================================================
|
#== Niveau02 ====================================================================================================
|
||||||
#-- Access admin
|
#-- Access admin
|
||||||
app_admin_niveau02:
|
app_admin_niveau02:
|
||||||
path: /admin/niveau02
|
path: /admin/niveau02
|
||||||
controller: App\Controller\Niveau02Controller::list
|
controller: App\Controller\Niveau02Controller::list
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_niveau02_tablelist:
|
app_admin_niveau02_tablelist:
|
||||||
path: /admin/niveau02/tablelist
|
path: /admin/niveau02/tablelist
|
||||||
controller: App\Controller\Niveau02Controller::tablelist
|
controller: App\Controller\Niveau02Controller::tablelist
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_niveau02_submit:
|
app_admin_niveau02_submit:
|
||||||
path: /admin/niveau02/submit
|
path: /admin/niveau02/submit
|
||||||
controller: App\Controller\Niveau02Controller::submit
|
controller: App\Controller\Niveau02Controller::submit
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_niveau02_update:
|
app_admin_niveau02_update:
|
||||||
path: /admin/niveau02/update/{id}
|
path: /admin/niveau02/update/{id}
|
||||||
controller: App\Controller\Niveau02Controller::update
|
controller: App\Controller\Niveau02Controller::update
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_niveau02_delete:
|
app_admin_niveau02_delete:
|
||||||
path: /admin/niveau02/delete/{id}
|
path: /admin/niveau02/delete/{id}
|
||||||
controller: App\Controller\Niveau02Controller::delete
|
controller: App\Controller\Niveau02Controller::delete
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
#-- Access modo
|
#-- Access modo
|
||||||
app_modo_niveau02:
|
app_modo_niveau02:
|
||||||
path: /modo/niveau02
|
path: /modo/niveau02
|
||||||
controller: App\Controller\Niveau02Controller::list
|
controller: App\Controller\Niveau02Controller::list
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_niveau02_tablelist:
|
app_modo_niveau02_tablelist:
|
||||||
path: /modo/niveau02/tablelist
|
path: /modo/niveau02/tablelist
|
||||||
controller: App\Controller\Niveau02Controller::tablelist
|
controller: App\Controller\Niveau02Controller::tablelist
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_niveau02_submit:
|
app_modo_niveau02_submit:
|
||||||
path: /modo/niveau02/submit
|
path: /modo/niveau02/submit
|
||||||
controller: App\Controller\Niveau02Controller::submit
|
controller: App\Controller\Niveau02Controller::submit
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_niveau02_update:
|
app_modo_niveau02_update:
|
||||||
path: /modo/niveau02/update/{id}
|
path: /modo/niveau02/update/{id}
|
||||||
controller: App\Controller\Niveau02Controller::update
|
controller: App\Controller\Niveau02Controller::update
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_niveau02_delete:
|
app_modo_niveau02_delete:
|
||||||
path: /modo/niveau02/delete/{id}
|
path: /modo/niveau02/delete/{id}
|
||||||
controller: App\Controller\Niveau02Controller::delete
|
controller: App\Controller\Niveau02Controller::delete
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
#-- Access public
|
#-- Access public
|
||||||
app_niveau02_selectlist:
|
app_niveau02_selectlist:
|
||||||
path: /niveau02/selectlist
|
path: /niveau02/selectlist
|
||||||
controller: App\Controller\Niveau02Controller::selectlist
|
controller: App\Controller\Niveau02Controller::selectlist
|
||||||
|
|
||||||
#== Niveau03 ====================================================================================================
|
#== Niveau03 ====================================================================================================
|
||||||
#-- Access admin
|
#-- Access admin
|
||||||
app_admin_niveau03:
|
app_admin_niveau03:
|
||||||
path: /admin/niveau03
|
path: /admin/niveau03
|
||||||
controller: App\Controller\Niveau03Controller::list
|
controller: App\Controller\Niveau03Controller::list
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_niveau03_tablelist:
|
app_admin_niveau03_tablelist:
|
||||||
path: /admin/niveau03/tablelist
|
path: /admin/niveau03/tablelist
|
||||||
controller: App\Controller\Niveau03Controller::tablelist
|
controller: App\Controller\Niveau03Controller::tablelist
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_niveau03_submit:
|
app_admin_niveau03_submit:
|
||||||
path: /admin/niveau03/submit
|
path: /admin/niveau03/submit
|
||||||
controller: App\Controller\Niveau03Controller::submit
|
controller: App\Controller\Niveau03Controller::submit
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_niveau03_update:
|
app_admin_niveau03_update:
|
||||||
path: /admin/niveau03/update/{id}
|
path: /admin/niveau03/update/{id}
|
||||||
controller: App\Controller\Niveau03Controller::update
|
controller: App\Controller\Niveau03Controller::update
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_niveau03_delete:
|
app_admin_niveau03_delete:
|
||||||
path: /admin/niveau03/delete/{id}
|
path: /admin/niveau03/delete/{id}
|
||||||
controller: App\Controller\Niveau03Controller::delete
|
controller: App\Controller\Niveau03Controller::delete
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
#-- Access modo
|
#-- Access modo
|
||||||
app_modo_niveau03:
|
app_modo_niveau03:
|
||||||
path: /modo/niveau03
|
path: /modo/niveau03
|
||||||
controller: App\Controller\Niveau03Controller::list
|
controller: App\Controller\Niveau03Controller::list
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_niveau03_tablelist:
|
app_modo_niveau03_tablelist:
|
||||||
path: /modo/niveau03/tablelist
|
path: /modo/niveau03/tablelist
|
||||||
controller: App\Controller\Niveau03Controller::tablelist
|
controller: App\Controller\Niveau03Controller::tablelist
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_niveau03_submit:
|
app_modo_niveau03_submit:
|
||||||
path: /modo/niveau03/submit
|
path: /modo/niveau03/submit
|
||||||
controller: App\Controller\Niveau03Controller::submit
|
controller: App\Controller\Niveau03Controller::submit
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_niveau03_update:
|
app_modo_niveau03_update:
|
||||||
path: /modo/niveau03/update/{id}
|
path: /modo/niveau03/update/{id}
|
||||||
controller: App\Controller\Niveau03Controller::update
|
controller: App\Controller\Niveau03Controller::update
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_niveau03_delete:
|
app_modo_niveau03_delete:
|
||||||
path: /modo/niveau03/delete/{id}
|
path: /modo/niveau03/delete/{id}
|
||||||
controller: App\Controller\Niveau03Controller::delete
|
controller: App\Controller\Niveau03Controller::delete
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
#-- Access public
|
#-- Access public
|
||||||
app_niveau03_selectlist:
|
app_niveau03_selectlist:
|
||||||
path: /niveau03/selectlist
|
path: /niveau03/selectlist
|
||||||
controller: App\Controller\Niveau03Controller::selectlist
|
controller: App\Controller\Niveau03Controller::selectlist
|
||||||
|
|
||||||
#== Niveau04 ====================================================================================================
|
#== Niveau04 ====================================================================================================
|
||||||
#-- Access admin
|
#-- Access admin
|
||||||
app_admin_niveau04:
|
app_admin_niveau04:
|
||||||
path: /admin/niveau04
|
path: /admin/niveau04
|
||||||
controller: App\Controller\Niveau04Controller::list
|
controller: App\Controller\Niveau04Controller::list
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_niveau04_tablelist:
|
app_admin_niveau04_tablelist:
|
||||||
path: /admin/niveau04/tablelist
|
path: /admin/niveau04/tablelist
|
||||||
controller: App\Controller\Niveau04Controller::tablelist
|
controller: App\Controller\Niveau04Controller::tablelist
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_niveau04_submit:
|
app_admin_niveau04_submit:
|
||||||
path: /admin/niveau04/submit
|
path: /admin/niveau04/submit
|
||||||
controller: App\Controller\Niveau04Controller::submit
|
controller: App\Controller\Niveau04Controller::submit
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_niveau04_update:
|
app_admin_niveau04_update:
|
||||||
path: /admin/niveau04/update/{id}
|
path: /admin/niveau04/update/{id}
|
||||||
controller: App\Controller\Niveau04Controller::update
|
controller: App\Controller\Niveau04Controller::update
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_niveau04_delete:
|
app_admin_niveau04_delete:
|
||||||
path: /admin/niveau04/delete/{id}
|
path: /admin/niveau04/delete/{id}
|
||||||
controller: App\Controller\Niveau04Controller::delete
|
controller: App\Controller\Niveau04Controller::delete
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
#-- Access modo
|
#-- Access modo
|
||||||
app_modo_niveau04:
|
app_modo_niveau04:
|
||||||
path: /modo/niveau04
|
path: /modo/niveau04
|
||||||
controller: App\Controller\Niveau04Controller::list
|
controller: App\Controller\Niveau04Controller::list
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_niveau04_tablelist:
|
app_modo_niveau04_tablelist:
|
||||||
path: /modo/niveau04/tablelist
|
path: /modo/niveau04/tablelist
|
||||||
controller: App\Controller\Niveau04Controller::tablelist
|
controller: App\Controller\Niveau04Controller::tablelist
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_niveau04_submit:
|
app_modo_niveau04_submit:
|
||||||
path: /modo/niveau04/submit
|
path: /modo/niveau04/submit
|
||||||
controller: App\Controller\Niveau04Controller::submit
|
controller: App\Controller\Niveau04Controller::submit
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_niveau04_update:
|
app_modo_niveau04_update:
|
||||||
path: /modo/niveau04/update/{id}
|
path: /modo/niveau04/update/{id}
|
||||||
controller: App\Controller\Niveau04Controller::update
|
controller: App\Controller\Niveau04Controller::update
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_niveau04_delete:
|
app_modo_niveau04_delete:
|
||||||
path: /modo/niveau04/delete/{id}
|
path: /modo/niveau04/delete/{id}
|
||||||
controller: App\Controller\Niveau04Controller::delete
|
controller: App\Controller\Niveau04Controller::delete
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
#-- Access public
|
#-- Access public
|
||||||
app_niveau04_selectlist:
|
app_niveau04_selectlist:
|
||||||
path: /niveau04/selectlist
|
path: /niveau04/selectlist
|
||||||
controller: App\Controller\Niveau04Controller::selectlist
|
controller: App\Controller\Niveau04Controller::selectlist
|
||||||
|
|
||||||
#== Group =======================================================================================================
|
#== Group =======================================================================================================
|
||||||
#-- Access admin
|
#-- Access admin
|
||||||
app_admin_group:
|
app_admin_group:
|
||||||
path: /admin/group
|
path: /admin/group
|
||||||
controller: App\Controller\GroupController::list
|
controller: App\Controller\GroupController::list
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_group_tablelist:
|
app_admin_group_tablelist:
|
||||||
path: /admin/group/tablelist
|
path: /admin/group/tablelist
|
||||||
controller: App\Controller\GroupController::tablelist
|
controller: App\Controller\GroupController::tablelist
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_group_selectlist:
|
app_admin_group_selectlist:
|
||||||
path: /admin/group/selectlist
|
path: /admin/group/selectlist
|
||||||
controller: App\Controller\GroupController::selectlist
|
controller: App\Controller\GroupController::selectlist
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_group_submit:
|
app_admin_group_submit:
|
||||||
path: /admin/group/submit
|
path: /admin/group/submit
|
||||||
controller: App\Controller\GroupController::submit
|
controller: App\Controller\GroupController::submit
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_group_update:
|
app_admin_group_update:
|
||||||
path: /admin/group/update/{id}
|
path: /admin/group/update/{id}
|
||||||
controller: App\Controller\GroupController::update
|
controller: App\Controller\GroupController::update
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_group_delete:
|
app_admin_group_delete:
|
||||||
path: /admin/group/delete/{id}
|
path: /admin/group/delete/{id}
|
||||||
controller: App\Controller\GroupController::delete
|
controller: App\Controller\GroupController::delete
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_group_users:
|
app_admin_group_users:
|
||||||
path: /admin/group/users/{id}
|
path: /admin/group/users/{id}
|
||||||
controller: App\Controller\GroupController::users
|
controller: App\Controller\GroupController::users
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_group_usersnotin:
|
app_admin_group_usersnotin:
|
||||||
path: /admin/group/usersnotin/{id}
|
path: /admin/group/usersnotin/{id}
|
||||||
controller: App\Controller\GroupController::usersnotin
|
controller: App\Controller\GroupController::usersnotin
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_group_usersin:
|
app_admin_group_usersin:
|
||||||
path: /admin/group/usersin/{id}
|
path: /admin/group/usersin/{id}
|
||||||
controller: App\Controller\GroupController::usersin
|
controller: App\Controller\GroupController::usersin
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_group_usergroup_add:
|
app_admin_group_usergroup_add:
|
||||||
path: /admin/group/usergroup/add/{groupid}/{userid}
|
path: /admin/group/usergroup/add/{groupid}/{userid}
|
||||||
controller: App\Controller\GroupController::useradd
|
controller: App\Controller\GroupController::useradd
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_group_usergroup_del:
|
app_admin_group_usergroup_del:
|
||||||
path: /admin/group/usergroup/del/{groupid}/{userid}
|
path: /admin/group/usergroup/del/{groupid}/{userid}
|
||||||
controller: App\Controller\GroupController::userdel
|
controller: App\Controller\GroupController::userdel
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_group_usergroup_changerole:
|
app_admin_group_usergroup_changerole:
|
||||||
path: /admin/group/usergroup/changerole/{groupid}/{userid}/{roleid}
|
path: /admin/group/usergroup/changerole/{groupid}/{userid}/{roleid}
|
||||||
controller: App\Controller\GroupController::userchangerole
|
controller: App\Controller\GroupController::userchangerole
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
#-- Access modo
|
#-- Access modo
|
||||||
app_modo_group:
|
app_modo_group:
|
||||||
path: /modo/group
|
path: /modo/group
|
||||||
controller: App\Controller\GroupController::list
|
controller: App\Controller\GroupController::list
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_group_tablelist:
|
app_modo_group_tablelist:
|
||||||
path: /modo/group/tablelist
|
path: /modo/group/tablelist
|
||||||
controller: App\Controller\GroupController::tablelist
|
controller: App\Controller\GroupController::tablelist
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_group_selectlist:
|
app_modo_group_selectlist:
|
||||||
path: /modo/group/selectlist
|
path: /modo/group/selectlist
|
||||||
controller: App\Controller\GroupController::selectlist
|
controller: App\Controller\GroupController::selectlist
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_group_users:
|
app_modo_group_users:
|
||||||
path: /modo/group/users/{id}
|
path: /modo/group/users/{id}
|
||||||
controller: App\Controller\GroupController::users
|
controller: App\Controller\GroupController::users
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_group_usersnotin:
|
app_modo_group_usersnotin:
|
||||||
path: /modo/group/usersnotin/{id}
|
path: /modo/group/usersnotin/{id}
|
||||||
controller: App\Controller\GroupController::usersnotin
|
controller: App\Controller\GroupController::usersnotin
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_group_usersin:
|
app_modo_group_usersin:
|
||||||
path: /modo/group/usersin/{id}
|
path: /modo/group/usersin/{id}
|
||||||
controller: App\Controller\GroupController::usersin
|
controller: App\Controller\GroupController::usersin
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_group_usergroup_add:
|
app_modo_group_usergroup_add:
|
||||||
path: /modo/group/usergroup/add/{groupid}/{userid}
|
path: /modo/group/usergroup/add/{groupid}/{userid}
|
||||||
controller: App\Controller\GroupController::useradd
|
controller: App\Controller\GroupController::useradd
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_group_usergroup_del:
|
app_modo_group_usergroup_del:
|
||||||
path: /modo/group/usergroup/del/{groupid}/{userid}
|
path: /modo/group/usergroup/del/{groupid}/{userid}
|
||||||
controller: App\Controller\GroupController::userdel
|
controller: App\Controller\GroupController::userdel
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_group_usergroup_changerole:
|
app_modo_group_usergroup_changerole:
|
||||||
path: /modo/group/usergroup/changerole/{groupid}/{userid}/{roleid}
|
path: /modo/group/usergroup/changerole/{groupid}/{userid}/{roleid}
|
||||||
controller: App\Controller\GroupController::userchangerole
|
controller: App\Controller\GroupController::userchangerole
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
#-- Access all
|
#-- Access all
|
||||||
app_all_group:
|
app_all_group:
|
||||||
path: /all/group
|
path: /all/group
|
||||||
controller: App\Controller\GroupController::list
|
controller: App\Controller\GroupController::list
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_group_tablelist:
|
app_all_group_tablelist:
|
||||||
path: /all/group/tablelist
|
path: /all/group/tablelist
|
||||||
controller: App\Controller\GroupController::tablelist
|
controller: App\Controller\GroupController::tablelist
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_group_selectlist:
|
app_all_group_selectlist:
|
||||||
path: /all/group/selectlist
|
path: /all/group/selectlist
|
||||||
controller: App\Controller\GroupController::selectlist
|
controller: App\Controller\GroupController::selectlist
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_group_submit:
|
app_all_group_submit:
|
||||||
path: /all/group/submit
|
path: /all/group/submit
|
||||||
controller: App\Controller\GroupController::submit
|
controller: App\Controller\GroupController::submit
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_group_update:
|
app_all_group_update:
|
||||||
path: /all/group/update/{id}
|
path: /all/group/update/{id}
|
||||||
controller: App\Controller\GroupController::update
|
controller: App\Controller\GroupController::update
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_group_delete:
|
app_all_group_delete:
|
||||||
path: /all/group/delete/{id}
|
path: /all/group/delete/{id}
|
||||||
controller: App\Controller\GroupController::delete
|
controller: App\Controller\GroupController::delete
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_group_users:
|
app_all_group_users:
|
||||||
path: /all/group/users/{id}
|
path: /all/group/users/{id}
|
||||||
controller: App\Controller\GroupController::users
|
controller: App\Controller\GroupController::users
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_group_usersnotin:
|
app_all_group_usersnotin:
|
||||||
path: /all/group/usersnotin/{id}
|
path: /all/group/usersnotin/{id}
|
||||||
controller: App\Controller\GroupController::usersnotin
|
controller: App\Controller\GroupController::usersnotin
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_group_usersin:
|
app_all_group_usersin:
|
||||||
path: /all/group/usersin/{id}
|
path: /all/group/usersin/{id}
|
||||||
controller: App\Controller\GroupController::usersin
|
controller: App\Controller\GroupController::usersin
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_group_usergroup_add:
|
app_all_group_usergroup_add:
|
||||||
path: /all/group/usergroup/add/{groupid}/{userid}
|
path: /all/group/usergroup/add/{groupid}/{userid}
|
||||||
controller: App\Controller\GroupController::useradd
|
controller: App\Controller\GroupController::useradd
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_group_usergroup_del:
|
app_all_group_usergroup_del:
|
||||||
path: /all/group/usergroup/del/{groupid}/{userid}
|
path: /all/group/usergroup/del/{groupid}/{userid}
|
||||||
controller: App\Controller\GroupController::userdel
|
controller: App\Controller\GroupController::userdel
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_group_usergroup_changerole:
|
app_all_group_usergroup_changerole:
|
||||||
path: /all/group/usergroup/changerole/{groupid}/{userid}/{roleid}
|
path: /all/group/usergroup/changerole/{groupid}/{userid}/{roleid}
|
||||||
controller: App\Controller\GroupController::userchangerole
|
controller: App\Controller\GroupController::userchangerole
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_group_userout:
|
app_all_group_userout:
|
||||||
path: /all/group/userout/{id}
|
path: /all/group/userout/{id}
|
||||||
controller: App\Controller\GroupController::userout
|
controller: App\Controller\GroupController::userout
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
#== Whitelist ===================================================================================================
|
#== Whitelist ===================================================================================================
|
||||||
#-- Access admin
|
#-- Access admin
|
||||||
app_admin_whitelist:
|
app_admin_whitelist:
|
||||||
path: /admin/whitelist
|
path: /admin/whitelist
|
||||||
controller: App\Controller\WhitelistController::list
|
controller: App\Controller\WhitelistController::list
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_whitelist_tablelist:
|
app_admin_whitelist_tablelist:
|
||||||
path: /admin/whitelist/tablelist
|
path: /admin/whitelist/tablelist
|
||||||
controller: App\Controller\WhitelistController::tablelist
|
controller: App\Controller\WhitelistController::tablelist
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_whitelist_submit:
|
app_admin_whitelist_submit:
|
||||||
path: /admin/whitelist/submit
|
path: /admin/whitelist/submit
|
||||||
controller: App\Controller\WhitelistController::submit
|
controller: App\Controller\WhitelistController::submit
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_whitelist_update:
|
app_admin_whitelist_update:
|
||||||
path: /admin/whitelist/update/{id}
|
path: /admin/whitelist/update/{id}
|
||||||
controller: App\Controller\WhitelistController::update
|
controller: App\Controller\WhitelistController::update
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_whitelist_delete:
|
app_admin_whitelist_delete:
|
||||||
path: /admin/whitelist/delete/{id}
|
path: /admin/whitelist/delete/{id}
|
||||||
controller: App\Controller\WhitelistController::delete
|
controller: App\Controller\WhitelistController::delete
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
#-- Access public
|
#-- Access public
|
||||||
app_whitelist_is:
|
app_whitelist_is:
|
||||||
path: /whitelist/is
|
path: /whitelist/is
|
||||||
controller: App\Controller\WhitelistController::is
|
controller: App\Controller\WhitelistController::is
|
||||||
|
|
||||||
#== Registration ================================================================================================
|
#== Registration ================================================================================================
|
||||||
#-- Access admin
|
#-- Access admin
|
||||||
app_admin_registration:
|
app_admin_registration:
|
||||||
path: /admin/registration
|
path: /admin/registration
|
||||||
controller: App\Controller\RegistrationController::list
|
controller: App\Controller\RegistrationController::list
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_registration_tablelist:
|
app_admin_registration_tablelist:
|
||||||
path: /admin/registration/tablelist
|
path: /admin/registration/tablelist
|
||||||
controller: App\Controller\RegistrationController::tablelist
|
controller: App\Controller\RegistrationController::tablelist
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_registration_update:
|
app_admin_registration_update:
|
||||||
path: /admin/registration/update/{id}
|
path: /admin/registration/update/{id}
|
||||||
controller: App\Controller\RegistrationController::update
|
controller: App\Controller\RegistrationController::update
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_registration_delete:
|
app_admin_registration_delete:
|
||||||
path: /admin/registration/delete/{id}
|
path: /admin/registration/delete/{id}
|
||||||
controller: App\Controller\RegistrationController::delete
|
controller: App\Controller\RegistrationController::delete
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
#-- Access modo
|
#-- Access modo
|
||||||
app_modo_registration:
|
app_modo_registration:
|
||||||
path: /modo/registration
|
path: /modo/registration
|
||||||
controller: App\Controller\RegistrationController::list
|
controller: App\Controller\RegistrationController::list
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_registration_tablelist:
|
app_modo_registration_tablelist:
|
||||||
path: /modo/registration/tablelist
|
path: /modo/registration/tablelist
|
||||||
controller: App\Controller\RegistrationController::tablelist
|
controller: App\Controller\RegistrationController::tablelist
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_registration_update:
|
app_modo_registration_update:
|
||||||
path: /modo/registration/update/{id}
|
path: /modo/registration/update/{id}
|
||||||
controller: App\Controller\RegistrationController::update
|
controller: App\Controller\RegistrationController::update
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_registration_delete:
|
app_modo_registration_delete:
|
||||||
path: /modo/registration/delete/{id}
|
path: /modo/registration/delete/{id}
|
||||||
controller: App\Controller\RegistrationController::delete
|
controller: App\Controller\RegistrationController::delete
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
#-- Access public
|
#-- Access public
|
||||||
app_registration:
|
app_registration:
|
||||||
path: /registration
|
path: /registration
|
||||||
controller: App\Controller\RegistrationController::submit
|
controller: App\Controller\RegistrationController::submit
|
||||||
|
|
||||||
app_registration_info:
|
app_registration_info:
|
||||||
path: /registration/info
|
path: /registration/info
|
||||||
controller: App\Controller\RegistrationController::info
|
controller: App\Controller\RegistrationController::info
|
||||||
|
|
||||||
app_registration_validation:
|
app_registration_validation:
|
||||||
path: /registration/validation/{key}
|
path: /registration/validation/{key}
|
||||||
controller: App\Controller\RegistrationController::validation
|
controller: App\Controller\RegistrationController::validation
|
||||||
|
|
||||||
app_resetpwd01:
|
app_resetpwd01:
|
||||||
path: /resetpwd01
|
path: /resetpwd01
|
||||||
controller: App\Controller\RegistrationController::resetpwd01
|
controller: App\Controller\RegistrationController::resetpwd01
|
||||||
|
|
||||||
app_resetpwd02:
|
app_resetpwd02:
|
||||||
path: /resetpwd02/{key}
|
path: /resetpwd02/{key}
|
||||||
controller: App\Controller\RegistrationController::resetpwd02
|
controller: App\Controller\RegistrationController::resetpwd02
|
||||||
|
|
||||||
#== User ========================================================================================================
|
#== User ========================================================================================================
|
||||||
#-- Access admin
|
#-- Access admin
|
||||||
app_admin_user:
|
app_admin_user:
|
||||||
path: /admin/user
|
path: /admin/user
|
||||||
controller: App\Controller\UserController::list
|
controller: App\Controller\UserController::list
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_user_tablelist:
|
app_admin_user_tablelist:
|
||||||
path: /admin/user/tablelist
|
path: /admin/user/tablelist
|
||||||
controller: App\Controller\UserController::tablelist
|
controller: App\Controller\UserController::tablelist
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_user_selectlist:
|
app_admin_user_selectlist:
|
||||||
path: /admin/user/selectlist
|
path: /admin/user/selectlist
|
||||||
controller: App\Controller\UserController::selectlist
|
controller: App\Controller\UserController::selectlist
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_user_submit:
|
app_admin_user_submit:
|
||||||
path: /admin/user/submit
|
path: /admin/user/submit
|
||||||
controller: App\Controller\UserController::submit
|
controller: App\Controller\UserController::submit
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_user_update:
|
app_admin_user_update:
|
||||||
path: /admin/user/update/{id}
|
path: /admin/user/update/{id}
|
||||||
controller: App\Controller\UserController::update
|
controller: App\Controller\UserController::update
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_user_delete:
|
app_admin_user_delete:
|
||||||
path: /admin/user/delete/{id}
|
path: /admin/user/delete/{id}
|
||||||
controller: App\Controller\UserController::delete
|
controller: App\Controller\UserController::delete
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
#-- Access modo
|
#-- Access modo
|
||||||
app_modo_user:
|
app_modo_user:
|
||||||
path: /modo/user
|
path: /modo/user
|
||||||
controller: App\Controller\UserController::list
|
controller: App\Controller\UserController::list
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_user_tablelist:
|
app_modo_user_tablelist:
|
||||||
path: /modo/user/tablelist
|
path: /modo/user/tablelist
|
||||||
controller: App\Controller\UserController::tablelist
|
controller: App\Controller\UserController::tablelist
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_user_selectlist:
|
app_modo_user_selectlist:
|
||||||
path: /modo/user/selectlist
|
path: /modo/user/selectlist
|
||||||
controller: App\Controller\UserController::selectlist
|
controller: App\Controller\UserController::selectlist
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_user_submit:
|
app_modo_user_submit:
|
||||||
path: /modo/user/submit
|
path: /modo/user/submit
|
||||||
controller: App\Controller\UserController::submit
|
controller: App\Controller\UserController::submit
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_user_update:
|
app_modo_user_update:
|
||||||
path: /modo/user/update/{id}
|
path: /modo/user/update/{id}
|
||||||
controller: App\Controller\UserController::update
|
controller: App\Controller\UserController::update
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
app_modo_user_delete:
|
app_modo_user_delete:
|
||||||
path: /modo/user/delete/{id}
|
path: /modo/user/delete/{id}
|
||||||
controller: App\Controller\UserController::delete
|
controller: App\Controller\UserController::delete
|
||||||
defaults: { access: modo }
|
defaults: { access: modo }
|
||||||
|
|
||||||
#-- Access manager
|
#-- Access manager
|
||||||
app_manager_user:
|
app_manager_user:
|
||||||
path: /manager/user
|
path: /manager/user
|
||||||
controller: App\Controller\UserController::list
|
controller: App\Controller\UserController::list
|
||||||
defaults: { access: manager }
|
defaults: { access: manager }
|
||||||
|
|
||||||
app_manager_user_tablelist:
|
app_manager_user_tablelist:
|
||||||
path: /manager/user/tablelist
|
path: /manager/user/tablelist
|
||||||
controller: App\Controller\UserController::tablelist
|
controller: App\Controller\UserController::tablelist
|
||||||
defaults: { access: manager }
|
defaults: { access: manager }
|
||||||
|
|
||||||
app_manager_user_selectlist:
|
app_manager_user_selectlist:
|
||||||
path: /manager/user/selectlist
|
path: /manager/user/selectlist
|
||||||
controller: App\Controller\UserController::selectlist
|
controller: App\Controller\UserController::selectlist
|
||||||
defaults: { access: manager }
|
defaults: { access: manager }
|
||||||
|
|
||||||
app_manager_user_submit:
|
app_manager_user_submit:
|
||||||
path: /manager/user/submit
|
path: /manager/user/submit
|
||||||
controller: App\Controller\UserController::submit
|
controller: App\Controller\UserController::submit
|
||||||
defaults: { access: manager }
|
defaults: { access: manager }
|
||||||
|
|
||||||
app_manager_user_update:
|
app_manager_user_update:
|
||||||
path: /manager/user/update/{id}
|
path: /manager/user/update/{id}
|
||||||
controller: App\Controller\UserController::update
|
controller: App\Controller\UserController::update
|
||||||
defaults: { access: manager }
|
defaults: { access: manager }
|
||||||
|
|
||||||
app_manager_user_delete:
|
app_manager_user_delete:
|
||||||
path: /manager/user/delete/{id}
|
path: /manager/user/delete/{id}
|
||||||
controller: App\Controller\UserController::delete
|
controller: App\Controller\UserController::delete
|
||||||
defaults: { access: manager }
|
defaults: { access: manager }
|
||||||
|
|
||||||
#-- Access all
|
#-- Access all
|
||||||
app_all_user:
|
app_all_user:
|
||||||
path: /all/update
|
path: /all/update
|
||||||
controller: App\Controller\UserController::profil
|
controller: App\Controller\UserController::profil
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_users:
|
app_all_users:
|
||||||
path: /all/users
|
path: /all/users
|
||||||
controller: App\Controller\UserController::list
|
controller: App\Controller\UserController::list
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_user_tablelist:
|
app_all_user_tablelist:
|
||||||
path: /all/user/tablelist
|
path: /all/user/tablelist
|
||||||
controller: App\Controller\UserController::tablelist
|
controller: App\Controller\UserController::tablelist
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_user_selectlist:
|
app_all_user_selectlist:
|
||||||
path: /all/user/selectlist
|
path: /all/user/selectlist
|
||||||
controller: App\Controller\UserController::selectlist
|
controller: App\Controller\UserController::selectlist
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_view:
|
app_all_view:
|
||||||
path: /all/view/{id}
|
path: /all/view/{id}
|
||||||
controller: App\Controller\UserController::view
|
controller: App\Controller\UserController::view
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_preference:
|
app_all_preference:
|
||||||
path: /all/preference
|
path: /all/preference
|
||||||
controller: App\Controller\UserController::preference
|
controller: App\Controller\UserController::preference
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
#== ICON =================================================================================================================================================
|
#== ICON =================================================================================================================================================
|
||||||
|
|
||||||
#-- Access admin
|
#-- Access admin
|
||||||
app_admin_icon:
|
app_admin_icon:
|
||||||
path: /admin/icon
|
path: /admin/icon
|
||||||
controller: App\Controller\IconController::list
|
controller: App\Controller\IconController::list
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_icon_submit:
|
app_admin_icon_submit:
|
||||||
path: /admin/icon/submit
|
path: /admin/icon/submit
|
||||||
controller: App\Controller\IconController::submit
|
controller: App\Controller\IconController::submit
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_icon_update:
|
app_admin_icon_update:
|
||||||
path: /admin/icon/update/{id}
|
path: /admin/icon/update/{id}
|
||||||
controller: App\Controller\IconController::update
|
controller: App\Controller\IconController::update
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_icon_delete:
|
app_admin_icon_delete:
|
||||||
path: /admin/icon/delete/{id}
|
path: /admin/icon/delete/{id}
|
||||||
controller: App\Controller\IconController::delete
|
controller: App\Controller\IconController::delete
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_icon_select:
|
app_admin_icon_select:
|
||||||
path: /admin/icon/select
|
path: /admin/icon/select
|
||||||
controller: App\Controller\IconController::select
|
controller: App\Controller\IconController::select
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_icon_upload:
|
app_admin_icon_upload:
|
||||||
path: /admin/icon/upload
|
path: /admin/icon/upload
|
||||||
controller: App\Controller\IconController::upload
|
controller: App\Controller\IconController::upload
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
#-- Access all
|
#-- Access all
|
||||||
app_all_icon:
|
app_all_icon:
|
||||||
path: /all/icon
|
path: /all/icon
|
||||||
controller: App\Controller\IconController::list
|
controller: App\Controller\IconController::list
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_icon_submit:
|
app_all_icon_submit:
|
||||||
path: /all/icon/submit
|
path: /all/icon/submit
|
||||||
controller: App\Controller\IconController::submit
|
controller: App\Controller\IconController::submit
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_icon_update:
|
app_all_icon_update:
|
||||||
path: /all/icon/update/{id}
|
path: /all/icon/update/{id}
|
||||||
controller: App\Controller\IconController::update
|
controller: App\Controller\IconController::update
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_icon_delete:
|
app_all_icon_delete:
|
||||||
path: /all/icon/delete/{id}
|
path: /all/icon/delete/{id}
|
||||||
controller: App\Controller\IconController::delete
|
controller: App\Controller\IconController::delete
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_icon_select:
|
app_all_icon_select:
|
||||||
path: /all/icon/select
|
path: /all/icon/select
|
||||||
controller: App\Controller\IconController::select
|
controller: App\Controller\IconController::select
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_icon_upload:
|
app_all_icon_upload:
|
||||||
path: /all/icon/upload
|
path: /all/icon/upload
|
||||||
controller: App\Controller\IconController::upload
|
controller: App\Controller\IconController::upload
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
#== ALERT ================================================================================================================================================
|
#== ALERT ================================================================================================================================================
|
||||||
|
|
||||||
#-- Access admin
|
#-- Access admin
|
||||||
app_admin_alert:
|
app_admin_alert:
|
||||||
path: /admin/alert
|
path: /admin/alert
|
||||||
controller: App\Controller\AlertController::list
|
controller: App\Controller\AlertController::list
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_alert_submit:
|
app_admin_alert_submit:
|
||||||
path: /admin/alert/submit
|
path: /admin/alert/submit
|
||||||
controller: App\Controller\AlertController::submit
|
controller: App\Controller\AlertController::submit
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_alert_update:
|
app_admin_alert_update:
|
||||||
path: /admin/alert/update/{id}
|
path: /admin/alert/update/{id}
|
||||||
controller: App\Controller\AlertController::update
|
controller: App\Controller\AlertController::update
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_alert_delete:
|
app_admin_alert_delete:
|
||||||
path: /admin/alert/delete/{id}
|
path: /admin/alert/delete/{id}
|
||||||
controller: App\Controller\AlertController::delete
|
controller: App\Controller\AlertController::delete
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_alert_order:
|
app_admin_alert_order:
|
||||||
path: /admin/alert/order
|
path: /admin/alert/order
|
||||||
controller: App\Controller\AlertController::order
|
controller: App\Controller\AlertController::order
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
#-- Access all
|
#-- Access all
|
||||||
app_all_alert_read:
|
app_all_alert_read:
|
||||||
path: /all/alert/read
|
path: /all/alert/read
|
||||||
controller: App\Controller\AlertController::read
|
controller: App\Controller\AlertController::read
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
#== ALERT CATEGORY =======================================================================================================================================
|
#== ALERT CATEGORY =======================================================================================================================================
|
||||||
|
|
||||||
#-- Access admin
|
#-- Access admin
|
||||||
app_admin_alertcategory_submit:
|
app_admin_alertcategory_submit:
|
||||||
path: /admin/alertcategory/submit
|
path: /admin/alertcategory/submit
|
||||||
controller: App\Controller\AlertcategoryController::submit
|
controller: App\Controller\AlertcategoryController::submit
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_alertcategory_update:
|
app_admin_alertcategory_update:
|
||||||
path: /admin/alertcategory/update/{id}
|
path: /admin/alertcategory/update/{id}
|
||||||
controller: App\Controller\AlertcategoryController::update
|
controller: App\Controller\AlertcategoryController::update
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_alertcategory_delete:
|
app_admin_alertcategory_delete:
|
||||||
path: /admin/alertcategory/delete/{id}
|
path: /admin/alertcategory/delete/{id}
|
||||||
controller: App\Controller\AlertcategoryController::delete
|
controller: App\Controller\AlertcategoryController::delete
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
#== ITEM =================================================================================================================================================
|
#== ITEM =================================================================================================================================================
|
||||||
|
|
||||||
#-- Access admin
|
#-- Access admin
|
||||||
app_admin_item:
|
app_admin_item:
|
||||||
path: /admin/item
|
path: /admin/item
|
||||||
controller: App\Controller\ItemController::list
|
controller: App\Controller\ItemController::list
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_item_submit:
|
app_admin_item_submit:
|
||||||
path: /admin/item/submit
|
path: /admin/item/submit
|
||||||
controller: App\Controller\ItemController::submit
|
controller: App\Controller\ItemController::submit
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_item_update:
|
app_admin_item_update:
|
||||||
path: /admin/item/update/{id}
|
path: /admin/item/update/{id}
|
||||||
controller: App\Controller\ItemController::update
|
controller: App\Controller\ItemController::update
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_item_delete:
|
app_admin_item_delete:
|
||||||
path: /admin/item/delete/{id}
|
path: /admin/item/delete/{id}
|
||||||
controller: App\Controller\ItemController::delete
|
controller: App\Controller\ItemController::delete
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_item_order:
|
app_admin_item_order:
|
||||||
path: /admin/item/order
|
path: /admin/item/order
|
||||||
controller: App\Controller\ItemController::order
|
controller: App\Controller\ItemController::order
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
|
|
||||||
#== ITEM CATEGORY ========================================================================================================================================
|
#== ITEM CATEGORY ========================================================================================================================================
|
||||||
|
|
||||||
#-- Access admin
|
#-- Access admin
|
||||||
app_admin_itemcategory_submit:
|
app_admin_itemcategory_submit:
|
||||||
path: /admin/itemcategory/submit
|
path: /admin/itemcategory/submit
|
||||||
controller: App\Controller\ItemcategoryController::submit
|
controller: App\Controller\ItemcategoryController::submit
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_itemcategory_update:
|
app_admin_itemcategory_update:
|
||||||
path: /admin/itemcategory/update/{id}
|
path: /admin/itemcategory/update/{id}
|
||||||
controller: App\Controller\ItemcategoryController::update
|
controller: App\Controller\ItemcategoryController::update
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_itemcategory_delete:
|
app_admin_itemcategory_delete:
|
||||||
path: /admin/itemcategory/delete/{id}
|
path: /admin/itemcategory/delete/{id}
|
||||||
controller: App\Controller\ItemcategoryController::delete
|
controller: App\Controller\ItemcategoryController::delete
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_itemcategory_order:
|
app_admin_itemcategory_order:
|
||||||
path: /admin/itemcategory/order
|
path: /admin/itemcategory/order
|
||||||
controller: App\Controller\ItemcategoryController::order
|
controller: App\Controller\ItemcategoryController::order
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
#== BOOKMARK =============================================================================================================================================
|
#== BOOKMARK =============================================================================================================================================
|
||||||
|
|
||||||
#-- Access config
|
#-- Access config
|
||||||
app_admin_bookmark_submit:
|
app_admin_bookmark_submit:
|
||||||
path: /admin/bookmark/submit/{idpage}/{idwidget}/{touser}
|
path: /admin/bookmark/submit/{idpage}/{idwidget}/{touser}
|
||||||
controller: App\Controller\BookmarkController::submit
|
controller: App\Controller\BookmarkController::submit
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_bookmark_update:
|
app_admin_bookmark_update:
|
||||||
path: /admin/bookmark/update/{id}/{idpage}/{idwidget}/{touser}
|
path: /admin/bookmark/update/{id}/{idpage}/{idwidget}/{touser}
|
||||||
controller: App\Controller\BookmarkController::update
|
controller: App\Controller\BookmarkController::update
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_bookmark_delete:
|
app_admin_bookmark_delete:
|
||||||
path: /admin/bookmark/delete/{id}/{idpage}/{idwidget}/{touser}
|
path: /admin/bookmark/delete/{id}/{idpage}/{idwidget}/{touser}
|
||||||
controller: App\Controller\BookmarkController::delete
|
controller: App\Controller\BookmarkController::delete
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_bookmark_heart:
|
app_admin_bookmark_heart:
|
||||||
path: /admin/bookmark/heart
|
path: /admin/bookmark/heart
|
||||||
controller: App\Controller\BookmarkController::heart
|
controller: App\Controller\BookmarkController::heart
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
#-- Access all
|
#-- Access all
|
||||||
app_all_bookmark_submit:
|
app_all_bookmark_submit:
|
||||||
path: /all/bookmark/submit/{idpage}/{idwidget}/{touser}
|
path: /all/bookmark/submit/{idpage}/{idwidget}/{touser}
|
||||||
controller: App\Controller\BookmarkController::submit
|
controller: App\Controller\BookmarkController::submit
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_bookmark_update:
|
app_all_bookmark_update:
|
||||||
path: /all/bookmark/update/{id}/{idpage}/{idwidget}/{touser}
|
path: /all/bookmark/update/{id}/{idpage}/{idwidget}/{touser}
|
||||||
controller: App\Controller\BookmarkController::update
|
controller: App\Controller\BookmarkController::update
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_bookmark_delete:
|
app_all_bookmark_delete:
|
||||||
path: /all/bookmark/delete/{id}/{idpage}/{idwidget}/{touser}
|
path: /all/bookmark/delete/{id}/{idpage}/{idwidget}/{touser}
|
||||||
controller: App\Controller\BookmarkController::delete
|
controller: App\Controller\BookmarkController::delete
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_bookmark_heart:
|
|
||||||
path: /all/bookmark/heart
|
|
||||||
controller: App\Controller\BookmarkController::heart
|
|
||||||
defaults: { access: all }
|
|
||||||
|
|
||||||
|
app_all_bookmark_heart:
|
||||||
|
path: /all/bookmark/heart
|
||||||
|
controller: App\Controller\BookmarkController::heart
|
||||||
|
defaults: { access: all }
|
||||||
|
|
||||||
#== FILE =================================================================================================================
|
#== FILE =================================================================================================================
|
||||||
|
|
||||||
#-- Access admin
|
#-- Access admin
|
||||||
app_admin_file_list:
|
app_admin_file_list:
|
||||||
path: /admin/file/list/{category}/{id}
|
path: /admin/file/list/{category}/{id}
|
||||||
controller: App\Controller\FileController::list
|
controller: App\Controller\FileController::list
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_file_upload:
|
app_admin_file_upload:
|
||||||
path: /admin/file/upload/{category}/{id}/{type}
|
path: /admin/file/upload/{category}/{id}/{type}
|
||||||
controller: App\Controller\FileController::upload
|
controller: App\Controller\FileController::upload
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_file_folder:
|
app_admin_file_folder:
|
||||||
path: /admin/file/folder/{category}/{id}
|
path: /admin/file/folder/{category}/{id}
|
||||||
controller: App\Controller\FileController::folder
|
controller: App\Controller\FileController::folder
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_file_rename:
|
app_admin_file_rename:
|
||||||
path: /admin/file/rename/{category}/{id}
|
path: /admin/file/rename/{category}/{id}
|
||||||
controller: App\Controller\FileController::rename
|
controller: App\Controller\FileController::rename
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_file_trash:
|
app_admin_file_trash:
|
||||||
path: /admin/file/trash/{category}/{id}
|
path: /admin/file/trash/{category}/{id}
|
||||||
controller: App\Controller\FileController::trash
|
controller: App\Controller\FileController::trash
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_file_restaure:
|
app_admin_file_restaure:
|
||||||
path: /admin/file/restaure/{category}/{id}
|
path: /admin/file/restaure/{category}/{id}
|
||||||
controller: App\Controller\FileController::restaure
|
controller: App\Controller\FileController::restaure
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_file_purgetrash:
|
app_admin_file_purgetrash:
|
||||||
path: /admin/file/purgetrash/{category}/{id}
|
path: /admin/file/purgetrash/{category}/{id}
|
||||||
controller: App\Controller\FileController::purgetrash
|
controller: App\Controller\FileController::purgetrash
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_file_delete:
|
app_admin_file_delete:
|
||||||
path: /admin/file/delete/{category}/{id}
|
path: /admin/file/delete/{category}/{id}
|
||||||
controller: App\Controller\FileController::delete
|
controller: App\Controller\FileController::delete
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_file_move:
|
app_admin_file_move:
|
||||||
path: /admin/file/move/{category}/{id}
|
path: /admin/file/move/{category}/{id}
|
||||||
controller: App\Controller\FileController::move
|
controller: App\Controller\FileController::move
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_file_view:
|
app_admin_file_view:
|
||||||
path: /admin/file/view/{category}/{id}
|
path: /admin/file/view/{category}/{id}
|
||||||
controller: App\Controller\FileController::view
|
controller: App\Controller\FileController::view
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_admin_file_show:
|
app_admin_file_show:
|
||||||
path: /admin/file/show/{category}/{id}
|
path: /admin/file/show/{category}/{id}
|
||||||
controller: App\Controller\FileController::show
|
controller: App\Controller\FileController::show
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_admin_file_download:
|
app_admin_file_download:
|
||||||
path: /admin/file/download/{category}/{id}
|
path: /admin/file/download/{category}/{id}
|
||||||
controller: App\Controller\FileController::download
|
controller: App\Controller\FileController::download
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
#-- Access all
|
#-- Access all
|
||||||
app_all_file_list:
|
app_all_file_list:
|
||||||
path: /file/list/{category}/{id}
|
path: /file/list/{category}/{id}
|
||||||
controller: App\Controller\FileController::list
|
controller: App\Controller\FileController::list
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_file_upload:
|
app_all_file_upload:
|
||||||
path: /all/file/upload/{category}/{id}/{type}
|
path: /all/file/upload/{category}/{id}/{type}
|
||||||
controller: App\Controller\FileController::upload
|
controller: App\Controller\FileController::upload
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_file_folder:
|
app_all_file_folder:
|
||||||
path: /all/file/folder/{category}/{id}
|
path: /all/file/folder/{category}/{id}
|
||||||
controller: App\Controller\FileController::folder
|
controller: App\Controller\FileController::folder
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_file_rename:
|
app_all_file_rename:
|
||||||
path: /all/file/rename/{category}/{id}
|
path: /all/file/rename/{category}/{id}
|
||||||
controller: App\Controller\FileController::rename
|
controller: App\Controller\FileController::rename
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_file_trash:
|
app_all_file_trash:
|
||||||
path: /all/file/trash/{category}/{id}
|
path: /all/file/trash/{category}/{id}
|
||||||
controller: App\Controller\FileController::trash
|
controller: App\Controller\FileController::trash
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_file_restaure:
|
app_all_file_restaure:
|
||||||
path: /all/file/restaure/{category}/{id}
|
path: /all/file/restaure/{category}/{id}
|
||||||
controller: App\Controller\FileController::restaure
|
controller: App\Controller\FileController::restaure
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_file_purgetrash:
|
app_all_file_purgetrash:
|
||||||
path: /all/file/purgetrash/{category}/{id}
|
path: /all/file/purgetrash/{category}/{id}
|
||||||
controller: App\Controller\FileController::purgetrash
|
controller: App\Controller\FileController::purgetrash
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_file_delete:
|
app_all_file_delete:
|
||||||
path: /all/file/delete/{category}/{id}
|
path: /all/file/delete/{category}/{id}
|
||||||
controller: App\Controller\FileController::delete
|
controller: App\Controller\FileController::delete
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_file_move:
|
app_all_file_move:
|
||||||
path: /all/file/move/{category}/{id}
|
path: /all/file/move/{category}/{id}
|
||||||
controller: App\Controller\FileController::move
|
controller: App\Controller\FileController::move
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_file_view:
|
app_all_file_view:
|
||||||
path: /file/view/{category}/{id}
|
path: /file/view/{category}/{id}
|
||||||
controller: App\Controller\FileController::view
|
controller: App\Controller\FileController::view
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_file_show:
|
app_all_file_show:
|
||||||
path: /file/show/{category}/{id}
|
path: /file/show/{category}/{id}
|
||||||
controller: App\Controller\FileController::show
|
controller: App\Controller\FileController::show
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_file_download:
|
app_all_file_download:
|
||||||
path: /file/download/{category}/{id}
|
path: /file/download/{category}/{id}
|
||||||
controller: App\Controller\FileController::download
|
controller: App\Controller\FileController::download
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#== PAGEWIDGETSLIDE ================================================================================================================================================
|
#== PAGEWIDGETSLIDE ================================================================================================================================================
|
||||||
|
|
||||||
#-- Access admin
|
#-- Access admin
|
||||||
app_admin_pagewidgetslide_upload:
|
app_admin_pagewidgetslide_upload:
|
||||||
path: /admin/pagewidgetslide/upload/{idwidget}
|
path: /admin/pagewidgetslide/upload/{idwidget}
|
||||||
controller: App\Controller\PagewidgetslideController::upload
|
controller: App\Controller\PagewidgetslideController::upload
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidgetslide_list:
|
app_admin_pagewidgetslide_list:
|
||||||
path: /admin/pagewidgetslide/{idwidget}
|
path: /admin/pagewidgetslide/{idwidget}
|
||||||
controller: App\Controller\PagewidgetslideController::list
|
controller: App\Controller\PagewidgetslideController::list
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidgetslide_submit:
|
app_admin_pagewidgetslide_submit:
|
||||||
path: /config/pagewidgetslide/submit/{idwidget}
|
path: /config/pagewidgetslide/submit/{idwidget}
|
||||||
controller: App\Controller\PagewidgetslideController::submit
|
controller: App\Controller\PagewidgetslideController::submit
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidgetslide_update:
|
app_admin_pagewidgetslide_update:
|
||||||
path: /admin/pagewidgetslide/update/{idwidget}/{id}
|
path: /admin/pagewidgetslide/update/{idwidget}/{id}
|
||||||
controller: App\Controller\PagewidgetslideController::update
|
controller: App\Controller\PagewidgetslideController::update
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidgetslide_delete:
|
app_admin_pagewidgetslide_delete:
|
||||||
path: /admin/pagewidgetslide/delete/{idwidget}/{id}
|
path: /admin/pagewidgetslide/delete/{idwidget}/{id}
|
||||||
controller: App\Controller\PagewidgetslideController::delete
|
controller: App\Controller\PagewidgetslideController::delete
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
#-- Access all
|
#-- Access all
|
||||||
app_all_pagewidgetslide_upload:
|
app_all_pagewidgetslide_upload:
|
||||||
path: /all/pagewidgetslide/upload/{idwidget}
|
path: /all/pagewidgetslide/upload/{idwidget}
|
||||||
controller: App\Controller\PagewidgetslideController::upload
|
controller: App\Controller\PagewidgetslideController::upload
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidgetslide_list:
|
app_all_pagewidgetslide_list:
|
||||||
path: /all/pagewidgetslide/{idwidget}
|
path: /all/pagewidgetslide/{idwidget}
|
||||||
controller: App\Controller\PagewidgetslideController::list
|
controller: App\Controller\PagewidgetslideController::list
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidgetslide_submit:
|
app_all_pagewidgetslide_submit:
|
||||||
path: /all/pagewidgetslide/submit/{idwidget}
|
path: /all/pagewidgetslide/submit/{idwidget}
|
||||||
controller: App\Controller\PagewidgetslideController::submit
|
controller: App\Controller\PagewidgetslideController::submit
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidgetslide_update:
|
app_all_pagewidgetslide_update:
|
||||||
path: /all/pagewidgetslide/update/{idwidget}/{id}
|
path: /all/pagewidgetslide/update/{idwidget}/{id}
|
||||||
controller: App\Controller\PagewidgetslideController::update
|
controller: App\Controller\PagewidgetslideController::update
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidgetslide_delete:
|
app_all_pagewidgetslide_delete:
|
||||||
path: /all/pagewidgetslide/delete/{idwidget}/{id}
|
path: /all/pagewidgetslide/delete/{idwidget}/{id}
|
||||||
controller: App\Controller\PagewidgetslideController::delete
|
controller: App\Controller\PagewidgetslideController::delete
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#== PAGE TEMPLATE ========================================================================================================================================
|
#== PAGE TEMPLATE ========================================================================================================================================
|
||||||
|
|
||||||
#-- Access admin
|
#-- Access admin
|
||||||
app_admin_page_template:
|
app_admin_page_template:
|
||||||
path: /admin/template
|
path: /admin/template
|
||||||
controller: App\Controller\PagetemplateController::list
|
controller: App\Controller\PagetemplateController::list
|
||||||
defaults: { access: admin, usage: template }
|
defaults: { access: admin, usage: template }
|
||||||
|
|
||||||
app_admin_page_template_tablelist:
|
app_admin_page_template_tablelist:
|
||||||
path: /admin/template/tablelist
|
path: /admin/template/tablelist
|
||||||
controller: App\Controller\PagetemplateController::tablelist
|
controller: App\Controller\PagetemplateController::tablelist
|
||||||
defaults: { access: admin, usage: template }
|
defaults: { access: admin, usage: template }
|
||||||
|
|
||||||
app_admin_template_submit:
|
app_admin_template_submit:
|
||||||
path: /admin/template/submit
|
path: /admin/template/submit
|
||||||
controller: App\Controller\PagetemplateController::submit
|
controller: App\Controller\PagetemplateController::submit
|
||||||
defaults: { access: admin, usage: template }
|
defaults: { access: admin, usage: template }
|
||||||
|
|
||||||
app_admin_page_template_update:
|
app_admin_page_template_update:
|
||||||
path: /admin/template/update/{id}
|
path: /admin/template/update/{id}
|
||||||
controller: App\Controller\PagetemplateController::update
|
controller: App\Controller\PagetemplateController::update
|
||||||
defaults: { access: admin, usage: template }
|
defaults: { access: admin, usage: template }
|
||||||
|
|
||||||
app_admin_page_template_delete:
|
app_admin_page_template_delete:
|
||||||
path: /admin/template/delete/{id}
|
path: /admin/template/delete/{id}
|
||||||
controller: App\Controller\PagetemplateController::delete
|
controller: App\Controller\PagetemplateController::delete
|
||||||
defaults: { access: admin, usage: template }
|
defaults: { access: admin, usage: template }
|
||||||
|
|
||||||
app_admin_page_template_view:
|
app_admin_page_template_view:
|
||||||
path: /admin/template/view/{id}
|
path: /admin/template/view/{id}
|
||||||
controller: App\Controller\PagetemplateController::view
|
controller: App\Controller\PagetemplateController::view
|
||||||
defaults: { access: admin, usage: template }
|
defaults: { access: admin, usage: template }
|
||||||
|
|
||||||
#-- Access all
|
#-- Access all
|
||||||
app_all_page_template_selectlist:
|
app_all_page_template_selectlist:
|
||||||
path: /all/template/selectlist
|
path: /all/template/selectlist
|
||||||
controller: App\Controller\PagetemplateController::selectlist
|
controller: App\Controller\PagetemplateController::selectlist
|
||||||
defaults: { access: admin, usage: template }
|
defaults: { access: admin, usage: template }
|
||||||
|
|
||||||
|
|
||||||
#== PAGE =================================================================================================================================================
|
#== PAGE =================================================================================================================================================
|
||||||
|
|
||||||
#-- Access admin
|
#-- Access admin
|
||||||
app_admin_page_portal:
|
app_admin_page_portal:
|
||||||
path: /admin/page/
|
path: /admin/page/
|
||||||
controller: App\Controller\PageController::list
|
controller: App\Controller\PageController::list
|
||||||
defaults: { access: admin, usage: portal }
|
defaults: { access: admin, usage: portal }
|
||||||
|
|
||||||
app_admin_page_portal_tablelist:
|
app_admin_page_portal_tablelist:
|
||||||
path: /admin/page/tablelist
|
path: /admin/page/tablelist
|
||||||
controller: App\Controller\PageController::tablelist
|
controller: App\Controller\PageController::tablelist
|
||||||
defaults: { access: admin, usage: portal }
|
defaults: { access: admin, usage: portal }
|
||||||
|
|
||||||
app_admin_page_portal_submit:
|
app_admin_page_portal_submit:
|
||||||
path: /admin/page/submit
|
path: /admin/page/submit
|
||||||
controller: App\Controller\PageController::submit
|
controller: App\Controller\PageController::submit
|
||||||
defaults: { access: admin, usage: portal }
|
defaults: { access: admin, usage: portal }
|
||||||
|
|
||||||
app_admin_page_portal_update:
|
app_admin_page_portal_update:
|
||||||
path: /admin/page/update/{id}
|
path: /admin/page/update/{id}
|
||||||
controller: App\Controller\PageController::update
|
controller: App\Controller\PageController::update
|
||||||
defaults: { access: admin, usage: portal }
|
defaults: { access: admin, usage: portal }
|
||||||
|
|
||||||
app_admin_page_portal_delete:
|
app_admin_page_portal_delete:
|
||||||
path: /admin/page/delete/{id}
|
path: /admin/page/delete/{id}
|
||||||
controller: App\Controller\PageController::delete
|
controller: App\Controller\PageController::delete
|
||||||
defaults: { access: admin, usage: portal }
|
defaults: { access: admin, usage: portal }
|
||||||
|
|
||||||
app_admin_page_portal_view:
|
app_admin_page_portal_view:
|
||||||
path: /admin/page/view/{id}
|
path: /admin/page/view/{id}
|
||||||
controller: App\Controller\PageController::view
|
controller: App\Controller\PageController::view
|
||||||
defaults: { access: admin, usage: portal }
|
defaults: { access: admin, usage: portal }
|
||||||
|
|
||||||
app_admin_page_portal_order:
|
app_admin_page_portal_order:
|
||||||
path: /admin/page/order
|
path: /admin/page/order
|
||||||
controller: App\Controller\PageController::order
|
controller: App\Controller\PageController::order
|
||||||
defaults: { access: admin, usage: portal }
|
defaults: { access: admin, usage: portal }
|
||||||
|
|
||||||
#-- Access all
|
#-- Access all
|
||||||
# usage=user
|
# usage=user
|
||||||
app_all_page_user_submit:
|
app_all_page_user_submit:
|
||||||
path: /all/page/user/submit
|
path: /all/page/user/submit
|
||||||
controller: App\Controller\PageController::submit
|
controller: App\Controller\PageController::submit
|
||||||
defaults: { access: all, usage: user }
|
defaults: { access: all, usage: user }
|
||||||
|
|
||||||
app_all_page_user_update:
|
app_all_page_user_update:
|
||||||
path: /all/page/user/update/{id}
|
path: /all/page/user/update/{id}
|
||||||
controller: App\Controller\PageController::update
|
controller: App\Controller\PageController::update
|
||||||
defaults: { access: all, usage: user }
|
defaults: { access: all, usage: user }
|
||||||
|
|
||||||
app_all_page_user_delete:
|
app_all_page_user_delete:
|
||||||
path: /all/page/user/delete/{id}
|
path: /all/page/user/delete/{id}
|
||||||
controller: App\Controller\PageController::delete
|
controller: App\Controller\PageController::delete
|
||||||
defaults: { access: all, usage: user }
|
defaults: { access: all, usage: user }
|
||||||
|
|
||||||
app_all_page_user_order:
|
app_all_page_user_order:
|
||||||
path: /all/page/user/order
|
path: /all/page/user/order
|
||||||
controller: App\Controller\PageController::order
|
controller: App\Controller\PageController::order
|
||||||
defaults: { access: all, usage: user }
|
defaults: { access: all, usage: user }
|
||||||
|
|
||||||
# usage=group
|
# usage=group
|
||||||
app_all_page_group_submit:
|
app_all_page_group_submit:
|
||||||
path: /all/page/group/submit
|
path: /all/page/group/submit
|
||||||
controller: App\Controller\PageController::submit
|
controller: App\Controller\PageController::submit
|
||||||
defaults: { access: all, usage: group }
|
defaults: { access: all, usage: group }
|
||||||
|
|
||||||
app_all_page_group_update:
|
app_all_page_group_update:
|
||||||
path: /all/page/group/update/{id}
|
path: /all/page/group/update/{id}
|
||||||
controller: App\Controller\PageController::update
|
controller: App\Controller\PageController::update
|
||||||
defaults: { access: all, usage: group }
|
defaults: { access: all, usage: group }
|
||||||
|
|
||||||
app_all_page_group_delete:
|
app_all_page_group_delete:
|
||||||
path: /all/page/group/delete/{id}
|
path: /all/page/group/delete/{id}
|
||||||
controller: App\Controller\PageController::delete
|
controller: App\Controller\PageController::delete
|
||||||
defaults: { access: all, usage: group }
|
defaults: { access: all, usage: group }
|
||||||
|
|
||||||
app_all_page_group_order:
|
app_all_page_group_order:
|
||||||
path: /all/page/group/order
|
path: /all/page/group/order
|
||||||
controller: App\Controller\PageController::order
|
controller: App\Controller\PageController::order
|
||||||
defaults: { access: all, usage: group }
|
defaults: { access: all, usage: group }
|
||||||
|
|
||||||
#-- Access visitor
|
#-- Access visitor
|
||||||
# usage=portal
|
# usage=portal
|
||||||
app_all_page_portal_view:
|
app_all_page_portal_view:
|
||||||
path: /page/portal/view/{id}
|
path: /page/portal/view/{id}
|
||||||
controller: App\Controller\PageController::view
|
controller: App\Controller\PageController::view
|
||||||
defaults: { access: all, usage: portal }
|
defaults: { access: all, usage: portal }
|
||||||
|
|
||||||
# usage=user
|
# usage=user
|
||||||
app_all_page_user_view:
|
app_all_page_user_view:
|
||||||
path: /page/user/view/{id}
|
path: /page/user/view/{id}
|
||||||
controller: App\Controller\PageController::view
|
controller: App\Controller\PageController::view
|
||||||
defaults: { access: all, usage: user }
|
defaults: { access: all, usage: user }
|
||||||
|
|
||||||
# usage=group
|
# usage=group
|
||||||
app_all_page_group_view:
|
app_all_page_group_view:
|
||||||
path: /page/group/view/{id}
|
path: /page/group/view/{id}
|
||||||
controller: App\Controller\PageController::view
|
controller: App\Controller\PageController::view
|
||||||
defaults: { access: all, usage: group }
|
defaults: { access: all, usage: group }
|
||||||
|
|
||||||
#-- Page spécifique
|
#-- Page spécifique
|
||||||
app_all_page_application:
|
app_all_page_application:
|
||||||
path: /page/application
|
path: /page/application
|
||||||
controller: App\Controller\PageController::application
|
controller: App\Controller\PageController::application
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#== PAGE WIDGET ==========================================================================================================================================
|
#== PAGE WIDGET ==========================================================================================================================================
|
||||||
|
|
||||||
#-- Access admin
|
#-- Access admin
|
||||||
app_admin_pagewidget_widget_sumbit:
|
app_admin_pagewidget_widget_sumbit:
|
||||||
path: /admin/pagewidget/submit/{idpage}/{idwidgettype}
|
path: /admin/pagewidget/submit/{idpage}/{idwidgettype}
|
||||||
controller: App\Controller\PagewidgetController::submit
|
controller: App\Controller\PagewidgetController::submit
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidget_widget_update:
|
app_admin_pagewidget_widget_update:
|
||||||
path: /admin/pagewidget/update/{idpage}/{idwidget}
|
path: /admin/pagewidget/update/{idpage}/{idwidget}
|
||||||
controller: App\Controller\PagewidgetController::update
|
controller: App\Controller\PagewidgetController::update
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidget_delete:
|
app_admin_pagewidget_delete:
|
||||||
path: /admin/pagewidget/delete/{idwidget}
|
path: /admin/pagewidget/delete/{idwidget}
|
||||||
controller: App\Controller\PagewidgetController::delete
|
controller: App\Controller\PagewidgetController::delete
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidget_order:
|
app_admin_pagewidget_order:
|
||||||
path: /admin/pagewidget/order
|
path: /admin/pagewidget/order
|
||||||
controller: App\Controller\PagewidgetController::order
|
controller: App\Controller\PagewidgetController::order
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidget_ckeditor:
|
app_admin_pagewidget_ckeditor:
|
||||||
path: /admin/pagewidget/ckeditor/{idwidget}
|
path: /admin/pagewidget/ckeditor/{idwidget}
|
||||||
controller: App\Controller\PagewidgetController::ckeditor
|
controller: App\Controller\PagewidgetController::ckeditor
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidget_view_url:
|
app_admin_pagewidget_view_url:
|
||||||
path: /admin/pagewidget/view/url/{id}
|
path: /admin/pagewidget/view/url/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewurl
|
controller: App\Controller\PagewidgetController::viewurl
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidget_view_urlfixe:
|
app_admin_pagewidget_view_urlfixe:
|
||||||
path: /admin/pagewidget/view/urlfixe/{id}
|
path: /admin/pagewidget/view/urlfixe/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewurlfixe
|
controller: App\Controller\PagewidgetController::viewurlfixe
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidget_view_item:
|
app_admin_pagewidget_view_item:
|
||||||
path: /admin/pagewidget/view/item/{id}
|
path: /admin/pagewidget/view/item/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewitem
|
controller: App\Controller\PagewidgetController::viewitem
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidget_view_itemessential:
|
app_admin_pagewidget_view_itemessential:
|
||||||
path: /admin/pagewidget/view/itemessential/{id}
|
path: /admin/pagewidget/view/itemessential/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewitemessential
|
controller: App\Controller\PagewidgetController::viewitemessential
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidget_view_alert:
|
app_admin_pagewidget_view_alert:
|
||||||
path: /admin/pagewidget/view/alert/{id}
|
path: /admin/pagewidget/view/alert/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewalert
|
controller: App\Controller\PagewidgetController::viewalert
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidget_view_flux:
|
app_admin_pagewidget_view_flux:
|
||||||
path: /admin/pagewidget/view/flux/{id}
|
path: /admin/pagewidget/view/flux/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewflux
|
controller: App\Controller\PagewidgetController::viewflux
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidget_view_rss:
|
app_admin_pagewidget_view_rss:
|
||||||
path: /admin/pagewidget/view/rss/{id}
|
path: /admin/pagewidget/view/rss/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewrss
|
controller: App\Controller\PagewidgetController::viewrss
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidget_view_bookmark:
|
app_admin_pagewidget_view_bookmark:
|
||||||
path: /admin/pagewidget/view/bookmark/{id}
|
path: /admin/pagewidget/view/bookmark/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewbookmark
|
controller: App\Controller\PagewidgetController::viewbookmark
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidget_view_link:
|
app_admin_pagewidget_view_link:
|
||||||
path: /admin/pagewidget/view/link/{id}
|
path: /admin/pagewidget/view/link/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewlink
|
controller: App\Controller\PagewidgetController::viewlink
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidget_view_editor:
|
app_admin_pagewidget_view_editor:
|
||||||
path: /admin/pagewidget/view/editor/{id}
|
path: /admin/pagewidget/view/editor/{id}
|
||||||
controller: App\Controller\PagewidgetController::vieweditor
|
controller: App\Controller\PagewidgetController::vieweditor
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidget_view_slide:
|
app_admin_pagewidget_view_slide:
|
||||||
path: /admin/pagewidget/view/pagewidgetslide/{id}
|
path: /admin/pagewidget/view/pagewidgetslide/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewslide
|
controller: App\Controller\PagewidgetController::viewslide
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidget_view_file:
|
app_admin_pagewidget_view_file:
|
||||||
path: /admin/pagewidget/view/file/{id}
|
path: /admin/pagewidget/view/file/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewfile
|
controller: App\Controller\PagewidgetController::viewfile
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidget_view_galery:
|
app_admin_pagewidget_view_galery:
|
||||||
path: /admin/pagewidget/view/galery/{id}
|
path: /admin/pagewidget/view/galery/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewgalery
|
controller: App\Controller\PagewidgetController::viewgalery
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidget_view_calendar:
|
app_admin_pagewidget_view_calendar:
|
||||||
path: /admin/pagewidget/view/calendar/{id}
|
path: /admin/pagewidget/view/calendar/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewcalendar
|
controller: App\Controller\PagewidgetController::viewcalendar
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidget_view_blog:
|
app_admin_pagewidget_view_blog:
|
||||||
path: /admin/pagewidget/view/blog/{id}
|
path: /admin/pagewidget/view/blog/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewblog
|
controller: App\Controller\PagewidgetController::viewblog
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidget_view_project:
|
app_admin_pagewidget_view_project:
|
||||||
path: /admin/pagewidget/view/project/{id}
|
path: /admin/pagewidget/view/project/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewproject
|
controller: App\Controller\PagewidgetController::viewproject
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidget_view_info:
|
app_admin_pagewidget_view_info:
|
||||||
path: /admin/pagewidget/view/info/{id}
|
path: /admin/pagewidget/view/info/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewinfo
|
controller: App\Controller\PagewidgetController::viewinfo
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidget_view_chat:
|
app_admin_pagewidget_view_chat:
|
||||||
path: /admin/pagewidget/view/chat/{id}
|
path: /admin/pagewidget/view/chat/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewchat
|
controller: App\Controller\PagewidgetController::viewchat
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidget_view_group:
|
app_admin_pagewidget_view_group:
|
||||||
path: /admin/pagewidget/view/group/{id}
|
path: /admin/pagewidget/view/group/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewgroup
|
controller: App\Controller\PagewidgetController::viewgroup
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
app_admin_pagewidget_view_groupmessage:
|
app_admin_pagewidget_view_groupmessage:
|
||||||
path: /admin/pagewidget/view/groupmessage/{id}
|
path: /admin/pagewidget/view/groupmessage/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewgroupmessage
|
controller: App\Controller\PagewidgetController::viewgroupmessage
|
||||||
defaults: { access: admin }
|
defaults: { access: admin }
|
||||||
|
|
||||||
#-- Access all
|
#-- Access all
|
||||||
app_all_pagewidget_widget_sumbit:
|
app_all_pagewidget_widget_sumbit:
|
||||||
path: /all/pagewidget/submit/{idpage}/{idwidgettype}
|
path: /all/pagewidget/submit/{idpage}/{idwidgettype}
|
||||||
controller: App\Controller\PagewidgetController::submit
|
controller: App\Controller\PagewidgetController::submit
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidget_widget_update:
|
app_all_pagewidget_widget_update:
|
||||||
path: /all/pagewidget/update/{idpage}/{idwidget}
|
path: /all/pagewidget/update/{idpage}/{idwidget}
|
||||||
controller: App\Controller\PagewidgetController::update
|
controller: App\Controller\PagewidgetController::update
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidget_delete:
|
app_all_pagewidget_delete:
|
||||||
path: /all/pagewidget/delete/{idwidget}
|
path: /all/pagewidget/delete/{idwidget}
|
||||||
controller: App\Controller\PagewidgetController::delete
|
controller: App\Controller\PagewidgetController::delete
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidget_order:
|
app_all_pagewidget_order:
|
||||||
path: /all/pagewidget/order
|
path: /all/pagewidget/order
|
||||||
controller: App\Controller\PagewidgetController::order
|
controller: App\Controller\PagewidgetController::order
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidget_ckeditor:
|
app_all_pagewidget_ckeditor:
|
||||||
path: /all/pagewidget/ckeditor/{idwidget}
|
path: /all/pagewidget/ckeditor/{idwidget}
|
||||||
controller: App\Controller\PagewidgetController::ckeditor
|
controller: App\Controller\PagewidgetController::ckeditor
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidget_view_url:
|
app_all_pagewidget_view_url:
|
||||||
path: /pagewidget/view/url/{id}
|
path: /pagewidget/view/url/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewurl
|
controller: App\Controller\PagewidgetController::viewurl
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidget_view_urlfixe:
|
app_all_pagewidget_view_urlfixe:
|
||||||
path: /pagewidget/view/urlfixe/{id}
|
path: /pagewidget/view/urlfixe/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewurlfixe
|
controller: App\Controller\PagewidgetController::viewurlfixe
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidget_view_item:
|
app_all_pagewidget_view_item:
|
||||||
path: /pagewidget/view/item/{id}
|
path: /pagewidget/view/item/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewitem
|
controller: App\Controller\PagewidgetController::viewitem
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidget_view_itemessential:
|
app_all_pagewidget_view_itemessential:
|
||||||
path: /pagewidget/view/itemessential/{id}
|
path: /pagewidget/view/itemessential/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewitemessential
|
controller: App\Controller\PagewidgetController::viewitemessential
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidget_view_alert:
|
app_all_pagewidget_view_alert:
|
||||||
path: /pagewidget/view/alert/{id}
|
path: /pagewidget/view/alert/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewalert
|
controller: App\Controller\PagewidgetController::viewalert
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidget_view_flux:
|
app_all_pagewidget_view_flux:
|
||||||
path: /pagewidget/view/flux/{id}
|
path: /pagewidget/view/flux/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewflux
|
controller: App\Controller\PagewidgetController::viewflux
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidget_view_rss:
|
app_all_pagewidget_view_rss:
|
||||||
path: /pagewidget/view/rss/{id}
|
path: /pagewidget/view/rss/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewrss
|
controller: App\Controller\PagewidgetController::viewrss
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidget_view_bookmark:
|
app_all_pagewidget_view_bookmark:
|
||||||
path: /pagewidget/view/bookmark/{id}
|
path: /pagewidget/view/bookmark/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewbookmark
|
controller: App\Controller\PagewidgetController::viewbookmark
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidget_view_link:
|
app_all_pagewidget_view_link:
|
||||||
path: /pagewidget/view/link/{id}
|
path: /pagewidget/view/link/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewlink
|
controller: App\Controller\PagewidgetController::viewlink
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidget_view_editor:
|
app_all_pagewidget_view_editor:
|
||||||
path: /pagewidget/view/editor/{id}
|
path: /pagewidget/view/editor/{id}
|
||||||
controller: App\Controller\PagewidgetController::vieweditor
|
controller: App\Controller\PagewidgetController::vieweditor
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidget_view_slide:
|
app_all_pagewidget_view_slide:
|
||||||
path: /pagewidget/view/pagewidgetslide/{id}
|
path: /pagewidget/view/pagewidgetslide/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewslide
|
controller: App\Controller\PagewidgetController::viewslide
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidget_view_file:
|
app_all_pagewidget_view_file:
|
||||||
path: /pagewidget/view/file/{id}
|
path: /pagewidget/view/file/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewfile
|
controller: App\Controller\PagewidgetController::viewfile
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidget_view_galery:
|
app_all_pagewidget_view_galery:
|
||||||
path: /pagewidget/view/galery/{id}
|
path: /pagewidget/view/galery/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewgalery
|
controller: App\Controller\PagewidgetController::viewgalery
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidget_view_calendar:
|
app_all_pagewidget_view_calendar:
|
||||||
path: /pagewidget/view/calendar/{id}
|
path: /pagewidget/view/calendar/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewcalendar
|
controller: App\Controller\PagewidgetController::viewcalendar
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidget_view_blog:
|
app_all_pagewidget_view_blog:
|
||||||
path: /pagewidget/view/blog/{id}
|
path: /pagewidget/view/blog/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewblog
|
controller: App\Controller\PagewidgetController::viewblog
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidget_view_project:
|
app_all_pagewidget_view_project:
|
||||||
path: /pagewidget/view/project/{id}
|
path: /pagewidget/view/project/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewproject
|
controller: App\Controller\PagewidgetController::viewproject
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidget_view_info:
|
app_all_pagewidget_view_info:
|
||||||
path: /pagewidget/view/info/{id}
|
path: /pagewidget/view/info/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewinfo
|
controller: App\Controller\PagewidgetController::viewinfo
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidget_view_chat:
|
app_all_pagewidget_view_chat:
|
||||||
path: /pagewidget/view/chat/{id}
|
path: /pagewidget/view/chat/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewchat
|
controller: App\Controller\PagewidgetController::viewchat
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidget_view_group:
|
app_all_pagewidget_view_group:
|
||||||
path: /pagewidget/view/group/{id}
|
path: /pagewidget/view/group/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewgroup
|
controller: App\Controller\PagewidgetController::viewgroup
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
app_all_pagewidget_view_groupmessage:
|
app_all_pagewidget_view_groupmessage:
|
||||||
path: /pagewidget/view/groupmessage/{id}
|
path: /pagewidget/view/groupmessage/{id}
|
||||||
controller: App\Controller\PagewidgetController::viewgroupmessage
|
controller: App\Controller\PagewidgetController::viewgroupmessage
|
||||||
defaults: { access: all }
|
defaults: { access: all }
|
||||||
|
|
||||||
|
#== DOCUMENTCATEGORY ========================================================================================================
|
||||||
|
#-- Access admin
|
||||||
|
app_admin_documentcategory:
|
||||||
|
path: /admin/documentcategory
|
||||||
|
controller: App\Controller\DocumentcategoryController::list
|
||||||
|
defaults: { access: admin }
|
||||||
|
|
||||||
|
app_admin_documentcategory_submit:
|
||||||
|
path: /admin/documentcategory/submit
|
||||||
|
controller: App\Controller\DocumentcategoryController::submit
|
||||||
|
defaults: { access: admin }
|
||||||
|
|
||||||
|
app_admin_documentcategory_update:
|
||||||
|
path: /admin/documentcategory/update/{id}
|
||||||
|
controller: App\Controller\DocumentcategoryController::update
|
||||||
|
defaults: { access: admin }
|
||||||
|
|
||||||
|
app_admin_documentcategory_delete:
|
||||||
|
path: /admin/documentcategory/delete/{id}
|
||||||
|
controller: App\Controller\DocumentcategoryController::delete
|
||||||
|
defaults: { access: admin }
|
||||||
|
|
||||||
|
app_admin_documentcategory_render:
|
||||||
|
path: /admin/documentcategory/render/{id}
|
||||||
|
controller: App\Controller\DocumentcategoryController::renderid
|
||||||
|
defaults: { access: admin }
|
||||||
|
|
||||||
|
app_admin_documentcategory_order:
|
||||||
|
path: /admin/documentcategory/order
|
||||||
|
controller: App\Controller\DocumentcategoryController::order
|
||||||
|
defaults: { access: admin }
|
||||||
|
|
|
@ -0,0 +1,159 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Controller;
|
||||||
|
|
||||||
|
use App\Entity\Documentcategory;
|
||||||
|
use App\Form\DocumentcategoryType;
|
||||||
|
use Doctrine\Persistence\ManagerRegistry;
|
||||||
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||||
|
use Symfony\Component\HttpFoundation\JsonResponse;
|
||||||
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
|
|
||||||
|
class DocumentcategoryController extends AbstractController
|
||||||
|
{
|
||||||
|
private $data = 'documentcategory';
|
||||||
|
private $entity = "App\Entity\Documentcategory";
|
||||||
|
private $twig = 'Documentcategory/';
|
||||||
|
private $route = 'app_admin_documentcategory';
|
||||||
|
|
||||||
|
public function list($access, ManagerRegistry $em): Response
|
||||||
|
{
|
||||||
|
$datas = $em->getRepository($this->entity)->findBy(['parent' => null], ['roworder' => 'ASC']);
|
||||||
|
|
||||||
|
return $this->render($this->twig.'list.html.twig', [
|
||||||
|
'useheader' => true,
|
||||||
|
'usemenu' => false,
|
||||||
|
'usesidebar' => true,
|
||||||
|
'access' => $access,
|
||||||
|
$this->data.'s' => $datas,
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function renderid($id, $access, ManagerRegistry $em): Response
|
||||||
|
{
|
||||||
|
$data = $em->getRepository($this->entity)->find($id);
|
||||||
|
|
||||||
|
return $this->render($this->twig.'render.html.twig', [
|
||||||
|
'access' => $access,
|
||||||
|
$this->data => $data,
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function submit($access, Request $request, ManagerRegistry $em): Response
|
||||||
|
{
|
||||||
|
// Initialisation de l'enregistrement
|
||||||
|
$data = new Documentcategory();
|
||||||
|
$data->setRoworder(0);
|
||||||
|
|
||||||
|
// Création du formulaire
|
||||||
|
$form = $this->createForm(DocumentcategoryType::class, $data, ['mode' => 'submit', 'access' => $access]);
|
||||||
|
|
||||||
|
// Récupération des data du formulaire
|
||||||
|
$form->handleRequest($request);
|
||||||
|
|
||||||
|
// Sur validation
|
||||||
|
if ($form->get('submit')->isClicked() && $form->isValid()) {
|
||||||
|
$data = $form->getData();
|
||||||
|
|
||||||
|
// Sauvegarde
|
||||||
|
$em->getManager()->persist($data);
|
||||||
|
$em->getManager()->flush();
|
||||||
|
|
||||||
|
// Retour à la liste
|
||||||
|
return $this->redirectToRoute(str_replace('_admin_', '_'.$access.'_', $this->route));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Affichage du formulaire
|
||||||
|
return $this->render($this->twig.'edit.html.twig', [
|
||||||
|
'useheader' => true,
|
||||||
|
'usemenu' => false,
|
||||||
|
'usesidebar' => true,
|
||||||
|
'access' => $access,
|
||||||
|
$this->data => $data,
|
||||||
|
'mode' => 'submit',
|
||||||
|
'form' => $form->createView(),
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function update($id, $access, Request $request, ManagerRegistry $em): Response
|
||||||
|
{
|
||||||
|
// Initialisation de l'enregistrement
|
||||||
|
$data = $em->getRepository($this->entity)->find($id);
|
||||||
|
if (!$data) {
|
||||||
|
throw $this->createNotFoundException('Unable to find entity.');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Création du formulaire
|
||||||
|
$form = $this->createForm(DocumentcategoryType::class, $data, ['mode' => 'update']);
|
||||||
|
|
||||||
|
// Récupération des data du formulaire
|
||||||
|
$form->handleRequest($request);
|
||||||
|
|
||||||
|
// Sur validation
|
||||||
|
if ($form->get('submit')->isClicked() && $form->isValid()) {
|
||||||
|
$data = $form->getData();
|
||||||
|
|
||||||
|
// Sauvegarde
|
||||||
|
$em->getManager()->flush();
|
||||||
|
|
||||||
|
// Retour à la liste
|
||||||
|
return $this->redirectToRoute(str_replace('_admin_', '_'.$access.'_', $this->route));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Affichage du formulaire
|
||||||
|
return $this->render($this->twig.'edit.html.twig', [
|
||||||
|
'useheader' => true,
|
||||||
|
'usemenu' => false,
|
||||||
|
'usesidebar' => true,
|
||||||
|
'access' => $access,
|
||||||
|
$this->data => $data,
|
||||||
|
'mode' => 'update',
|
||||||
|
'form' => $form->createView(),
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function delete($id, $access, Request $request, ManagerRegistry $em): Response
|
||||||
|
{
|
||||||
|
// Initialisation de l'enregistrement
|
||||||
|
$data = $em->getRepository($this->entity)->find($id);
|
||||||
|
if (!$data) {
|
||||||
|
throw $this->createNotFoundException('Unable to find entity.');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Tentative de suppression
|
||||||
|
try {
|
||||||
|
$em->getManager()->remove($data);
|
||||||
|
$em->getManager()->flush();
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
$request->getSession()->getFlashBag()->add('error', $e->getMessage());
|
||||||
|
|
||||||
|
return $this->redirectToRoute($this->route.'_update', ['id' => $id]);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this->redirectToRoute(str_replace('_admin_', '_'.$access.'_', $this->route));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function order($access, Request $request, ManagerRegistry $em): Response
|
||||||
|
{
|
||||||
|
$output = [];
|
||||||
|
$id = $request->request->get('id');
|
||||||
|
$parent = $request->request->get('parent');
|
||||||
|
$roworder = $request->request->get('roworder');
|
||||||
|
|
||||||
|
$data = $em->getRepository($this->entity)->find($id);
|
||||||
|
if (!$data) {
|
||||||
|
throw $this->createNotFoundException('Unable to find entity.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($parent) {
|
||||||
|
$parent = $em->getRepository($this->entity)->find($parent);
|
||||||
|
}
|
||||||
|
|
||||||
|
$data->setRoworder($roworder);
|
||||||
|
$data->setParent($parent);
|
||||||
|
$em->getManager()->flush();
|
||||||
|
|
||||||
|
return new JsonResponse($output);
|
||||||
|
}
|
||||||
|
}
|
|
@ -3,6 +3,8 @@
|
||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
use Doctrine\Common\Collections\ArrayCollection;
|
use Doctrine\Common\Collections\ArrayCollection;
|
||||||
|
use Doctrine\Common\Collections\Collection;
|
||||||
|
use Doctrine\DBAL\Types\Types;
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
|
use Doctrine\Common\Collections\ArrayCollection;
|
||||||
|
use Doctrine\Common\Collections\Collection;
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Types\Types;
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Types\Types;
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Types\Types;
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
use Symfony\Component\Validator\Constraints as Assert;
|
use Symfony\Component\Validator\Constraints as Assert;
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,224 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Entity;
|
||||||
|
|
||||||
|
use Doctrine\Common\Collections\ArrayCollection;
|
||||||
|
use Doctrine\Common\Collections\Collection;
|
||||||
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Document.
|
||||||
|
*
|
||||||
|
* @ORM\Entity
|
||||||
|
* @ORM\Table(name="document")
|
||||||
|
*/
|
||||||
|
class Document
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var int
|
||||||
|
*
|
||||||
|
* @ORM\Column(name="id", type="integer")
|
||||||
|
* @ORM\Id
|
||||||
|
* @ORM\GeneratedValue(strategy="AUTO")
|
||||||
|
*/
|
||||||
|
private $id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*
|
||||||
|
* @ORM\Column(name="label", type="string", length=100)
|
||||||
|
*/
|
||||||
|
private $label;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var int
|
||||||
|
*
|
||||||
|
* @ORM\Column(name="roworder", type="integer")
|
||||||
|
*/
|
||||||
|
private $roworder;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ORM\ManyToOne(targetEntity="User", inversedBy="documents")
|
||||||
|
* @ORM\JoinColumn(nullable=true, onDelete="SET NULL")
|
||||||
|
*/
|
||||||
|
private $user;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ORM\ManyToOne(targetEntity="Documentcategory", inversedBy="documents")
|
||||||
|
*/
|
||||||
|
private $documentcategory;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var ArrayCollection
|
||||||
|
* @var Document
|
||||||
|
*
|
||||||
|
* @ORM\OneToMany(targetEntity="Document", mappedBy="documentcategory", cascade={"persist"}, orphanRemoval=false)
|
||||||
|
*/
|
||||||
|
private $documents;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var ArrayCollection
|
||||||
|
* @var Documentelement
|
||||||
|
*
|
||||||
|
* @ORM\OneToMany(targetEntity="Documentelement", mappedBy="parent", cascade={"persist"}, orphanRemoval=true)
|
||||||
|
*/
|
||||||
|
private $parents;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var ArrayCollection
|
||||||
|
* @var Documentelement
|
||||||
|
*
|
||||||
|
* @ORM\OneToMany(targetEntity="Documentelement", mappedBy="child", cascade={"persist"}, orphanRemoval=true)
|
||||||
|
*/
|
||||||
|
private $childs;
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->documents = new ArrayCollection();
|
||||||
|
$this->parents = new ArrayCollection();
|
||||||
|
$this->childs = new ArrayCollection();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getId(): ?int
|
||||||
|
{
|
||||||
|
return $this->id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getLabel(): ?string
|
||||||
|
{
|
||||||
|
return $this->label;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setLabel(string $label): self
|
||||||
|
{
|
||||||
|
$this->label = $label;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getRoworder(): ?int
|
||||||
|
{
|
||||||
|
return $this->roworder;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setRoworder(int $roworder): self
|
||||||
|
{
|
||||||
|
$this->roworder = $roworder;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getUser(): ?User
|
||||||
|
{
|
||||||
|
return $this->user;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setUser(?User $user): self
|
||||||
|
{
|
||||||
|
$this->user = $user;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDocumentcategory(): ?Documentcategory
|
||||||
|
{
|
||||||
|
return $this->documentcategory;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setDocumentcategory(?Documentcategory $documentcategory): self
|
||||||
|
{
|
||||||
|
$this->documentcategory = $documentcategory;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return Collection<int, Document>
|
||||||
|
*/
|
||||||
|
public function getDocuments(): Collection
|
||||||
|
{
|
||||||
|
return $this->documents;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function addDocument(Document $document): self
|
||||||
|
{
|
||||||
|
if (!$this->documents->contains($document)) {
|
||||||
|
$this->documents->add($document);
|
||||||
|
$document->setDocumentcategory($this);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function removeDocument(Document $document): self
|
||||||
|
{
|
||||||
|
if ($this->documents->removeElement($document)) {
|
||||||
|
// set the owning side to null (unless already changed)
|
||||||
|
if ($document->getDocumentcategory() === $this) {
|
||||||
|
$document->setDocumentcategory(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return Collection<int, Documentelement>
|
||||||
|
*/
|
||||||
|
public function getParents(): Collection
|
||||||
|
{
|
||||||
|
return $this->parents;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function addParent(Documentelement $parent): self
|
||||||
|
{
|
||||||
|
if (!$this->parents->contains($parent)) {
|
||||||
|
$this->parents->add($parent);
|
||||||
|
$parent->setParent($this);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function removeParent(Documentelement $parent): self
|
||||||
|
{
|
||||||
|
if ($this->parents->removeElement($parent)) {
|
||||||
|
// set the owning side to null (unless already changed)
|
||||||
|
if ($parent->getParent() === $this) {
|
||||||
|
$parent->setParent(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return Collection<int, Documentelement>
|
||||||
|
*/
|
||||||
|
public function getChilds(): Collection
|
||||||
|
{
|
||||||
|
return $this->childs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function addChild(Documentelement $child): self
|
||||||
|
{
|
||||||
|
if (!$this->childs->contains($child)) {
|
||||||
|
$this->childs->add($child);
|
||||||
|
$child->setChild($this);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function removeChild(Documentelement $child): self
|
||||||
|
{
|
||||||
|
if ($this->childs->removeElement($child)) {
|
||||||
|
// set the owning side to null (unless already changed)
|
||||||
|
if ($child->getChild() === $this) {
|
||||||
|
$child->setChild(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,130 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Entity;
|
||||||
|
|
||||||
|
use Doctrine\Common\Collections\ArrayCollection;
|
||||||
|
use Doctrine\Common\Collections\Collection;
|
||||||
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Documentcategory
|
||||||
|
*
|
||||||
|
* @ORM\Entity
|
||||||
|
* @ORM\Table(name="documentcategory")
|
||||||
|
*/
|
||||||
|
class Documentcategory
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var int
|
||||||
|
*
|
||||||
|
* @ORM\Column(name="id", type="integer")
|
||||||
|
* @ORM\Id
|
||||||
|
* @ORM\GeneratedValue(strategy="AUTO")
|
||||||
|
*/
|
||||||
|
private $id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*
|
||||||
|
* @ORM\Column(name="label", type="string", length=100)
|
||||||
|
*/
|
||||||
|
private $label;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var int
|
||||||
|
*
|
||||||
|
* @ORM\Column(name="roworder", type="integer")
|
||||||
|
*/
|
||||||
|
private $roworder;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ORM\ManyToOne(targetEntity="Documentcategory", inversedBy="childs")
|
||||||
|
* @ORM\JoinColumn(nullable=true, onDelete="SET NULL")
|
||||||
|
*/
|
||||||
|
private $parent;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var ArrayCollection
|
||||||
|
* @var Documentcategory
|
||||||
|
*
|
||||||
|
* @ORM\OneToMany(targetEntity="Documentcategory", mappedBy="parent", cascade={"persist"}, orphanRemoval=false)
|
||||||
|
* @ORM\OrderBy({"roworder" = "ASC"})
|
||||||
|
*/
|
||||||
|
private $childs;
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->childs = new ArrayCollection();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getId(): ?int
|
||||||
|
{
|
||||||
|
return $this->id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getLabel(): ?string
|
||||||
|
{
|
||||||
|
return $this->label;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setLabel(string $label): self
|
||||||
|
{
|
||||||
|
$this->label = $label;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getRoworder(): ?int
|
||||||
|
{
|
||||||
|
return $this->roworder;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setRoworder(int $roworder): self
|
||||||
|
{
|
||||||
|
$this->roworder = $roworder;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getParent(): ?self
|
||||||
|
{
|
||||||
|
return $this->parent;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setParent(?self $parent): self
|
||||||
|
{
|
||||||
|
$this->parent = $parent;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return Collection<int, Documentcategory>
|
||||||
|
*/
|
||||||
|
public function getChilds(): Collection
|
||||||
|
{
|
||||||
|
return $this->childs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function addChild(Documentcategory $child): self
|
||||||
|
{
|
||||||
|
if (!$this->childs->contains($child)) {
|
||||||
|
$this->childs->add($child);
|
||||||
|
$child->setParent($this);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function removeChild(Documentcategory $child): self
|
||||||
|
{
|
||||||
|
if ($this->childs->removeElement($child)) {
|
||||||
|
// set the owning side to null (unless already changed)
|
||||||
|
if ($child->getParent() === $this) {
|
||||||
|
$child->setParent(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,100 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Entity;
|
||||||
|
|
||||||
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Documenttype.
|
||||||
|
*
|
||||||
|
* @ORM\Entity
|
||||||
|
* @ORM\Table(name="documentelement")
|
||||||
|
*/
|
||||||
|
class Documentelement
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var int
|
||||||
|
*
|
||||||
|
* @ORM\Column(name="id", type="integer")
|
||||||
|
* @ORM\Id
|
||||||
|
* @ORM\GeneratedValue(strategy="AUTO")
|
||||||
|
*/
|
||||||
|
private $id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*
|
||||||
|
* @ORM\Column(name="name", type="string", length=100)
|
||||||
|
*/
|
||||||
|
private $name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var int
|
||||||
|
*
|
||||||
|
* @ORM\Column(name="roworder", type="integer")
|
||||||
|
*/
|
||||||
|
private $roworder;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ORM\ManyToOne(targetEntity="Document", inversedBy="parents")
|
||||||
|
*/
|
||||||
|
private $parent;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ORM\ManyToOne(targetEntity="Document", inversedBy="childs")
|
||||||
|
*/
|
||||||
|
private $child;
|
||||||
|
|
||||||
|
public function getId(): ?int
|
||||||
|
{
|
||||||
|
return $this->id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getName(): ?string
|
||||||
|
{
|
||||||
|
return $this->name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setName(string $name): self
|
||||||
|
{
|
||||||
|
$this->name = $name;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getRoworder(): ?int
|
||||||
|
{
|
||||||
|
return $this->roworder;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setRoworder(int $roworder): self
|
||||||
|
{
|
||||||
|
$this->roworder = $roworder;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getParent(): ?Document
|
||||||
|
{
|
||||||
|
return $this->parent;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setParent(?Document $parent): self
|
||||||
|
{
|
||||||
|
$this->parent = $parent;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getChild(): ?Document
|
||||||
|
{
|
||||||
|
return $this->child;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setChild(?Document $child): self
|
||||||
|
{
|
||||||
|
$this->child = $child;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
}
|
|
@ -5,6 +5,7 @@ namespace App\Entity;
|
||||||
use App\Validator;
|
use App\Validator;
|
||||||
use Doctrine\Common\Collections\ArrayCollection;
|
use Doctrine\Common\Collections\ArrayCollection;
|
||||||
use Doctrine\Common\Collections\Collection;
|
use Doctrine\Common\Collections\Collection;
|
||||||
|
use Doctrine\DBAL\Types\Types;
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
use Doctrine\Common\Collections\ArrayCollection;
|
use Doctrine\Common\Collections\ArrayCollection;
|
||||||
|
use Doctrine\Common\Collections\Collection;
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
||||||
|
|
||||||
|
@ -84,14 +85,6 @@ class Icon
|
||||||
*/
|
*/
|
||||||
private $bookmarks;
|
private $bookmarks;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var ArrayCollection
|
|
||||||
* @var Group
|
|
||||||
*
|
|
||||||
* @ORM\OneToMany(targetEntity="Group", mappedBy="icon", cascade={"persist"}, orphanRemoval=false)
|
|
||||||
*/
|
|
||||||
private $groups;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*/
|
*/
|
||||||
|
@ -103,7 +96,6 @@ class Icon
|
||||||
$this->pagewidgets = new \Doctrine\Common\Collections\ArrayCollection();
|
$this->pagewidgets = new \Doctrine\Common\Collections\ArrayCollection();
|
||||||
$this->widgets = new \Doctrine\Common\Collections\ArrayCollection();
|
$this->widgets = new \Doctrine\Common\Collections\ArrayCollection();
|
||||||
$this->bookmarks = new \Doctrine\Common\Collections\ArrayCollection();
|
$this->bookmarks = new \Doctrine\Common\Collections\ArrayCollection();
|
||||||
$this->groups = new ArrayCollection();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -344,36 +336,6 @@ class Icon
|
||||||
return $this->bookmarks;
|
return $this->bookmarks;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Add group.
|
|
||||||
*
|
|
||||||
* @return Icon
|
|
||||||
*/
|
|
||||||
public function addGroup(Group $group)
|
|
||||||
{
|
|
||||||
$this->groups[] = $group;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Remove group.
|
|
||||||
*/
|
|
||||||
public function removeGroup(Group $group)
|
|
||||||
{
|
|
||||||
$this->groups->removeElement($group);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get groups.
|
|
||||||
*
|
|
||||||
* @return \Doctrine\Common\Collections\Collection
|
|
||||||
*/
|
|
||||||
public function getGroups()
|
|
||||||
{
|
|
||||||
return $this->groups;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set tags.
|
* Set tags.
|
||||||
*
|
*
|
||||||
|
|
|
@ -4,6 +4,7 @@ namespace App\Entity;
|
||||||
|
|
||||||
use Doctrine\Common\Collections\ArrayCollection;
|
use Doctrine\Common\Collections\ArrayCollection;
|
||||||
use Doctrine\Common\Collections\Collection;
|
use Doctrine\Common\Collections\Collection;
|
||||||
|
use Doctrine\DBAL\Types\Types;
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
use Doctrine\Common\Collections\ArrayCollection;
|
use Doctrine\Common\Collections\ArrayCollection;
|
||||||
|
use Doctrine\Common\Collections\Collection;
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ namespace App\Entity;
|
||||||
use App\Validator;
|
use App\Validator;
|
||||||
use Doctrine\Common\Collections\ArrayCollection;
|
use Doctrine\Common\Collections\ArrayCollection;
|
||||||
use Doctrine\Common\Collections\Collection;
|
use Doctrine\Common\Collections\Collection;
|
||||||
|
use Doctrine\DBAL\Types\Types;
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ namespace App\Entity;
|
||||||
use App\Validator;
|
use App\Validator;
|
||||||
use Doctrine\Common\Collections\ArrayCollection;
|
use Doctrine\Common\Collections\ArrayCollection;
|
||||||
use Doctrine\Common\Collections\Collection;
|
use Doctrine\Common\Collections\Collection;
|
||||||
|
use Doctrine\DBAL\Types\Types;
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ namespace App\Entity;
|
||||||
use App\Validator;
|
use App\Validator;
|
||||||
use Doctrine\Common\Collections\ArrayCollection;
|
use Doctrine\Common\Collections\ArrayCollection;
|
||||||
use Doctrine\Common\Collections\Collection;
|
use Doctrine\Common\Collections\Collection;
|
||||||
|
use Doctrine\DBAL\Types\Types;
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ namespace App\Entity;
|
||||||
use App\Validator;
|
use App\Validator;
|
||||||
use Doctrine\Common\Collections\ArrayCollection;
|
use Doctrine\Common\Collections\ArrayCollection;
|
||||||
use Doctrine\Common\Collections\Collection;
|
use Doctrine\Common\Collections\Collection;
|
||||||
|
use Doctrine\DBAL\Types\Types;
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
use Doctrine\Common\Collections\ArrayCollection;
|
use Doctrine\Common\Collections\ArrayCollection;
|
||||||
|
use Doctrine\Common\Collections\Collection;
|
||||||
|
use Doctrine\DBAL\Types\Types;
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
use Doctrine\Common\Collections\ArrayCollection;
|
use Doctrine\Common\Collections\ArrayCollection;
|
||||||
|
use Doctrine\Common\Collections\Collection;
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,6 +4,7 @@ namespace App\Entity;
|
||||||
|
|
||||||
use Doctrine\Common\Collections\ArrayCollection;
|
use Doctrine\Common\Collections\ArrayCollection;
|
||||||
use Doctrine\Common\Collections\Collection;
|
use Doctrine\Common\Collections\Collection;
|
||||||
|
use Doctrine\DBAL\Types\Types;
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
use App\Validator;
|
use App\Validator;
|
||||||
|
use Doctrine\DBAL\Types\Types;
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
||||||
use Symfony\Component\Security\Core\User\LegacyPasswordAuthenticatedUserInterface;
|
use Symfony\Component\Security\Core\User\LegacyPasswordAuthenticatedUserInterface;
|
||||||
|
|
|
@ -5,6 +5,7 @@ namespace App\Entity;
|
||||||
use App\Validator;
|
use App\Validator;
|
||||||
use Doctrine\Common\Collections\ArrayCollection;
|
use Doctrine\Common\Collections\ArrayCollection;
|
||||||
use Doctrine\Common\Collections\Collection;
|
use Doctrine\Common\Collections\Collection;
|
||||||
|
use Doctrine\DBAL\Types\Types;
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
||||||
use Symfony\Component\Security\Core\User\LegacyPasswordAuthenticatedUserInterface;
|
use Symfony\Component\Security\Core\User\LegacyPasswordAuthenticatedUserInterface;
|
||||||
|
@ -191,6 +192,30 @@ class User implements UserInterface, LegacyPasswordAuthenticatedUserInterface
|
||||||
*/
|
*/
|
||||||
private $modos;
|
private $modos;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var ArrayCollection
|
||||||
|
* @var UserGroup
|
||||||
|
*
|
||||||
|
* @ORM\OneToMany(targetEntity="Page", mappedBy="user", cascade={"persist"}, orphanRemoval=true)
|
||||||
|
*/
|
||||||
|
private $pages;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var ArrayCollection
|
||||||
|
* @var UserGroup
|
||||||
|
*
|
||||||
|
* @ORM\OneToMany(targetEntity="Icon", mappedBy="user", cascade={"persist"}, orphanRemoval=true)
|
||||||
|
*/
|
||||||
|
private $icons;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var ArrayCollection
|
||||||
|
* @var UserGroup
|
||||||
|
*
|
||||||
|
* @ORM\OneToMany(targetEntity="Bookmark", mappedBy="user", cascade={"persist"}, orphanRemoval=true)
|
||||||
|
*/
|
||||||
|
private $bookmarks;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\ManyToMany(targetEntity="App\Entity\Alert", mappedBy="readers")
|
* @ORM\ManyToMany(targetEntity="App\Entity\Alert", mappedBy="readers")
|
||||||
*/
|
*/
|
||||||
|
@ -202,6 +227,9 @@ class User implements UserInterface, LegacyPasswordAuthenticatedUserInterface
|
||||||
$this->ownergroups = new ArrayCollection();
|
$this->ownergroups = new ArrayCollection();
|
||||||
$this->modos = new ArrayCollection();
|
$this->modos = new ArrayCollection();
|
||||||
$this->alertreaders = new ArrayCollection();
|
$this->alertreaders = new ArrayCollection();
|
||||||
|
$this->pages = new ArrayCollection();
|
||||||
|
$this->icons = new ArrayCollection();
|
||||||
|
$this->bookmarks = new ArrayCollection();
|
||||||
}
|
}
|
||||||
|
|
||||||
// == CODE A NE PAS REGENERER
|
// == CODE A NE PAS REGENERER
|
||||||
|
@ -710,4 +738,94 @@ class User implements UserInterface, LegacyPasswordAuthenticatedUserInterface
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return Collection<int, Page>
|
||||||
|
*/
|
||||||
|
public function getPages(): Collection
|
||||||
|
{
|
||||||
|
return $this->pages;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function addPage(Page $page): self
|
||||||
|
{
|
||||||
|
if (!$this->pages->contains($page)) {
|
||||||
|
$this->pages->add($page);
|
||||||
|
$page->setUser($this);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function removePage(Page $page): self
|
||||||
|
{
|
||||||
|
if ($this->pages->removeElement($page)) {
|
||||||
|
// set the owning side to null (unless already changed)
|
||||||
|
if ($page->getUser() === $this) {
|
||||||
|
$page->setUser(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return Collection<int, Icon>
|
||||||
|
*/
|
||||||
|
public function getIcons(): Collection
|
||||||
|
{
|
||||||
|
return $this->icons;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function addIcon(Icon $icon): self
|
||||||
|
{
|
||||||
|
if (!$this->icons->contains($icon)) {
|
||||||
|
$this->icons->add($icon);
|
||||||
|
$icon->setUser($this);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function removeIcon(Icon $icon): self
|
||||||
|
{
|
||||||
|
if ($this->icons->removeElement($icon)) {
|
||||||
|
// set the owning side to null (unless already changed)
|
||||||
|
if ($icon->getUser() === $this) {
|
||||||
|
$icon->setUser(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return Collection<int, Bookmark>
|
||||||
|
*/
|
||||||
|
public function getBookmarks(): Collection
|
||||||
|
{
|
||||||
|
return $this->bookmarks;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function addBookmark(Bookmark $bookmark): self
|
||||||
|
{
|
||||||
|
if (!$this->bookmarks->contains($bookmark)) {
|
||||||
|
$this->bookmarks->add($bookmark);
|
||||||
|
$bookmark->setUser($this);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function removeBookmark(Bookmark $bookmark): self
|
||||||
|
{
|
||||||
|
if ($this->bookmarks->removeElement($bookmark)) {
|
||||||
|
// set the owning side to null (unless already changed)
|
||||||
|
if ($bookmark->getUser() === $this) {
|
||||||
|
$bookmark->setUser(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
namespace App\Entity;
|
namespace App\Entity;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Types\Types;
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@ namespace App\Entity;
|
||||||
|
|
||||||
use Doctrine\Common\Collections\ArrayCollection;
|
use Doctrine\Common\Collections\ArrayCollection;
|
||||||
use Doctrine\Common\Collections\Collection;
|
use Doctrine\Common\Collections\Collection;
|
||||||
|
use Doctrine\DBAL\Types\Types;
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Form;
|
||||||
|
|
||||||
|
use Symfony\Component\Form\AbstractType;
|
||||||
|
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
|
||||||
|
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
||||||
|
use Symfony\Component\Form\FormBuilderInterface;
|
||||||
|
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||||
|
|
||||||
|
class DocumentcategoryType extends AbstractType
|
||||||
|
{
|
||||||
|
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||||
|
{
|
||||||
|
$builder->add('submit',
|
||||||
|
SubmitType::class, [
|
||||||
|
'label' => 'Valider',
|
||||||
|
'attr' => ['class' => 'btn btn-success'],
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
|
$builder->add('label',
|
||||||
|
TextType::class, [
|
||||||
|
'label' => 'Label',
|
||||||
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function configureOptions(OptionsResolver $resolver)
|
||||||
|
{
|
||||||
|
$resolver->setDefaults([
|
||||||
|
'data_class' => 'App\Entity\Documentcategory',
|
||||||
|
'access' => 'string',
|
||||||
|
'mode' => 'string',
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,62 @@
|
||||||
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
{{ form_start(form) }}
|
||||||
|
<h1 class="page-header">
|
||||||
|
{% if mode=="update" %}
|
||||||
|
Modification Catégorie de Document = {{documentcategory.label}}
|
||||||
|
{% elseif mode=="submit" %}
|
||||||
|
Création Catégorie de Document
|
||||||
|
{% endif %}
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
{{ form_widget(form.submit) }}
|
||||||
|
<a class="btn btn-secondary" href={{ path('app_admin_documentcategory') }}>Annuler</a>
|
||||||
|
{% if mode=="update" %}
|
||||||
|
<a class="btn btn-danger float-end" href={{ path('app_admin_documentcategory_delete',{id:documentcategory.id}) }} data-method="delete" data-confirm="Êtes-vous sûr de vouloir supprimer cet enregistrement ?">Supprimer</a>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if app.session.flashbag.has('error') %}
|
||||||
|
<div class='alert alert-danger' style='margin: 5px 0px'>
|
||||||
|
<strong>Erreur</strong><br>
|
||||||
|
{% for flashMessage in app.session.flashbag.get('error') %}
|
||||||
|
{{ flashMessage }}<br>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if app.session.flashbag.has('notice') %}
|
||||||
|
<div class='alert alert-info' style='margin: 5px 0px'>
|
||||||
|
<strong>Information</strong><br>
|
||||||
|
{% for flashMessage in app.session.flashbag.get('notice') %}
|
||||||
|
{{ flashMessage }}<br>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<div class="card mt-4">
|
||||||
|
<div class="card-header">
|
||||||
|
<i class="fa fa-pencil-alt fa-fw"></i> Informations
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
{{ form_row(form.label) }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% if auditUse and mode=="update" and (access=="admin" or access=="modo" or access=="audit") %}
|
||||||
|
<div class="float-end" style="width:700px;max-width:100%">
|
||||||
|
{{ render(path("app_"~access~"_audit_renderid",{entityname:"Documentcategory",entityid:documentcategory.id})) }}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{{ form_end(form) }}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block localscript %}
|
||||||
|
<script>
|
||||||
|
$('document').ready(function(){
|
||||||
|
$("#documentcategory_label").focus();
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
{% endblock %}
|
|
@ -0,0 +1,81 @@
|
||||||
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
|
{% block localstyle %}
|
||||||
|
<style>
|
||||||
|
.list-sort {
|
||||||
|
padding:10px;
|
||||||
|
background-color: var(--bs-card-cap-bg);
|
||||||
|
border: var(--bs-card-border-width) solid var(--bs-card-border-color);
|
||||||
|
border-radius: var(--bs-card-inner-border-radius);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
<h1 class="page-header">Gestion des Catégories de Document </h1>
|
||||||
|
|
||||||
|
|
||||||
|
<a class="btn btn-success" href="{{ path('app_'~access~'_documentcategory_submit') }}">Ajouter</a>
|
||||||
|
{% if auditUse and (access=="admin" or access=="audit") %}
|
||||||
|
<a class="btn btn-secondary float-end" href="{{ path('app_'~access~'_audit_render',{entityname:'Documentcategory'}) }}"><i class="fas fa-eye fa-fw"></i> Audit</a>
|
||||||
|
{% endif %}
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div class="card mt-4">
|
||||||
|
<div class="card-header">
|
||||||
|
<i class="fa fa-table fa-fw"></i> Liste des Catégories de Document
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% set childs=[] %}
|
||||||
|
<div class="card-body">
|
||||||
|
<ul class="list-sort">
|
||||||
|
{% for documentcategory in documentcategorys %}
|
||||||
|
{{ render(path("app_"~access~"_documentcategory_render",{id:documentcategory.id})) }}
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block localscript %}
|
||||||
|
<script>
|
||||||
|
|
||||||
|
function updateItems() {
|
||||||
|
roworder=0;
|
||||||
|
$('.itemcat').each(function(i) {
|
||||||
|
// Order
|
||||||
|
roworder++;
|
||||||
|
|
||||||
|
// On récupère id et order
|
||||||
|
var id = $(this).data('id');
|
||||||
|
|
||||||
|
// On récupère le parent
|
||||||
|
var parent=$(this).parents('.itemcat').data('id');
|
||||||
|
//if(id==parent) parent=null;
|
||||||
|
|
||||||
|
console.log({id: id, parent:parent, roworder: roworder});
|
||||||
|
|
||||||
|
// Mise à jour en base de l'order
|
||||||
|
$.ajax({
|
||||||
|
method: "POST",
|
||||||
|
url: "{{ path('app_'~access~'_documentcategory_order') }}",
|
||||||
|
data: {
|
||||||
|
id:id,
|
||||||
|
parent:parent,
|
||||||
|
roworder:roworder
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$( ".list-sort" ).sortable({
|
||||||
|
connectWith: ".list-sort",
|
||||||
|
items: ".itemcat",
|
||||||
|
placeholder: "item placeholder",
|
||||||
|
stop: updateItems
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
{% endblock %}
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
<div class="itemcat list-group-item mb-3" data-id="{{ documentcategory.id }}" >
|
||||||
|
<a href="{{ path('app_'~access~'_documentcategory_update',{id:documentcategory.id})}}">{{ documentcategory.label }}</a>
|
||||||
|
<ul class="p-3 list-sort">
|
||||||
|
{% if not documentcategory.childs is empty %}
|
||||||
|
{% for documentcategory in documentcategory.childs %}
|
||||||
|
{{ render(path("app_"~access~"_documentcategory_render",{id:documentcategory.id,access:access})) }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
</ul>
|
||||||
|
</div>
|
|
@ -5,13 +5,13 @@
|
||||||
'name' : 'CONFIGURATION',
|
'name' : 'CONFIGURATION',
|
||||||
'items' : [
|
'items' : [
|
||||||
{
|
{
|
||||||
icon: 'fa fa-table',
|
icon: 'fa fa-table fa-fw',
|
||||||
route: 'app_admin_config',
|
route: 'app_admin_config',
|
||||||
name: 'Général',
|
name: 'Général',
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
icon: 'fas fa-paint-brush',
|
icon: 'fas fa-paint-brush fa-fw',
|
||||||
route: 'app_admin_theme',
|
route: 'app_admin_theme',
|
||||||
name: 'Thème',
|
name: 'Thème',
|
||||||
},
|
},
|
||||||
|
@ -19,46 +19,46 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id': 'sidebar-organisation',
|
'id': 'sidebar-organisation',
|
||||||
'icon': 'fa fa-sitemap',
|
'icon': 'fa fa-sitemap fa-fw',
|
||||||
'name' : 'ORGANISATION',
|
'name' : 'ORGANISATION',
|
||||||
'items' : [
|
'items' : [
|
||||||
{
|
{
|
||||||
icon: 'fa fa-building',
|
icon: 'fa fa-building fa-fw',
|
||||||
route: 'app_admin_niveau01',
|
route: 'app_admin_niveau01',
|
||||||
name: appNiveau01labels,
|
name: appNiveau01labels,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: 'fa fa-sitemap',
|
icon: 'fa fa-sitemap fa-fw',
|
||||||
route: 'app_admin_niveau02',
|
route: 'app_admin_niveau02',
|
||||||
name: appNiveau02labels,
|
name: appNiveau02labels,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: 'fas fa-store-alt',
|
icon: 'fas fa-store-alt fa-fw',
|
||||||
route: 'app_admin_niveau03',
|
route: 'app_admin_niveau03',
|
||||||
name: appNiveau03labels,
|
name: appNiveau03labels,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: 'fas fa-monument',
|
icon: 'fas fa-monument fa-fw',
|
||||||
route: 'app_admin_niveau04',
|
route: 'app_admin_niveau04',
|
||||||
name: appNiveau04labels,
|
name: appNiveau04labels,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: 'fa fa-users',
|
icon: 'fa fa-users fa-fw',
|
||||||
route: 'app_admin_group',
|
route: 'app_admin_group',
|
||||||
name: 'Groupes',
|
name: 'Groupes',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: 'fa fa-child',
|
icon: 'fa fa-child fa-fw',
|
||||||
route: 'app_admin_user',
|
route: 'app_admin_user',
|
||||||
name: 'Utilisateurs',
|
name: 'Utilisateurs',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: 'fa fa-edit',
|
icon: 'fa fa-edit fa-fw',
|
||||||
route: 'app_admin_registration',
|
route: 'app_admin_registration',
|
||||||
name: 'Inscriptions',
|
name: 'Inscriptions',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: 'fa fa-tasks',
|
icon: 'fa fa-tasks fa-fw',
|
||||||
route: 'app_admin_whitelist',
|
route: 'app_admin_whitelist',
|
||||||
name: 'Listes Blanche',
|
name: 'Listes Blanche',
|
||||||
},
|
},
|
||||||
|
@ -80,35 +80,47 @@
|
||||||
name: 'Pages',
|
name: 'Pages',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: 'fa fa-desktop',
|
icon: 'fa fa-desktop fa-fw',
|
||||||
route: 'app_admin_item',
|
route: 'app_admin_item',
|
||||||
name: 'Items',
|
name: 'Items',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: 'fa fa-bell',
|
icon: 'fa fa-bell fa-fw',
|
||||||
route: 'app_admin_alert',
|
route: 'app_admin_alert',
|
||||||
name: 'Annonces',
|
name: 'Annonces',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: 'fa fa-bug',
|
icon: 'fa fa-bug fa-fw',
|
||||||
route: 'app_admin_icon',
|
route: 'app_admin_icon',
|
||||||
name: 'Icônes',
|
name: 'Icônes',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'id': 'sidebar-document',
|
||||||
|
'icon': 'fa fa-file fa-fw',
|
||||||
|
'name' : 'DOCUMENTS',
|
||||||
|
'items' : [
|
||||||
|
{
|
||||||
|
icon: 'fa fa-cogs',
|
||||||
|
route: 'app_admin_documentcategory',
|
||||||
|
name: 'Catégories',
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'id': 'sidebar-cron',
|
'id': 'sidebar-cron',
|
||||||
'icon': 'fa fa-wrench',
|
'icon': 'fa fa-wrench',
|
||||||
'name' : 'OUTILS',
|
'name' : 'OUTILS',
|
||||||
'items' : [
|
'items' : [
|
||||||
{
|
{
|
||||||
icon: 'fa fa-cogs',
|
icon: 'fa fa-cogs fa-fw',
|
||||||
route: 'app_admin_cron',
|
route: 'app_admin_cron',
|
||||||
name: 'Cron Jobs',
|
name: 'Cron Jobs',
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
icon: 'fas fa-star-of-life',
|
icon: 'fas fa-star-of-life fa-fw',
|
||||||
route: 'app_rest',
|
route: 'app_rest',
|
||||||
name: 'API',
|
name: 'API',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue