From 3cf9ab3bed61c124532b02fd8ac780b4a43a58f8 Mon Sep 17 00:00:00 2001 From: bourgoino Date: Thu, 5 Dec 2024 16:53:20 +0100 Subject: [PATCH] skillzzz --- templates/degree/new.html.twig | 31 ++++++++++++-- templates/skill/edit.html.twig | 45 +++++++++++++++++--- templates/skill/index.html.twig | 73 ++++++++++++++++++++------------- templates/skill/new.html.twig | 31 ++++++++++++-- templates/skill/show.html.twig | 52 +++++++++++++++-------- 5 files changed, 174 insertions(+), 58 deletions(-) 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/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..4303f90 100644 --- a/templates/skill/show.html.twig +++ b/templates/skill/show.html.twig @@ -1,26 +1,44 @@ {% extends 'base.html.twig' %} -{% block title %}Skill{% endblock %} +{% block title %}Détail de la compétence{% endblock %} {% block body %} -

Skill

+
+

Détail de la compétence

- - - - - - - - - - - -
Id{{ skill.id }}
Label{{ skill.label }}
+
+ + + + + + + + + + + +
ID{{ skill.id }}
Label{{ skill.label }}
+
- back to list +
+ + Retour à la liste des compétences + - edit +
+ + Modifier cette compétence + - {{ include('skill/_delete_form.html.twig') }} +
+ + + +
+
+
+
{% endblock %}