{% extends 'base.html.twig' %} {% block title %}SARAH BESSIERE - KINÉSIOLOGUE - TÉMOGNAGES{% endblock %} {% block style %} {{ encore_entry_link_tags('app') }} {% endblock %} {% block body %}

Témoignages

{{ include('_partials/_flash_message.html.twig') }} {% if comments | length > 0%}
{% for comment in comments %}

{{ comment.firstName }} {{ comment.lastName }}

Posté le {{ comment.createdAt | date('d/m/Y') }}

{{ comment.content }}

{% endfor %}
{% else %}

Aucun avis pour le moment. Soyez le premier à ajouter un avis.

{% endif %}

Laisser un avis

{{ form_start(form) }}
{{ form_label(form.lastName, 'Nom') }} {{ form_widget(form.lastName, { 'attr': { 'class': 'block w-full px-4 py-2 mt-2 text-gray-700 bg-white border-2 border-gray-200 focus:bg-grey-100 focus:border-copper-600' } }) }} {{ form_errors(form.lastName) }}
{{ form_label(form.firstName, 'Prénom') }} {{ form_widget(form.firstName, { 'attr': { 'class': 'block w-full px-4 py-2 mt-2 text-gray-700 bg-white border-2 border-gray-200 focus:bg-grey-100 focus:border-copper-600' } }) }} {{ form_errors(form.firstName) }}
{{ form_label(form.content, 'Votre avis') }} (Nombre de caractères restants : 250) {{ form_widget(form.content, { 'attr': { 'class': 'block w-full px-4 py-2 mt-2 text-gray-700 bg-white border-2 border-gray-200 focus:bg-grey-100 focus:border-copper-600', 'rows': '5', 'cols': '50' } }) }} {{ form_errors(form.content) }}
{{ form_row(form.submit,{'label': 'Soumettre', 'attr': { 'class': 'block w-32 px-4 py-2 mt-2 text-copper-100 bg-copper-600 hover:bg-copper-800 border-2 border-gray-200 focus:bg-grey-100 focus:border-copper-600', 'value': 'Envoyer' }} ) }}
{{ form_end(form) }}
{% endblock %}