From 3d693511d0aa8cb1f3120b0888b66cfd4f41f770 Mon Sep 17 00:00:00 2001 From: allavenavr Date: Thu, 5 Dec 2024 17:55:02 +0100 Subject: [PATCH] twig oscar --- templates/degree/edit.html.twig | 35 +++++++++++--- templates/degree/index.html.twig | 78 ++++++++++++++++++++----------- templates/degree/new.html.twig | 31 +++++++++++-- templates/degree/show.html.twig | 52 +++++++++++++-------- templates/faq/edit.html.twig | 37 +++++++++++++-- templates/faq/index.html.twig | 79 +++++++++++++++++++------------- templates/faq/new.html.twig | 37 +++++++++++++-- templates/faq/show.html.twig | 64 ++++++++++++++++---------- templates/skill/edit.html.twig | 45 ++++++++++++++++-- templates/skill/index.html.twig | 73 ++++++++++++++++++----------- templates/skill/new.html.twig | 31 +++++++++++-- templates/skill/show.html.twig | 42 ++++++++++------- 12 files changed, 428 insertions(+), 176 deletions(-) diff --git a/templates/degree/edit.html.twig b/templates/degree/edit.html.twig index 73e9f09..c7e6c1a 100644 --- a/templates/degree/edit.html.twig +++ b/templates/degree/edit.html.twig @@ -1,13 +1,36 @@ {% extends 'base.html.twig' %} -{% block title %}Edit Degree{% endblock %} +{% block title %}Modifier un Diplôme{% endblock %} {% block body %} -

Edit Degree

+
+

Modifier le Diplôme

- {{ include('degree/_form.html.twig', {'button_label': 'Update'}) }} +
+

Modifier les informations du diplôme

- back to list + {{ form_start(form) }} +
+ +
+ {{ form_widget(form.label, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }} +
+
- {{ include('degree/_delete_form.html.twig') }} -{% endblock %} +
+ +
+ {{ form_end(form) }} + + +
+ + Retour à la liste des diplômes + + + {{ include('degree/_delete_form.html.twig') }} +
+
+{% endblock %} \ No newline at end of file diff --git a/templates/degree/index.html.twig b/templates/degree/index.html.twig index 67172f7..670e9c5 100644 --- a/templates/degree/index.html.twig +++ b/templates/degree/index.html.twig @@ -1,35 +1,57 @@ {% extends 'base.html.twig' %} -{% block title %}Degree index{% endblock %} +{% block title %}List of Degrees{% endblock %} {% block body %} -

Degree index

+
+

Liste des Diplômes

- - - - - - - - - - {% for degree in degrees %} - - - - - - {% else %} - - - - {% endfor %} - -
IdLabelactions
{{ degree.id }}{{ degree.label }} - show - edit -
no records found
+ +
+ + + + + + + + + + {% for degree in degrees %} + + + + + + {% endfor %} + +
IDLabelActions
{{ degree.id }}{{ degree.label }} + + + Voir + - Create new + + + Modifier + + + +
+ + + +
+
+
+ + + +
{% endblock %} diff --git a/templates/degree/new.html.twig b/templates/degree/new.html.twig index 875707f..1dbd404 100644 --- a/templates/degree/new.html.twig +++ b/templates/degree/new.html.twig @@ -1,11 +1,34 @@ {% extends 'base.html.twig' %} -{% block title %}New Degree{% endblock %} +{% block title %}Créer un Nouveau Diplôme{% endblock %} {% block body %} -

Create new Degree

+
+

Créer un Nouveau Diplôme

- {{ include('degree/_form.html.twig') }} +
+ {{ form_start(form) }} - back to list +
+ +
+ {{ form_widget(form.label, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }} +
+
+ +
+ +
+ + {{ form_end(form) }} +
+ + +
{% endblock %} diff --git a/templates/degree/show.html.twig b/templates/degree/show.html.twig index fd86e8d..d48dd3c 100644 --- a/templates/degree/show.html.twig +++ b/templates/degree/show.html.twig @@ -1,26 +1,42 @@ {% extends 'base.html.twig' %} -{% block title %}Degree{% endblock %} +{% block title %}Détail du Diplôme{% endblock %} {% block body %} -

Degree

+
+

Détail du Diplôme

- - - - - - - - - - - -
Id{{ degree.id }}
Label{{ degree.label }}
+
+ + + + + + + + + + + +
ID{{ degree.id }}
Label{{ degree.label }}
+
- back to list +
+ + Retour à la liste des diplômes + - edit - - {{ include('degree/_delete_form.html.twig') }} + +
+
{% endblock %} diff --git a/templates/faq/edit.html.twig b/templates/faq/edit.html.twig index e80b5a3..ad26bd4 100644 --- a/templates/faq/edit.html.twig +++ b/templates/faq/edit.html.twig @@ -1,13 +1,40 @@ {% extends 'base.html.twig' %} -{% block title %}Edit FAQ{% endblock %} +{% block title %}Modifier la FAQ{% endblock %} {% block body %} -

Edit FAQ

+
+

Modifier la FAQ

- {{ include('faq/_form.html.twig', {'button_label': 'Update'}) }} +
+ {{ form_start(form) }} - back to list +
+ +
+ {{ form_widget(form.question, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }} +
+
- {{ include('faq/_delete_form.html.twig') }} +
+ +
+ {{ form_widget(form.answer, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }} +
+
+ +
+ +
+ {{ form_end(form) }} +
+ + +
{% endblock %} diff --git a/templates/faq/index.html.twig b/templates/faq/index.html.twig index 7d6b0cb..46efd88 100644 --- a/templates/faq/index.html.twig +++ b/templates/faq/index.html.twig @@ -1,39 +1,54 @@ {% extends 'base.html.twig' %} -{% block title %}FAQ index{% endblock %} +{% block title %}Liste des FAQs{% endblock %} {% block body %} -

FAQ index

+
+

Liste des FAQs

- - - - - - - - - - - - {% for faq in faqs %} - - - - - - - - {% else %} - - - - {% endfor %} - -
IdQuestionAnswerUpdateDateactions
{{ faq.id }}{{ faq.question }}{{ faq.answer }}{{ faq.updateDate ? faq.updateDate|date('Y-m-d') : '' }} - show - edit -
no records found
+
+ + + + + + + + + + + {% for faq in faqs %} + + + + + + + {% endfor %} + +
IDQuestionRéponseActions
{{ faq.id }}{{ faq.question }}{{ faq.answer }} + + Voir + - Create new + + Modifier + + +
+ + + +
+
+
+ + +
{% endblock %} diff --git a/templates/faq/new.html.twig b/templates/faq/new.html.twig index 716a893..4f7144c 100644 --- a/templates/faq/new.html.twig +++ b/templates/faq/new.html.twig @@ -1,11 +1,40 @@ {% extends 'base.html.twig' %} -{% block title %}New FAQ{% endblock %} +{% block title %}Créer une FAQ{% endblock %} {% block body %} -

Create new FAQ

+
+

Créer une nouvelle FAQ

- {{ include('faq/_form.html.twig') }} +
+ {{ form_start(form) }} - back to list +
+ +
+ {{ form_widget(form.question, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }} +
+
+ +
+ +
+ {{ form_widget(form.answer, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }} +
+
+ +
+ +
+ {{ form_end(form) }} +
+ + +
{% endblock %} diff --git a/templates/faq/show.html.twig b/templates/faq/show.html.twig index bafb197..d6ccc55 100644 --- a/templates/faq/show.html.twig +++ b/templates/faq/show.html.twig @@ -1,34 +1,48 @@ {% extends 'base.html.twig' %} -{% block title %}FAQ{% endblock %} +{% block title %}Détail de la FAQ{% endblock %} {% block body %} -

FAQ

+
+

Détail de la FAQ

- - - - - - - - - - - - - - - - - - - -
Id{{ faq.id }}
Question{{ faq.question }}
Answer{{ faq.answer }}
UpdateDate{{ faq.updateDate ? faq.updateDate|date('Y-m-d') : '' }}
+
+ + + + + + + + + + + + + + + +
ID{{ faq.id }}
Question{{ faq.question }}
Réponse{{ faq.answer }}
+
- back to list + - {{ include('faq/_delete_form.html.twig') }} +
+
+ + + +
+
+
{% endblock %} diff --git a/templates/skill/edit.html.twig b/templates/skill/edit.html.twig index 16d97d1..9a8b5d9 100644 --- a/templates/skill/edit.html.twig +++ b/templates/skill/edit.html.twig @@ -1,13 +1,48 @@ {% extends 'base.html.twig' %} -{% block title %}Edit Skill{% endblock %} +{% block title %}Modifier la compétence{% endblock %} {% block body %} -

Edit Skill

+
+

Modifier la compétence

- {{ include('skill/_form.html.twig', {'button_label': 'Update'}) }} +
+

Modifier les informations de la compétence

- back to list + {{ form_start(form) }} +
+ +
+ {{ form_widget(form.label, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }} +
+
- {{ include('skill/_delete_form.html.twig') }} +
+ +
+ {{ form_end(form) }} +
+ + +
{% endblock %} diff --git a/templates/skill/index.html.twig b/templates/skill/index.html.twig index 658e606..e5e911f 100644 --- a/templates/skill/index.html.twig +++ b/templates/skill/index.html.twig @@ -1,35 +1,52 @@ {% extends 'base.html.twig' %} -{% block title %}Skill index{% endblock %} +{% block title %}Liste des Compétences{% endblock %} {% block body %} -

Skill index

+
+

Liste des Compétences

- - - - - - - - - - {% for skill in skills %} - - - - - - {% else %} - - - - {% endfor %} - -
IdLabelactions
{{ skill.id }}{{ skill.label }} - show - edit -
no records found
+
+ + + + + + + + + + {% for skill in skills %} + + + + + + {% endfor %} + +
IDLabelActions
{{ skill.id }}{{ skill.label }} + + Voir + - Create new + + Modifier + + +
+ + + +
+
+
+ + +
{% endblock %} diff --git a/templates/skill/new.html.twig b/templates/skill/new.html.twig index 2ff534a..c4938c9 100644 --- a/templates/skill/new.html.twig +++ b/templates/skill/new.html.twig @@ -1,11 +1,34 @@ {% extends 'base.html.twig' %} -{% block title %}New Skill{% endblock %} +{% block title %}Créer une Nouvelle Compétence{% endblock %} {% block body %} -

Create new Skill

+
+

Créer une Nouvelle Compétence

- {{ include('skill/_form.html.twig') }} +
+ {{ form_start(form) }} - back to list +
+ +
+ {{ form_widget(form.label, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }} +
+
+ +
+ +
+ + {{ form_end(form) }} +
+ + +
{% endblock %} diff --git a/templates/skill/show.html.twig b/templates/skill/show.html.twig index fa12f07..c4938c9 100644 --- a/templates/skill/show.html.twig +++ b/templates/skill/show.html.twig @@ -1,26 +1,34 @@ {% extends 'base.html.twig' %} -{% block title %}Skill{% endblock %} +{% block title %}Créer une Nouvelle Compétence{% endblock %} {% block body %} -

Skill

+
+

Créer une Nouvelle Compétence

- - - - - - - - - - - -
Id{{ skill.id }}
Label{{ skill.label }}
+
+ {{ form_start(form) }} - back to list +
+ +
+ {{ form_widget(form.label, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }} +
+
- edit +
+ +
- {{ include('skill/_delete_form.html.twig') }} + {{ form_end(form) }} +
+ + +
{% endblock %}