Compare commits

...

2 Commits

Author SHA1 Message Date
52933658cf - Ajout de la gestion d'images 2025-01-29 11:45:55 +01:00
173503e34a - Message d'erreur dans l'inscription 2025-01-29 11:34:46 +01:00
2 changed files with 9 additions and 1 deletions

View File

@ -11,7 +11,10 @@
<div class="border rounded-xl w-1/2 py-2 flex flex-col justify-center mt-5"> <div class="border rounded-xl w-1/2 py-2 flex flex-col justify-center mt-5">
<h1 class="font-bold p-2 text-2xl ">{{ book.volumeInfo.title }}</h1> <h1 class="font-bold p-2 text-2xl ">{{ book.volumeInfo.title }}</h1>
<img src="https://img.freepik.com/vecteurs-libre/vecteur-modele-cadre-courbe-bleu-ceruleen_53876-136094.jpg" class="p-2" style="width: 20%" height="20px"> {% if book.volumeInfo.imageLinks is defined and book.volumeInfo.imageLinks.smallThumbnail is defined %}
<img src="{{ book.volumeInfo.imageLinks.smallThumbnail }}" class="p-2" style="width: 20%" height="20px">
{% endif %}
</div> </div>
</div> </div>

View File

@ -67,6 +67,11 @@
{% endfor %} {% endfor %}
{{ form_end(form) }} {{ form_end(form) }}
{% if error %}
<div class="text-red-500 text-sm mt-2">
{{ error.messageKey|trans(error.messageData, 'security') }}
</div>
{% endif %}
</div> </div>
</div> </div>
{% endblock %} {% endblock %}