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) }} +
+ +
+ + Retour à la liste des FAQs + +
+
{% 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 + + +
+ + + +
+
+
+ +
+ + Ajouter une FAQ + +
+
{% 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) }} +
+ +
+ + Retour à la liste des FAQs + +
+
{% 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 +
+ + Retour à la liste des FAQs + - edit + + Modifier cette FAQ + +
- {{ include('faq/_delete_form.html.twig') }} +
+
+ + + +
+
+
{% endblock %}