kadenios/shared/templates/forms/modal-form.html

36 lines
1.1 KiB
HTML
Raw Normal View History

{% load i18n %}
<div class="modal" id="modal-{{ modal_id }}">
2021-08-21 22:58:01 +02:00
<div class="modal-background" data-closes="modal-{{ modal_id }}"></div>
<div class="modal-card">
<form method="post" action="{{ post_url }}" data-modal="modal-{{ modal_id }}">
{% csrf_token %}
<header class="modal-card-head">
<p class="modal-card-title">{{ modal_title }}</p>
2021-08-21 22:58:01 +02:00
<a class="delete" aria-label="close" data-closes="modal-{{ modal_id }}"></a>
</header>
<section class="modal-card-body">
{% include "forms/form.html" %}
</section>
<footer class="modal-card-foot">
<button class="button is-fullwidth is-outlined is-primary is-light" type="submit">
2021-04-13 15:22:53 +02:00
<span class="icon">
<i class="fas fa-check"></i>
</span>
<span>{% trans "Enregistrer" %}</span>
</button>
2021-08-21 22:58:01 +02:00
<a class="button is-primary button-close" data-closes="modal-{{ modal_id }}">
2021-04-13 15:22:53 +02:00
<span class="icon">
<i class="fas fa-times"></i>
</span>
<span>{% trans "Annuler" %}</span>
</a>
</footer>
</form>
</div>
</div>