Commit 2fa1a304 authored by Patrick Etcheverry's avatar Patrick Etcheverry

Quand une liste est vide, dire qu'elle est vide...

parent 23bcb9ab
......@@ -8,6 +8,7 @@ pedagogicalScenario:
info: "Pedagogical scenario information"
design: "Design pedagogical scenario"
teachersManagement: ""
empty: ""
project:
new: "Add a new project"
......@@ -15,6 +16,7 @@ project:
edit: "Project edition"
add: "Project creation"
info: "Project information"
empty: ""
trainingCourse:
new: "Add a new training course"
......@@ -24,3 +26,4 @@ trainingCourse:
info: "Training course information"
management: "Associated training courses"
link: "Link to training courses"
empty: ""
......@@ -8,6 +8,7 @@ pedagogicalScenario:
info: "Informaciones del escenario pedagógico"
design: "Diseñar escenario pedagógico"
teachersManagement: ""
empty: ""
project:
new: "Crear un proyecto"
......@@ -15,6 +16,7 @@ project:
edit: "Edicion de un proyecto"
add: "Creación de un proyecto"
info: "Informaciones del proyecto"
empty: ""
trainingCourse:
new: "Crear una formación"
......@@ -24,3 +26,4 @@ trainingCourse:
info: "Informaciones de la formación"
management: "Formaciones asociadas"
link: "Asociar formaciones"
empty: ""
......@@ -8,6 +8,7 @@ pedagogicalScenario:
info: "Informations du scénario pédagogique"
design: "Concevoir scénario pédagogique"
teachersManagement: "Gestion des enseignants concepteurs"
empty: "Aucun scénario pédagogique"
project:
new: "Ajouter un nouveau projet"
......@@ -15,6 +16,7 @@ project:
edit: "Editer un projet"
add: "Ajout d'un projet"
info: "Informations du projet"
empty: "Aucun projet"
trainingCourse:
new: "Ajouter une nouvelle formation"
......@@ -24,3 +26,4 @@ trainingCourse:
info: "Informations de la formation"
management: "Formations associées"
link: "Associer formations"
empty: "Aucune formation"
......@@ -4,6 +4,9 @@
{% block viewSubTitle %} {% endblock %}
{% block body %}
{% if pedagogicalScenarios is empty %}
<h4 class="italic"> &nbsp; &nbsp; &nbsp; <i>{{'pedagogicalScenario.empty'|trans}}</i></h4>
{% else %}
<table class="table">
<thead>
<tr>
......@@ -13,38 +16,39 @@
</tr>
</thead>
<tbody>
{% for pedagogicalScenario in pedagogicalScenarios %}
<tr>
<td>{{ pedagogicalScenario.shortname }}</td>
<td>{{ pedagogicalScenario.fullname }}</td>
<td>
<a title="{{ 'pedagogicalScenario.show'|trans }}" href="{{ path('pedagogicalscenario_show', { 'userRole': currentRole, 'id': pedagogicalScenario.id }) }}">
<i class="fa fa-eye" aria-hidden="true"></i>
</a>
&nbsp;
<a title="{{ 'pedagogicalScenario.design'|trans }}" href="{{ path('pedagogicalscenario_design', { 'userRole': currentRole, 'id': pedagogicalScenario.id }) }}">
<i class="fa fa-tasks" aria-hidden="true"></i>
</a>
&nbsp;
{% if currentRole == "pedagogical-engineer" %}
<a title="{{ 'pedagogicalScenario.editVerb'|trans }}" href="{{ path('pedagogicalscenario_edit', { 'userRole': "pedagogical-engineer", 'id': pedagogicalScenario.id }) }}">
<i class="fa fa-pencil" aria-hidden="true"></i>
</a>
&nbsp;
<a title="{{'trainingCourse.link'|trans}}" href="{{ path('pedagogicalscenario_training_course_management', { 'id': pedagogicalScenario.id, 'userRole': currentRole } ) }}">
<i class="fa fa-graduation-cap" aria-hidden="true"></i>
{% for pedagogicalScenario in pedagogicalScenarios %}
<tr>
<td>{{ pedagogicalScenario.shortname }}</td>
<td>{{ pedagogicalScenario.fullname }}</td>
<td>
<a title="{{ 'pedagogicalScenario.show'|trans }}" href="{{ path('pedagogicalscenario_show', { 'userRole': currentRole, 'id': pedagogicalScenario.id }) }}">
<i class="fa fa-eye" aria-hidden="true"></i>
</a>
&nbsp;
<a title="{{'user.link'|trans}}" href="{{ path('pedagogicalscenario_define_teachers', { 'id': pedagogicalScenario.id, 'userRole': currentRole } ) }}">
<i class="fa fa-users" aria-hidden="true"></i>
<a title="{{ 'pedagogicalScenario.design'|trans }}" href="{{ path('pedagogicalscenario_design', { 'userRole': currentRole, 'id': pedagogicalScenario.id }) }}">
<i class="fa fa-tasks" aria-hidden="true"></i>
</a>
&nbsp;
{% endif %}
{% if currentRole == "pedagogical-engineer" %}
<a title="{{ 'pedagogicalScenario.editVerb'|trans }}" href="{{ path('pedagogicalscenario_edit', { 'userRole': "pedagogical-engineer", 'id': pedagogicalScenario.id }) }}">
<i class="fa fa-pencil" aria-hidden="true"></i>
</a>
&nbsp;
<a title="{{'trainingCourse.link'|trans}}" href="{{ path('pedagogicalscenario_training_course_management', { 'id': pedagogicalScenario.id, 'userRole': currentRole } ) }}">
<i class="fa fa-graduation-cap" aria-hidden="true"></i>
</a>
&nbsp;
<a title="{{'user.link'|trans}}" href="{{ path('pedagogicalscenario_define_teachers', { 'id': pedagogicalScenario.id, 'userRole': currentRole } ) }}">
<i class="fa fa-users" aria-hidden="true"></i>
</a>
&nbsp;
{% endif %}
</td>
</tr>
{% endfor %}
</td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
......
......@@ -3,6 +3,9 @@
{% block viewTitle %}{{ 'project.list'|trans }}{% endblock %}
{% block body %}
{% if projects is empty %}
<h4 class="italic"> &nbsp; &nbsp; &nbsp; <i>{{'project.empty'|trans}}</i></h4>
{% else %}
<table class="table">
<thead>
<tr>
......@@ -39,7 +42,7 @@
{% endfor %}
</tbody>
</table>
{% endif %}
<div style="float: right">
<h4>
{# Bouton Ajouter #}
......
......@@ -4,6 +4,9 @@
{% block viewSubTitle %}{% endblock %}
{% block body %}
{% if trainingCourses is empty %}
<h4 class="italic"> &nbsp; &nbsp; &nbsp; <i>{{'trainingCourse.empty'|trans}}</i></h4>
{% else %}
<table class="table">
<thead>
<tr>
......@@ -40,6 +43,7 @@
{% endfor %}
</tbody>
</table>
{% endif %}
{% if currentRole == "pedagogical-engineer" %}
<div style="float: right">
......
......@@ -470,7 +470,7 @@ class ScenarisationStageController extends Controller
$breadcrumbs->addRouteItem($scenarisationStage->getTitle(), "scenarisation_stage_show", [
'id' => $scenarisationStage->getId()
]);
$breadcrumbs->addItem("scenarisationStage.processManagement");
$breadcrumbs->addItem("scenarisationStage.associateToAprocess");
break;
case "questions_management":
......@@ -478,7 +478,7 @@ class ScenarisationStageController extends Controller
$breadcrumbs->addRouteItem($scenarisationStage->getTitle(), "scenarisation_stage_show", [
'id' => $scenarisationStage->getId()
]);
$breadcrumbs->addItem("scenarisationStage.questionManagement");
$breadcrumbs->addItem("scenarisationStage.questionsManagement");
break;
}
}
......
......@@ -10,6 +10,7 @@ scenarisationProcess:
stagesManagement: "Stages management"
stagesAvailable: "Available scenarisation stages"
stagesLinked: "Linked scenarisation stages"
empty: ""
scenarisationStage:
new: "Create a new scenarisation stage"
......@@ -23,7 +24,7 @@ scenarisationStage:
otherQuestions: "Other questions available"
associateToAprocess: "Associate to a process"
processesManagement: "Associate a stage to a process"
empty: ""
question:
new: "Create a new question"
......@@ -31,3 +32,4 @@ question:
edit: "Question edit"
add: "Question creation"
info: "Question informations"
empty: ""
......@@ -10,7 +10,7 @@ scenarisationProcess:
stagesManagement: "Asociar etapas"
stagesAvailable: "Etapas de escenarización disponibles"
stagesLinked: "Etapas de escenarización asociadas"
empty: ""
scenarisationStage:
new: ""
......@@ -24,6 +24,7 @@ scenarisationStage:
otherQuestions: ""
associateToAprocess: ""
processesManagement: ""
empty: ""
question:
new: ""
......@@ -31,3 +32,4 @@ question:
edit: ""
add: ""
info: ""
empty: ""
......@@ -11,7 +11,7 @@ scenarisationProcess:
stagesManagement: "Associer des étapes"
stagesAvailable: "Etapes de scénarisation disponibles"
stagesLinked: "Etapes de scénarisation associées"
empty: "Aucune démarche de scénarisation"
scenarisationStage:
new: "Ajouter une étape de scénarisation"
......@@ -25,6 +25,7 @@ scenarisationStage:
otherQuestions: "Autres questions disponibles"
associateToAprocess: "Associer à une démarche"
processesManagement: "Associer une étape à une démarche"
empty: "Aucune étape de scénarisation"
question:
new: "Ajouter une question"
......@@ -32,3 +33,4 @@ question:
edit: "Modification d'une question"
add: "Ajout d'une question"
info: "Informations d'une question"
empty: "Aucune question"
......@@ -14,6 +14,10 @@
{% block viewTitle %}{{ 'question.list'|trans }}{% endblock %}
{% block body %}
{% if questions is empty %}
<h4 class="italic"> &nbsp; &nbsp; &nbsp; <i>{{'question.empty'|trans}}</i></h4>
{% else %}
<table class="table">
<thead>
<tr>
......@@ -47,7 +51,7 @@
<div class="navigation text-center">
{{ knp_pagination_render(questions) }}
</div>
{% endif %}
<div style="float: right">
<h4>
{# Bouton Ajouter #}
......@@ -55,4 +59,5 @@
<a href="{{ path('question_new') }}">{{"question.new"|trans}}</a>
</h4>
</div>
{% endblock %}
......@@ -3,6 +3,10 @@
{% block viewTitle %}{{ 'scenarisationProcess.list'|trans }}{% endblock %}
{% block body %}
{% if scenarisationProcesses is empty %}
<h4 class="italic"> &nbsp; &nbsp; &nbsp; <i>{{'scenarisationProcess.empty'|trans}}</i></h4>
{% else %}
<table class="table">
<thead>
<tr>
......@@ -39,7 +43,7 @@
{% endfor %}
</tbody>
</table>
{% endif %}
<div style="float: right">
<h4>
{# Bouton Ajouter #}
......
{% extends 'base.html.twig' %}
{% block body %}
<div class="panel-heading">
<h4>
<b>{{'scenarisationStage.edit'|trans}}</b>
</h4>
</div>
<div class="panel-body">
{% block viewTitle %} {{'scenarisationStage.edit'|trans}} {% endblock %}
{% block body %}
<br/>
{{ form_start(edit_form) }}
......@@ -32,6 +27,4 @@
</h4>
</div>
</div>
</div>
{% endblock %}
......@@ -3,6 +3,9 @@
{% block viewTitle %}{{ 'scenarisationStage.list'|trans }}{% endblock %}
{% block body %}
{% if scenarisationStages is empty %}
<h4 class="italic"> &nbsp; &nbsp; &nbsp; <i>{{'scenarisationStage.empty'|trans}}</i></h4>
{% else %}
<table class="table">
<thead>
<tr>
......@@ -43,7 +46,7 @@
{% endfor %}
</tbody>
</table>
{% endif %}
<div style="float: right">
<h4>
{# Bouton Ajouter #}
......
{% extends 'base.html.twig' %}
{% block body %}
<div class="panel-heading">
<h4>
<b>{{'scenarisationStage.add'|trans}}</b>
</h4>
</div>
<div class="panel-body">
<br/>
{% block viewTitle %} {{'scenarisationStage.add'|trans}} {% endblock %}
<div class="formulaire">
{% block body %}
<br/>
{{ form_start(form) }}
{{ form_widget(form) }}
<div class="formulaire">
<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>
{{ form_start(form) }}
{{ form_widget(form) }}
</div>
<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>
{% endblock %}
......@@ -2,16 +2,10 @@
{# On a besoin de stocker le numéro de la page courante pour pouvoir revenir dessus après ajout dans une démarche #}
{% set currentPage = app.request.query.get('page') %}
{% block viewTitle %} {{ 'scenarisationStage.processesManagement'|trans }} {% endblock %}
{% block viewSubTitle %} {{ scenarisationStage.title }} {% endblock %}
{% block body %}
<div class="panel-heading">
<h4>
<b>{{ 'scenarisationStage.processesManagement'|trans }}</b>
</h4>
<h6>{{ scenarisationStage.title }}</h6>
</div>
<div class="panel-body">
{# Si l'application contient des démarches de scénarisation #}
{% if processes is not empty %}
{# On parcourt la liste des démarche #}
......@@ -60,6 +54,4 @@
{% else %}
<p> <i>Aucune démarche de scénarisation trouvée.</i> </p>
{% endif %}
</div>
{% endblock %}
......@@ -3,6 +3,9 @@
{# The language of the questions is choosen with the current locale #}
{% set locale = app.request.locale %}
{% block viewTitle %} {{ 'scenarisationStage.questionsEdit'|trans }} {% endblock %}
{% block viewSubTitle %} ETAPE COURANTE : {{ scenarisationStage.title }} {% endblock %}
{% if locale == 'fr' %}
{% set localeWording = 'frWording' %}
{% elseif locale == 'en' %}
......@@ -27,16 +30,6 @@
{% endblock %}
{% block body %}
<div class="panel-heading">
<h4>
<b>{{ 'scenarisationStage.questionsEdit'|trans }}</b>
</h4>
<h6>ETAPE COURANTE :
{{ scenarisationStage.title }}</h6>
</div>
<div class="panel-body">
<br/>
<p>LISTE DES QUESTIONS CONTENUES DANS L'ETAPE :</p>
......@@ -98,6 +91,4 @@
{% else %}
<p>{{ 'scenarisationStage.noQuestion'|trans }}</p>
{% endif %}
</div>
{% endblock %}
{% extends 'base.html.twig' %}
{% block body %}
<div class="panel-heading">
<h4>
<b>{{ 'scenarisationStage.info'|trans }}</b>
</h4>
</div>
<div class="panel-body">
{% block viewTitle %} {{'scenarisationStage.info'|trans}} {% endblock %}
{% block body %}
<br/>
<div class="formulaire">
<table class="table table-bordered">
......@@ -64,5 +58,4 @@
</div>
</div>
</div>
{% endblock %}
......@@ -5,3 +5,4 @@ user:
add: "User creation"
info: "User information"
link: "Link teachers"
empty: ""
......@@ -5,3 +5,4 @@ user:
add: "Creación de un usuario"
info: "Informationes del usuario"
link: "Asociar profesores"
empty: ""
......@@ -5,3 +5,4 @@ user:
add: "Ajout d'un utilisateur"
info: "Informations de l'utilisateur"
link: "Associer enseignants"
empty: "Aucun utilisateur"
......@@ -4,6 +4,9 @@
{% block viewSubTitle %}{% endblock %}
{% block body %}
{% if users is empty %}
<h4 class="italic"> &nbsp; &nbsp; &nbsp; <i>{{'users.empty'|trans}}</i></h4>
{% else %}
<br/>
<table class="table">
<thead>
......@@ -42,7 +45,7 @@
{% endfor %}
</tbody>
</table>
{% endif %}
<div style="float: right">
<h4>
{# Bouton Ajouter #}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment