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
6a3d770e
Commit
6a3d770e
authored
Jun 26, 2017
by
Patrick Etcheverry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changements effectués au niveau de la gestion des démarches d'une étape
parent
2f96641c
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
36 additions
and
17 deletions
+36
-17
src/ScenarioBundle/Controller/PedagogicalScenarioController.php
...enarioBundle/Controller/PedagogicalScenarioController.php
+0
-1
src/ScenarioBundle/Entity/PedagogicalScenario.php
src/ScenarioBundle/Entity/PedagogicalScenario.php
+7
-2
src/ScenarioBundle/Form/PedagogicalScenarioType.php
src/ScenarioBundle/Form/PedagogicalScenarioType.php
+6
-2
src/ScenarioBundle/Resources/views/formation/index.html.twig
src/ScenarioBundle/Resources/views/formation/index.html.twig
+1
-1
src/ScenarioBundle/Resources/views/pedagogicalscenario/formationmanagement.html.twig
...s/views/pedagogicalscenario/formationmanagement.html.twig
+4
-4
src/ScenarioBundle/Resources/views/pedagogicalscenario/show.html.twig
...Bundle/Resources/views/pedagogicalscenario/show.html.twig
+1
-1
src/ScenarisationProcessBundle/Controller/ScenarisationProcessController.php
...ocessBundle/Controller/ScenarisationProcessController.php
+3
-3
src/ScenarisationProcessBundle/Resources/views/scenarisationprocess/stagesEdit.html.twig
...Resources/views/scenarisationprocess/stagesEdit.html.twig
+1
-1
src/ScenarisationProcessBundle/Resources/views/scenarisationstage/processManagement.html.twig
...rces/views/scenarisationstage/processManagement.html.twig
+11
-0
src/ScenarisationProcessBundle/Resources/views/scenarisationstage/questionsEdit.html.twig
...esources/views/scenarisationstage/questionsEdit.html.twig
+1
-1
web/app_dev.php
web/app_dev.php
+1
-1
No files found.
src/ScenarioBundle/Controller/PedagogicalScenarioController.php
View file @
6a3d770e
...
...
@@ -103,7 +103,6 @@ class PedagogicalScenarioController extends Controller
// Une fois que la démarche de scénarisation d'un scénario pédagogique a été défini, on ne peut plus la modifier.
$editForm
->
remove
(
'scenarisationProcess'
);
$editForm
->
handleRequest
(
$request
);
if
(
$editForm
->
isSubmitted
()
&&
$editForm
->
isValid
())
...
...
src/ScenarioBundle/Entity/PedagogicalScenario.php
View file @
6a3d770e
...
...
@@ -199,10 +199,15 @@ class PedagogicalScenario
*
* @return PedagogicalScenario
*/
public
function
setProject
(
\
ScenarioBundle\Entity\Project
$project
)
/* Il faut mettre la valeur par défaut à 'null' pour que
le déliage du projet d'un scénario pédagogique fonctionne sinon symfony gueule */
public
function
setProject
(
\
ScenarioBundle\Entity\Project
$project
=
null
)
{
$this
->
project
=
$project
;
$project
->
addPedagogicalScenario
(
$this
);
// Lorsque la liste déroulante du formulaire laisse vide
if
(
$project
!=
null
)
$project
->
addPedagogicalScenario
(
$this
);
return
$this
;
}
...
...
src/ScenarioBundle/Form/PedagogicalScenarioType.php
View file @
6a3d770e
...
...
@@ -20,8 +20,12 @@ class PedagogicalScenarioType extends AbstractType
'label'
=>
'project'
,
'class'
=>
'ScenarioBundle:Project'
,
'choice_label'
=>
'shortname'
,
//'multiple' => true
'multiple'
=>
false
,
'expanded'
=>
false
,
'required'
=>
false
,
'empty_data'
=>
null
));
$builder
->
add
(
'shortname'
,
'text'
,
array
(
'label'
=>
'shortname'
));
$builder
->
add
(
'fullname'
,
'text'
,
array
(
'label'
=>
'fullname'
));
...
...
@@ -37,7 +41,7 @@ class PedagogicalScenarioType extends AbstractType
}
//'multiple' => true
));
$builder
->
add
(
'scenarisationProcess'
,
EntityType
::
class
,
array
(
'label'
=>
'scenarisationProcess'
,
'class'
=>
'ScenarisationProcessBundle:ScenarisationProcess'
,
...
...
src/ScenarioBundle/Resources/views/formation/index.html.twig
View file @
6a3d770e
...
...
@@ -26,7 +26,7 @@
<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
}
)
}}
"
>
GERER LES SCENARIO PEDAGOGIQUE
</a>
<a
href=
"
{{
path
(
'formation_pedagogical_scenario_management'
,
{
'id'
:
formation.id
,
'userRole'
:
currentRole
}
)
}}
"
>
Associer les scénarios pédagogiques
</a>
</li>
{%
endif
%}
</ul>
...
...
src/ScenarioBundle/Resources/views/pedagogicalscenario/formationmanagement.html.twig
View file @
6a3d770e
...
...
@@ -4,8 +4,8 @@
<h1>
Gestion des formations d'un scénario pédagogique
</h1>
Scénario Pédagogique courant :
{{
pedagogicalScenario.shortname
}}
<hr/>
<p>
Liste des formations déjà liées
</p>
{%
if
formationsAlreadyLinked
is
not
empty
%}
<p>
Liste des formations déjà liés
</p>
<table
class=
"table"
>
<thead>
<tr>
...
...
@@ -27,11 +27,11 @@
</table>
{%
else
%}
<p>
Le scénario pédagogique courant ne possède aucun formation
</p>
<p>
<i>
Le scénario pédagogique courant ne possède aucun formation
</i>
</p>
{%
endif
%}
{%
if
formationsAvailable
is
not
empty
%}
<p>
Liste des formations disponibles
</p>
{%
if
formationsAvailable
is
not
empty
%}
<table
class=
"table"
>
<thead>
<tr>
...
...
@@ -51,6 +51,6 @@
</tbody>
</table>
{%
else
%}
<p>
Aucune formation de disponible
</p>
<p>
<i>
Aucune formation disponible
</i>
</p>
{%
endif
%}
{%
endblock
%}
src/ScenarioBundle/Resources/views/pedagogicalscenario/show.html.twig
View file @
6a3d770e
...
...
@@ -15,7 +15,7 @@
</tr>
<tr>
<th>
{{
'referentLecturer'
|
trans
}}
</th>
<td>
{{
pedagogicalScenario.referent
Lecturer.firstname
}}
{{
pedagogicalScenario.referentLectur
er.lastname
}}
</td>
<td>
{{
pedagogicalScenario.referent
Teacher.firstname
}}
{{
pedagogicalScenario.referentTeach
er.lastname
}}
</td>
</tr>
<tr>
<th>
{{
'project'
|
trans
}}
</th>
...
...
src/ScenarisationProcessBundle/Controller/ScenarisationProcessController.php
View file @
6a3d770e
...
...
@@ -246,10 +246,10 @@ class ScenarisationProcessController extends Controller
$manager
->
flush
();
# Si on vient de l'étape on renvoie à l'étape et si on vient de la démarche on renvoie vers la démarche
//
if ($routeOrigin != 'add_scenarisation_stage_in_a_process')
if
(
$routeOrigin
!=
'add_scenarisation_stage_in_a_process'
)
return
$this
->
redirectToRoute
(
'scenarisation_process_stage_management'
,
array
(
'id'
=>
$scenarisationProcess
->
getId
()));
//
else
//return $this->redirectToRoute('scenarisation_stage_process_management
', array('id' => $scenarisationStage->getId()));
else
return
$this
->
redirectToRoute
(
'scenarisation_stage_associate_to_process
'
,
array
(
'id'
=>
$scenarisationStage
->
getId
()));
}
/**
...
...
src/ScenarisationProcessBundle/Resources/views/scenarisationprocess/stagesEdit.html.twig
View file @
6a3d770e
...
...
@@ -5,7 +5,7 @@
{# Le script qui change la position des étapes en Drag&Drop a besoin de connaître lID de la
démarche de scénarisation lors de lappel de la fonction en Ajax #}
var
scen_process_current_id
=
{{
scenarisationProcess.id
}}
;
var
urlAppelAjax
=
"
/txuleton/web/app_dev.php/es/engineer/scenarisation/process/
"
+
scen_process_current_id
+
"
/
"
;
var
urlAppelAjax
=
"
/txuleton/web/app_dev.php/es/
pedagogical-
engineer/scenarisation/process/
"
+
scen_process_current_id
+
"
/
"
;
</script>
<script
src=
"
{{
asset
(
'js/sort_drag_and_drop.js'
)
}}
"
></script>
{%
endblock
%}
...
...
src/ScenarisationProcessBundle/Resources/views/scenarisationstage/processManagement.html.twig
View file @
6a3d770e
...
...
@@ -14,10 +14,21 @@
<a
href=
"
{{
path
(
'scenarisation_process_stage_management'
,
{
'id'
:
process.id
}
)
}}
"
>
{{
process.title
}}
</a>
{# Je regarde si l'étapes de scénarisation courante est déjà dans la démarche #}
{%
set
stageAlreadyInProcess
=
false
%}
{%
for
currentScenarisationStage
in
process.scenarisationStageOrder
%}
{%
if
scenarisationStage
==
currentScenarisationStage.scenarisationStage
%}
{%
set
stageAlreadyInProcess
=
true
%}
{%
endif
%}
{%
endfor
%}
{%
if
stageAlreadyInProcess
==
false
%}
|
<a
href=
"
{{
path
(
'add_scenarisation_stage_in_a_process'
,
{
'scenarisationStage'
:
scenarisationStage.id
,
'scenarisationProcess'
:
process.id
}
)
~
'#'
~
process.id
}}
"
>
<i
class=
"fa fa-plus"
aria-hidden=
"true"
></i>
</a>
{%
endif
%}
</p>
{%
if
(
process.scenarisationStageOrder
)
is
not
empty
%}
<table
id=
"
{{
process.id
}}
"
class=
"table table-striped"
>
...
...
src/ScenarisationProcessBundle/Resources/views/scenarisationstage/questionsEdit.html.twig
View file @
6a3d770e
...
...
@@ -16,7 +16,7 @@
{# Le script qui change la position des étapes en Drag&Drop a besoin de connaître lID de la
démarche de scénarisation lors de lappel de la fonction en Ajax #}
var
scen_stage_current_id
=
{{
scenarisationStage.id
}}
;
var
urlAppelAjax
=
"
/txuleton/web/app_dev.php/
es/
engineer/scenarisation/stage/
"
+
scen_stage_current_id
+
"
/
"
;
var
urlAppelAjax
=
"
/txuleton/web/app_dev.php/
fr/pedagogical-
engineer/scenarisation/stage/
"
+
scen_stage_current_id
+
"
/
"
;
</script>
<script
src=
"
{{
asset
(
'js/sort_drag_and_drop.js'
)
}}
"
></script>
...
...
web/app_dev.php
View file @
6a3d770e
...
...
@@ -12,7 +12,7 @@ use Symfony\Component\Debug\Debug;
// Feel free to remove this, extend it, or make something more sophisticated.
if
(
isset
(
$_SERVER
[
'HTTP_CLIENT_IP'
])
||
isset
(
$_SERVER
[
'HTTP_X_FORWARDED_FOR'
])
||
!
(
in_array
(
@
$_SERVER
[
'REMOTE_ADDR'
],
array
(
'127.0.0.1'
,
'fe80::1'
,
'::1'
))
||
php_sapi_name
()
===
'cli-server'
)
||
!
(
in_array
(
@
$_SERVER
[
'REMOTE_ADDR'
],
array
(
'127.0.0.1'
,
'
10.64.64.6'
,
'
fe80::1'
,
'::1'
))
||
php_sapi_name
()
===
'cli-server'
)
)
{
header
(
'HTTP/1.0 403 Forbidden'
);
exit
(
'You are not allowed to access this file. Check '
.
basename
(
__FILE__
)
.
' for more information.'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment