Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Txuleton
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Patrick Etcheverry
Txuleton
Commits
3450fee7
Commit
3450fee7
authored
Jul 13, 2017
by
Patrick Etcheverry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Esthétique beaucoup améliorée (fil d'ariane + glyphicons de Font Awesome)
parent
c0b69dc9
Changes
45
Hide whitespace changes
Inline
Side-by-side
Showing
45 changed files
with
1436 additions
and
736 deletions
+1436
-736
app/Resources/translations/messages.en.yml
app/Resources/translations/messages.en.yml
+6
-4
app/Resources/translations/messages.es.yml
app/Resources/translations/messages.es.yml
+5
-3
app/Resources/translations/messages.fr.yml
app/Resources/translations/messages.fr.yml
+5
-4
app/Resources/views/baseLogin.html.twig
app/Resources/views/baseLogin.html.twig
+1
-0
app/Resources/views/menu.html.twig
app/Resources/views/menu.html.twig
+1
-1
src/ScenarioBundle/Controller/FormationController.php
src/ScenarioBundle/Controller/FormationController.php
+87
-13
src/ScenarioBundle/Controller/PedagogicalScenarioController.php
...enarioBundle/Controller/PedagogicalScenarioController.php
+1
-1
src/ScenarioBundle/Controller/ProjectController.php
src/ScenarioBundle/Controller/ProjectController.php
+88
-12
src/ScenarioBundle/Resources/views/formation/edit.html.twig
src/ScenarioBundle/Resources/views/formation/edit.html.twig
+26
-14
src/ScenarioBundle/Resources/views/formation/index.html.twig
src/ScenarioBundle/Resources/views/formation/index.html.twig
+49
-34
src/ScenarioBundle/Resources/views/formation/new.html.twig
src/ScenarioBundle/Resources/views/formation/new.html.twig
+19
-10
src/ScenarioBundle/Resources/views/formation/pedagogicalscenariomanagement.html.twig
...s/views/formation/pedagogicalscenariomanagement.html.twig
+62
-39
src/ScenarioBundle/Resources/views/formation/show.html.twig
src/ScenarioBundle/Resources/views/formation/show.html.twig
+16
-16
src/ScenarioBundle/Resources/views/pedagogicalscenario/edit.html.twig
...Bundle/Resources/views/pedagogicalscenario/edit.html.twig
+1
-2
src/ScenarioBundle/Resources/views/pedagogicalscenario/new.html.twig
...oBundle/Resources/views/pedagogicalscenario/new.html.twig
+18
-3
src/ScenarioBundle/Resources/views/project/edit.html.twig
src/ScenarioBundle/Resources/views/project/edit.html.twig
+25
-15
src/ScenarioBundle/Resources/views/project/index.html.twig
src/ScenarioBundle/Resources/views/project/index.html.twig
+31
-21
src/ScenarioBundle/Resources/views/project/new.html.twig
src/ScenarioBundle/Resources/views/project/new.html.twig
+15
-8
src/ScenarioBundle/Resources/views/project/pedagogicalscenariomanagement.html.twig
...ces/views/project/pedagogicalscenariomanagement.html.twig
+64
-42
src/ScenarioBundle/Resources/views/project/show.html.twig
src/ScenarioBundle/Resources/views/project/show.html.twig
+15
-16
src/ScenarisationProcessBundle/Controller/QuestionController.php
...narisationProcessBundle/Controller/QuestionController.php
+67
-16
src/ScenarisationProcessBundle/Controller/ScenarisationProcessController.php
...ocessBundle/Controller/ScenarisationProcessController.php
+82
-15
src/ScenarisationProcessBundle/Controller/ScenarisationStageController.php
...ProcessBundle/Controller/ScenarisationStageController.php
+93
-10
src/ScenarisationProcessBundle/Resources/translations/messages.en.yml
...ationProcessBundle/Resources/translations/messages.en.yml
+4
-1
src/ScenarisationProcessBundle/Resources/translations/messages.es.yml
...ationProcessBundle/Resources/translations/messages.es.yml
+3
-0
src/ScenarisationProcessBundle/Resources/translations/messages.fr.yml
...ationProcessBundle/Resources/translations/messages.fr.yml
+4
-1
src/ScenarisationProcessBundle/Resources/views/question/edit.html.twig
...tionProcessBundle/Resources/views/question/edit.html.twig
+30
-14
src/ScenarisationProcessBundle/Resources/views/question/index.html.twig
...ionProcessBundle/Resources/views/question/index.html.twig
+40
-29
src/ScenarisationProcessBundle/Resources/views/question/new.html.twig
...ationProcessBundle/Resources/views/question/new.html.twig
+24
-10
src/ScenarisationProcessBundle/Resources/views/question/show.html.twig
...tionProcessBundle/Resources/views/question/show.html.twig
+31
-28
src/ScenarisationProcessBundle/Resources/views/scenarisationprocess/edit.html.twig
...undle/Resources/views/scenarisationprocess/edit.html.twig
+30
-14
src/ScenarisationProcessBundle/Resources/views/scenarisationprocess/index.html.twig
...ndle/Resources/views/scenarisationprocess/index.html.twig
+36
-20
src/ScenarisationProcessBundle/Resources/views/scenarisationprocess/new.html.twig
...Bundle/Resources/views/scenarisationprocess/new.html.twig
+24
-10
src/ScenarisationProcessBundle/Resources/views/scenarisationprocess/show.html.twig
...undle/Resources/views/scenarisationprocess/show.html.twig
+29
-27
src/ScenarisationProcessBundle/Resources/views/scenarisationprocess/stagesEdit.html.twig
...Resources/views/scenarisationprocess/stagesEdit.html.twig
+81
-59
src/ScenarisationProcessBundle/Resources/views/scenarisationstage/edit.html.twig
...sBundle/Resources/views/scenarisationstage/edit.html.twig
+30
-14
src/ScenarisationProcessBundle/Resources/views/scenarisationstage/index.html.twig
...Bundle/Resources/views/scenarisationstage/index.html.twig
+36
-21
src/ScenarisationProcessBundle/Resources/views/scenarisationstage/new.html.twig
...ssBundle/Resources/views/scenarisationstage/new.html.twig
+24
-10
src/ScenarisationProcessBundle/Resources/views/scenarisationstage/processManagement.html.twig
...rces/views/scenarisationstage/processManagement.html.twig
+12
-13
src/ScenarisationProcessBundle/Resources/views/scenarisationstage/questionsEdit.html.twig
...esources/views/scenarisationstage/questionsEdit.html.twig
+75
-59
src/ScenarisationProcessBundle/Resources/views/scenarisationstage/show.html.twig
...sBundle/Resources/views/scenarisationstage/show.html.twig
+59
-50
src/UserBundle/Controller/UserController.php
src/UserBundle/Controller/UserController.php
+21
-21
src/UserBundle/Resources/views/user/edit.html.twig
src/UserBundle/Resources/views/user/edit.html.twig
+26
-14
src/UserBundle/Resources/views/user/index.html.twig
src/UserBundle/Resources/views/user/index.html.twig
+22
-14
src/UserBundle/Resources/views/user/new.html.twig
src/UserBundle/Resources/views/user/new.html.twig
+18
-8
No files found.
app/Resources/translations/messages.en.yml
View file @
3450fee7
...
...
@@ -23,7 +23,10 @@ description: "Description"
position
:
"
Position"
referentLecturer
:
"
Referent
Teacher"
projects
:
"
Projects"
project
:
"
Project"
formation
:
"
Formation"
formations
:
"
Formations"
trainingCourses
:
"
Training
courses"
user
:
"
Users"
...
...
@@ -57,10 +60,9 @@ parameters: "Settings"
scenarios
:
"
Scenarios"
menu
:
projets
:
"
Projects"
formations
:
"
Formations"
formations
:
"
Formations"
utilisateurs
:
"
Users"
questions
:
"
Questions"
questions
:
"
Questions"
scenarisationProcess
:
"
Scenarisation
Process"
pageLogin
:
...
...
@@ -72,5 +74,5 @@ pageLogin:
connexion
:
"
Sign
in"
appDescription
:
'
Design
and
export
of
pedagogical
scenarios'
associatedScenarios
:
"
Pedagogical
scenarios
associated"
footer
:
"
Txuleton
platform
is
hosted
by
"
app/Resources/translations/messages.es.yml
View file @
3450fee7
...
...
@@ -23,7 +23,10 @@ description: "Descripción"
position
:
"
Posición"
referentTeacher
:
"
Profesor
referente"
project
:
"
Proyecto"
projects
:
"
Proyectos"
project
:
"
Project"
formation
:
"
Formation"
formations
:
"
Formationes"
trainingCourses
:
"
Formaciones"
user
:
"
Usuarios"
...
...
@@ -56,7 +59,6 @@ parameters: "Parámetros"
scenarios
:
"
Escenarios"
menu
:
projets
:
"
Proyectos"
questions
:
"
Preguntas"
scenarisationProcess
:
"
"
...
...
@@ -69,5 +71,5 @@ pageLogin:
connexion
:
"
Conección"
appDescription
:
'
Diseño
y
exportación
de
escenarios
pedagógicos'
associatedScenarios
:
"
"
footer
:
"
La
plataforma
Txuleton
está
albergada
por
la
"
app/Resources/translations/messages.fr.yml
View file @
3450fee7
...
...
@@ -23,7 +23,10 @@ description: "Description"
position
:
"
Position"
referentTeacher
:
"
Enseignant
Référent"
project
:
"
Projet"
projects
:
"
Projets"
project
:
"
Project"
formation
:
"
Formation"
formations
:
"
Formations"
trainingCourses
:
"
Formations"
user
:
"
Utilisateurs"
...
...
@@ -57,8 +60,6 @@ parameters: "Paramètres"
scenarios
:
"
Scénarios"
menu
:
projets
:
"
Projets"
formations
:
"
Formations"
utilisateurs
:
"
Utilisateurs"
questions
:
"
Questions"
scenarisationProcess
:
"
Démarche
de
scénarisation"
...
...
@@ -72,5 +73,5 @@ pageLogin:
connexion
:
"
Connexion"
appDescription
:
'
Conception
et
exportation
de
scénarios
pédagogiques'
associatedScenarios
:
"
Scénarios
pédagogiques
associés"
footer
:
"
La
plateforme
Txuleton
est
hébergée
par
l'"
app/Resources/views/baseLogin.html.twig
View file @
3450fee7
{# app/Resources/views/base.html.twig #}
{%
set
appName
=
"Txuleton"
%}
{%
set
currentLanguage
=
app.request.locale
%}
<!DOCTYPE html>
<html>
...
...
app/Resources/views/menu.html.twig
View file @
3450fee7
...
...
@@ -17,7 +17,7 @@
<li
class=
"list-group-item
{{
app.session.get
(
'menu'
)
.
projects
}}
"
style=
"text-decoration: none;"
>
<a
href=
"
{{
path
(
'project_index'
,
{
'userRole'
:
currentRole
}
)
}}
"
>
<i
class=
"fa fa-briefcase"
aria-hidden=
"true"
></i>
{{
'
menu.proje
ts'
|
trans
}}
{{
'
projec
ts'
|
trans
}}
</a>
</li>
...
...
src/ScenarioBundle/Controller/FormationController.php
View file @
3450fee7
...
...
@@ -21,17 +21,10 @@ class FormationController extends Controller
*/
public
function
indexAction
(
Request
$request
)
{
// We generate the new breadcrumb
$this
->
createBreadcrumb
(
"index"
);
// Mise en évidence du menu, changement du menu sélectionné
$menu
=
array
(
'pedagogical_scenario'
=>
""
,
'projects'
=>
""
,
'formation'
=>
"list-group-item-info"
,
'user'
=>
""
,
'parameters'
=>
""
,
'scenarisation_process'
=>
""
,
'scenarisation_stage'
=>
""
,
'question'
=>
""
);
// Mise en session du menu
$this
->
get
(
'session'
)
->
set
(
'menu'
,
$menu
);
$this
->
updateMenu
();
$em
=
$this
->
getDoctrine
()
->
getManager
();
...
...
@@ -49,8 +42,7 @@ class FormationController extends Controller
);
return
$this
->
render
(
'ScenarioBundle:formation:index.html.twig'
,
array
(
'formations'
=>
$formations
,
'menu'
=>
$menu
'formations'
=>
$formations
));
}
...
...
@@ -60,6 +52,11 @@ class FormationController extends Controller
*/
public
function
newAction
(
Request
$request
)
{
// We generate the new breadcrumb
$this
->
createBreadcrumb
(
"new"
);
// Mise en évidence du menu, changement du menu sélectionné
$this
->
updateMenu
();
$formation
=
new
Formation
();
$form
=
$this
->
createForm
(
'ScenarioBundle\Form\FormationType'
,
$formation
);
$form
->
handleRequest
(
$request
);
...
...
@@ -84,6 +81,11 @@ class FormationController extends Controller
*/
public
function
showAction
(
Formation
$formation
)
{
// We generate the new breadcrumb
$this
->
createBreadcrumb
(
"show"
,
$formation
);
// Mise en évidence du menu, changement du menu sélectionné
$this
->
updateMenu
();
$deleteForm
=
$this
->
createDeleteForm
(
$formation
);
return
$this
->
render
(
'ScenarioBundle:formation:show.html.twig'
,
array
(
...
...
@@ -98,6 +100,11 @@ class FormationController extends Controller
*/
public
function
editAction
(
Request
$request
,
Formation
$formation
)
{
// We generate the new breadcrumb
$this
->
createBreadcrumb
(
"edit"
,
$formation
);
// Mise en évidence du menu, changement du menu sélectionné
$this
->
updateMenu
();
$deleteForm
=
$this
->
createDeleteForm
(
$formation
);
$editForm
=
$this
->
createForm
(
'ScenarioBundle\Form\FormationType'
,
$formation
);
$editForm
->
handleRequest
(
$request
);
...
...
@@ -157,7 +164,11 @@ class FormationController extends Controller
*
*/
public
function
pedagogicalScenarioManagementAction
(
Formation
$formation
)
{
{
// We generate the new breadcrumb
$this
->
createBreadcrumb
(
"pedagogical_scenario_management"
,
$formation
);
// Mise en évidence du menu, changement du menu sélectionné
$this
->
updateMenu
();
$em
=
$this
->
getDoctrine
()
->
getManager
();
/*$queryBuilder = $em->getRepository('ScenarioBundle:PedagogicalScenario')->createQueryBuilder('pedagogicalScenarios');
...
...
@@ -265,4 +276,67 @@ class FormationController extends Controller
else
return
$this
->
redirectToRoute
(
'formation_pedagogical_scenario_management'
,
array
(
'userRole'
=>
'pedagogical-engineer'
,
'id'
=>
$formation
->
getId
()));
}
private
function
updateMenu
()
{
// Mise en évidence du menu, changement du menu sélectionné
$menu
=
array
(
'pedagogical_scenario'
=>
""
,
'projects'
=>
""
,
'formation'
=>
"list-group-item-info"
,
'user'
=>
""
,
'parameters'
=>
""
,
'scenarisation_process'
=>
""
,
'scenarisation_stage'
=>
""
,
'question'
=>
""
);
// Mise en session du menu
$this
->
get
(
'session'
)
->
set
(
'menu'
,
$menu
);
}
private
function
createBreadcrumb
(
$currentAction
,
$formation
=
null
)
{
$breadcrumbs
=
$this
->
get
(
"white_october_breadcrumbs"
);
switch
(
$currentAction
)
{
case
"index"
:
$breadcrumbs
->
addItem
(
"formations"
);
break
;
case
"show"
:
$breadcrumbs
->
addRouteItem
(
"formations"
,
"formation_index"
,
[
'userRole'
=>
(
$this
->
get
(
'security.authorization_checker'
)
->
isGranted
(
'ROLE_PEDAGOGICAL_ENGINEER'
)
?
"pedagogical-engineer"
:
"teacher"
)
]);
$breadcrumbs
->
addItem
(
$formation
->
getShortname
());
$breadcrumbs
->
addItem
(
"show"
);
break
;
case
"new"
:
$breadcrumbs
->
addRouteItem
(
"formations"
,
"formation_index"
,
[
'userRole'
=>
(
$this
->
get
(
'security.authorization_checker'
)
->
isGranted
(
'ROLE_PEDAGOGICAL_ENGINEER'
)
?
"pedagogical-engineer"
:
"teacher"
)
]);
$breadcrumbs
->
addItem
(
"formation.new"
);
break
;
case
"edit"
:
$breadcrumbs
->
addRouteItem
(
"formations"
,
"formation_index"
,
[
'userRole'
=>
(
$this
->
get
(
'security.authorization_checker'
)
->
isGranted
(
'ROLE_PEDAGOGICAL_ENGINEER'
)
?
"pedagogical-engineer"
:
"teacher"
)
]);
$breadcrumbs
->
addItem
(
$formation
->
getShortname
());
$breadcrumbs
->
addItem
(
"edit"
);
break
;
case
"pedagogical_scenario_management"
:
$breadcrumbs
->
addRouteItem
(
"formations"
,
"formation_index"
,
[
'userRole'
=>
(
$this
->
get
(
'security.authorization_checker'
)
->
isGranted
(
'ROLE_PEDAGOGICAL_ENGINEER'
)
?
"pedagogical-engineer"
:
"teacher"
)
]);
$breadcrumbs
->
addRouteItem
(
$formation
->
getShortname
(),
"formation_show"
,
[
'userRole'
=>
(
$this
->
get
(
'security.authorization_checker'
)
->
isGranted
(
'ROLE_PEDAGOGICAL_ENGINEER'
)
?
"pedagogical-engineer"
:
"teacher"
),
'id'
=>
$formation
->
getId
()
]);
$breadcrumbs
->
addItem
(
"associatedScenarios"
);
break
;
}
}
}
src/ScenarioBundle/Controller/PedagogicalScenarioController.php
View file @
3450fee7
...
...
@@ -671,7 +671,7 @@ class PedagogicalScenarioController extends Controller
$breadcrumbs
->
addRouteItem
(
"pedagogicalScenario"
,
"pedagogicalscenario_index"
,
[
'userRole'
=>
(
$this
->
get
(
'security.authorization_checker'
)
->
isGranted
(
'ROLE_PEDAGOGICAL_ENGINEER'
)
?
"pedagogical-engineer"
:
"teacher"
)
]);
$breadcrumbs
->
addItem
(
"new"
);
$breadcrumbs
->
addItem
(
"
pedagogicalScenario.
new"
);
break
;
case
"edit"
:
...
...
src/ScenarioBundle/Controller/ProjectController.php
View file @
3450fee7
...
...
@@ -21,17 +21,11 @@ class ProjectController extends Controller
*/
public
function
indexAction
(
Request
$request
)
{
// We generate the new breadcrumb
$this
->
createBreadcrumb
(
"index"
);
// Mise en évidence du menu, changement du menu sélectionné
$menu
=
array
(
'pedagogical_scenario'
=>
""
,
'projects'
=>
"list-group-item-info"
,
'formation'
=>
""
,
'user'
=>
""
,
'parameters'
=>
""
,
'scenarisation_process'
=>
""
,
'scenarisation_stage'
=>
""
,
'question'
=>
""
);
// Mise en session du menu
$this
->
get
(
'session'
)
->
set
(
'menu'
,
$menu
);
$this
->
updateMenu
();
$em
=
$this
->
getDoctrine
()
->
getManager
();
...
...
@@ -49,8 +43,7 @@ class ProjectController extends Controller
);
return
$this
->
render
(
'ScenarioBundle:project:index.html.twig'
,
array
(
'projects'
=>
$projects
,
'menu'
=>
$menu
'projects'
=>
$projects
));
}
...
...
@@ -60,6 +53,11 @@ class ProjectController extends Controller
*/
public
function
newAction
(
Request
$request
)
{
// We generate the new breadcrumb
$this
->
createBreadcrumb
(
"new"
);
// Mise en évidence du menu, changement du menu sélectionné
$this
->
updateMenu
();
$project
=
new
Project
();
$form
=
$this
->
createForm
(
'ScenarioBundle\Form\ProjectType'
,
$project
);
$form
->
handleRequest
(
$request
);
...
...
@@ -84,6 +82,11 @@ class ProjectController extends Controller
*/
public
function
showAction
(
Project
$project
)
{
// We generate the new breadcrumb
$this
->
createBreadcrumb
(
"show"
,
$project
);
// Mise en évidence du menu, changement du menu sélectionné
$this
->
updateMenu
();
$deleteForm
=
$this
->
createDeleteForm
(
$project
);
return
$this
->
render
(
'ScenarioBundle:project:show.html.twig'
,
array
(
...
...
@@ -98,6 +101,11 @@ class ProjectController extends Controller
*/
public
function
editAction
(
Request
$request
,
Project
$project
)
{
// We generate the new breadcrumb
$this
->
createBreadcrumb
(
"edit"
,
$project
);
// Mise en évidence du menu, changement du menu sélectionné
$this
->
updateMenu
();
$deleteForm
=
$this
->
createDeleteForm
(
$project
);
$editForm
=
$this
->
createForm
(
'ScenarioBundle\Form\ProjectType'
,
$project
);
$editForm
->
handleRequest
(
$request
);
...
...
@@ -160,6 +168,11 @@ class ProjectController extends Controller
public
function
pedagogicalScenarioManagementAction
(
Project
$project
)
{
// We generate the new breadcrumb
$this
->
createBreadcrumb
(
"pedagogical_scenario_management"
,
$project
);
// Mise en évidence du menu, changement du menu sélectionné
$this
->
updateMenu
();
$em
=
$this
->
getDoctrine
()
->
getManager
();
/*$queryBuilder = $em->getRepository('ScenarioBundle:PedagogicalScenario')->createQueryBuilder('pedagogicalScenarios');
...
...
@@ -196,4 +209,67 @@ class ProjectController extends Controller
'project'
=>
$project
));
}
private
function
updateMenu
()
{
// Mise en évidence du menu, changement du menu sélectionné
$menu
=
array
(
'pedagogical_scenario'
=>
""
,
'projects'
=>
"list-group-item-info"
,
'formation'
=>
""
,
'user'
=>
""
,
'parameters'
=>
""
,
'scenarisation_process'
=>
""
,
'scenarisation_stage'
=>
""
,
'question'
=>
""
);
// Mise en session du menu
$this
->
get
(
'session'
)
->
set
(
'menu'
,
$menu
);
}
private
function
createBreadcrumb
(
$currentAction
,
$project
=
null
)
{
$breadcrumbs
=
$this
->
get
(
"white_october_breadcrumbs"
);
switch
(
$currentAction
)
{
case
"index"
:
$breadcrumbs
->
addItem
(
"projects"
);
break
;
case
"show"
:
$breadcrumbs
->
addRouteItem
(
"projects"
,
"project_index"
,
[
'userRole'
=>
(
$this
->
get
(
'security.authorization_checker'
)
->
isGranted
(
'ROLE_PEDAGOGICAL_ENGINEER'
)
?
"pedagogical-engineer"
:
"teacher"
)
]);
$breadcrumbs
->
addItem
(
$project
->
getShortname
());
$breadcrumbs
->
addItem
(
"show"
);
break
;
case
"new"
:
$breadcrumbs
->
addRouteItem
(
"projects"
,
"project_index"
,
[
'userRole'
=>
(
$this
->
get
(
'security.authorization_checker'
)
->
isGranted
(
'ROLE_PEDAGOGICAL_ENGINEER'
)
?
"pedagogical-engineer"
:
"teacher"
)
]);
$breadcrumbs
->
addItem
(
"project.new"
);
break
;
case
"edit"
:
$breadcrumbs
->
addRouteItem
(
"projects"
,
"project_index"
,
[
'userRole'
=>
(
$this
->
get
(
'security.authorization_checker'
)
->
isGranted
(
'ROLE_PEDAGOGICAL_ENGINEER'
)
?
"pedagogical-engineer"
:
"teacher"
)
]);
$breadcrumbs
->
addItem
(
$project
->
getShortname
());
$breadcrumbs
->
addItem
(
"edit"
);
break
;
case
"pedagogical_scenario_management"
:
$breadcrumbs
->
addRouteItem
(
"projects"
,
"project_index"
,
[
'userRole'
=>
(
$this
->
get
(
'security.authorization_checker'
)
->
isGranted
(
'ROLE_PEDAGOGICAL_ENGINEER'
)
?
"pedagogical-engineer"
:
"teacher"
)
]);
$breadcrumbs
->
addRouteItem
(
$project
->
getShortname
(),
"project_show"
,
[
'userRole'
=>
(
$this
->
get
(
'security.authorization_checker'
)
->
isGranted
(
'ROLE_PEDAGOGICAL_ENGINEER'
)
?
"pedagogical-engineer"
:
"teacher"
),
'id'
=>
$project
->
getId
()
]);
$breadcrumbs
->
addItem
(
"associatedScenarios"
);
break
;
}
}
}
src/ScenarioBundle/Resources/views/formation/edit.html.twig
View file @
3450fee7
{%
extends
'base.html.twig'
%}
{%
block
body
%}
<h2
class=
"text-center"
>
{{
'formation.edit'
|
trans
}}
</h2>
<div
class=
"panel-heading"
>
<h4>
<b>
{{
'formation.edit'
|
trans
}}
</b>
</h4>
</div>
<div
class=
"panel-body"
>
<br/>
{{
form_start
(
edit_form
)
}}
<div
class=
"formulaire"
>
{{
form_start
(
edit_form
)
}}
{{
form_widget
(
edit_form
)
}}
<input
type=
"submit"
value=
"
{{
'edit'
|
trans
}}
"
/>
{{
form_widget
(
edit_form
)
}}
<div
style=
"float: right"
>
<h4>
<i
class=
"fa fa-floppy-o"
aria-hidden=
"true"
></i>
<input
class=
"boutonSansBordure"
type=
"submit"
value=
"
{{
'save'
|
trans
}}
"
/>
</h4>
</div>
{{
form_end
(
edit_form
)
}}
<ul>
<li>
<a
href=
"
{{
path
(
'formation_index'
,
{
'userRole'
:
currentRole
}
)
}}
"
>
{{
'backToList'
|
trans
}}
</a>
</li>
<li>
{{
form_start
(
delete_form
)
}}
<input
type=
"submit"
value=
"
{{
'delete'
|
trans
}}
"
>
{{
form_end
(
delete_form
)
}}
</li>
</ul>
<div
style=
"float: left"
>
<h4>
{{
form_start
(
delete_form
)
}}
{# Bouton supprimer #}
<i
class=
"fa fa-trash-o"
aria-hidden=
"true"
></i>
<input
class=
"boutonSansBordure"
type=
"submit"
value=
"
{{
'delete'
|
trans
}}
"
>
{{
form_end
(
delete_form
)
}}
</h4>
</div>
</div>
</div>
{%
endblock
%}
src/ScenarioBundle/Resources/views/formation/index.html.twig
View file @
3450fee7
{%
extends
'base.html.twig'
%}
{%
block
body
%}
<h2
class=
"text-center"
>
{{
'formation.list'
|
trans
}}
</h2>
<div
class=
"panel-heading"
>
<h4>
<b>
{{
'formation.list'
|
trans
}}
</b>
</h4>
</div>
<div
class=
"panel-body"
>
<table
class=
"table"
>
<thead>
<tr>
<th>
{{
knp_pagination_sortable
(
formations
,
'shortname'
|
trans
,
'formations.shortname'
)
}}
</th>
<th>
{{
knp_pagination_sortable
(
formations
,
'fullname'
|
trans
,
'formations.fullname'
)
}}
</th>
<th>
{{
'actions'
|
trans
}}
</th>
</tr>
</thead>
<tbody>
<thead>
<tr>
<th>
{{
knp_pagination_sortable
(
formations
,
'shortname'
|
trans
,
'formations.shortname'
)
}}
</th>
<th>
{{
knp_pagination_sortable
(
formations
,
'fullname'
|
trans
,
'formations.fullname'
)
}}
</th>
<th>
{{
'actions'
|
trans
}}
</th>
</tr>
</thead>
<tbody>
{%
for
formation
in
formations
%}
<tr>
<td>
{{
formation.shortname
}}
</td>
<td>
{{
formation.fullname
}}
</td>
<td>
<ul>
<li>
<a
href=
"
{{
path
(
'formation_show'
,
{
'id'
:
formation.id
,
'userRole'
:
currentRole
}
)
}}
"
>
{{
'show'
|
trans
}}
</a>
</li>
{%
if
currentRole
==
"pedagogical-engineer"
%}
<li>
<a
href=
"
{{
path
(
'formation_edit'
,
{
'id'
:
formation.id
,
'userRole'
:
currentRole
}
)
}}
"
>
{{
'edit'
|
trans
}}
</a>
</li>
<li>
<a
href=
"
{{
path
(
'formation_pedagogical_scenario_management'
,
{
'id'
:
formation.id
,
'userRole'
:
currentRole
}
)
}}
"
>
Associer les scénarios pédagogiques
</a>
</li>
{%
endif
%}
</ul>
</td>
</tr>
<tr>
<td>
{{
formation.shortname
}}
</td>
<td>
{{
formation.fullname
}}
</td>
<td>
<a
title=
"
{{
'show'
|
trans
}}
"
href=
"
{{
path
(
'formation_show'
,
{
'userRole'
:
currentRole
,
'id'
:
formation.id
}
)
}}
"
>
<i
class=
"fa fa-eye"
aria-hidden=
"true"
></i>
</a>
{%
if
currentRole
==
"pedagogical-engineer"
%}
<a
title=
"
{{
'edit'
|
trans
}}
"
href=
"
{{
path
(
'formation_edit'
,
{
'userRole'
:
"pedagogical-engineer"
,
'id'
:
formation.id
}
)
}}
"
>
<i
class=
"fa fa-pencil"
aria-hidden=
"true"
></i>
</a>
<a
title=
"
{{
'ASSOCIER LES SCENARIOS PEDA'
|
trans
}}
"
href=
"
{{
path
(
'formation_pedagogical_scenario_management'
,
{
'userRole'
:
"pedagogical-engineer"
,
'id'
:
formation.id
}
)
}}
"
>
<i
class=
"fa fa-book"
aria-hidden=
"true"
></i>
</a>
{%
endif
%}
</td>
</tr>
{%
endfor
%}
</tbody>
</tbody>
</table>
<ul>
<li>
<a
href=
"
{{
path
(
'formation_new'
,
{
'userRole'
:
currentRole
}
)
}}
"
>
{{
'formation.new'
|
trans
}}
</a>
</li>
</ul>
{%
if
currentRole
==
"pedagogical-engineer"
%}
<div
style=
"float: right"
>
<h4>
{# Bouton Ajouter #}
<i
class=
"fa fa-plus"
aria-hidden=
"true"
></i>
<a
href=
"
{{
path
(
'formation_new'
,
{
'userRole'
:
"pedagogical-engineer"
}
)
}}
"
>
{{
"formation.new"
|
trans
}}
</a>
</h4>
</div>
{%
endif
%}
</div>
{%
endblock
%}
src/ScenarioBundle/Resources/views/formation/new.html.twig
View file @
3450fee7
{%
extends
'base.html.twig'
%}
{%
block
body
%}
<h2
class=
"text-center"
>
{{
'formation.add'
|
trans
}}
</h2>
<div
class=
"panel-heading"
>
<h4>
<b>
{{
'formation.add'
|
trans
}}
</b>
</h4>
</div>
<div
class=
"panel-body"
>
<br/>
<div
class=
"formulaire"
>
{{
form_start
(
form
)
}}
{{
form_widget
(
form
)
}}
<input
type=
"submit"
value=
"
{{
'create'
|
trans
}}
"
/>
{{
form_end
(
form
)
}}
{{
form_start
(
form
)
}}
{{
form_widget
(
form
)
}}
<ul>
<li>
<a
href=
"
{{
path
(
'formation_index'
,
{
'userRole'
:
currentRole
}
)
}}
"
>
{{
'backToList'
|
trans
}}
</a>
</li>
</ul>
<div
style=
"float: right"
>
<h4>
{# Bouton enregistrer #}
<i
class=
"fa fa-floppy-o"
aria-hidden=
"true"
></i>
<input
class=
"boutonSansBordure"
type=
"submit"
value=
"
{{
'save'
|
trans
}}
"
>
{{
form_end
(
form
)
}}
</h4>
</div>
</div>
</div>
{%
endblock
%}
src/ScenarioBundle/Resources/views/formation/pedagogicalscenariomanagement.html.twig
View file @
3450fee7
{%
extends
'base.html.twig'
%}
{%
block
body
%}
<h2
class=
"text-center"
>
Gestion des scénarios pédagoiques d'une formation
</h2>
<h4
class=
"text-center"
>
Formation courante :
{{
formation.shortname
}}
</h4>
<hr/>
<div
class=
"panel-heading"
>
<h4>
<b>
GESTION DES SCENARIOS D'UNE FORMATION
</b>