add notices

This commit is contained in:
Simon Vieille 2022-10-02 23:21:59 +02:00
parent 4a08ebde86
commit cb57ee0c26
Signed by: deblan
GPG key ID: 579388D585F70417
2 changed files with 6 additions and 4 deletions

View file

@ -37,6 +37,8 @@ class ContactController extends PageController
'success', 'success',
'Votre message a bien été envoyé.' 'Votre message a bien été envoyé.'
); );
} else {
$this->addFlash('error', 'Le formulaire n\'est pas valide.');
} }
} }

View file

@ -13,14 +13,14 @@
</a> </a>
</h2> </h2>
<ul class="md:flex md:gap-3 pl-0"> <ul class="pl-0">
<li class="md:pl-0 mt-0 inline-block"> <li class="mt-0 inline-block">
<time datetime="{{ post.publishedAt|date("Y-m-d") }}" title="{{ post.publishedAt|date("r") }}"> <time datetime="{{ post.publishedAt|date("Y-m-d") }}" title="{{ post.publishedAt|date("r") }}">
{{- 'Le ' ~ post.publishedAt|date("d/m/Y à H\\hi") -}} {{- 'Le ' ~ post.publishedAt|date("d/m/Y à H\\hi") -}}
</time> </time>
</li> </li>
{% for category in post.categories %} {% for category in post.categories %}
<li class="md:pl-0 mt-0 inline-block"> <li class="mt-0 inline-block">
<a href="{{ safe_path('blog_menu_category', {category: category.id, slug: category.slug, _domain: _domain}) }}"> <a href="{{ safe_path('blog_menu_category', {category: category.id, slug: category.slug, _domain: _domain}) }}">
{{- category.title -}} {{- category.title -}}
</a> </a>
@ -28,7 +28,7 @@
{% endfor %} {% endfor %}
{% for tag in post.tags %} {% for tag in post.tags %}
<li class="md:pl-0 mt-0 inline-block"> <li class="mt-0 inline-block">
<a href="{{ safe_path('blog_menu_search', {tag: tag.label, _domain: _domain}) }}"> <a href="{{ safe_path('blog_menu_search', {tag: tag.label, _domain: _domain}) }}">
{{- '#' ~ tag.label -}} {{- '#' ~ tag.label -}}
</a> </a>