Ajout d'un bouton annuler quand on modifie un événement

Fix #62
This commit is contained in:
Jean-Marie Favreau 2023-12-17 16:38:26 +01:00
parent bb8d26d04e
commit fdec735b44

View File

@ -22,7 +22,10 @@
<form method="post">{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Enregistrer">
<div class="grid">
<a href="{% if request.META.HTTP_REFERER %}{{ request.META.HTTP_REFERER }}{% else %}{{ object.get_absolute_url }}{% endif %}" role="button" class="secondary">Annuler</a>
<input type="submit" value="Enregistrer">
</div>
</form>
{% endblock %}