1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-07-05 12:03:55 +02:00

Factorize modal templates

This commit is contained in:
Yohann D'ANELLO
2020-09-24 21:43:45 +02:00
parent 471befb1f8
commit e1ca18085a
10 changed files with 86 additions and 155 deletions

21
templates/base_modal.html Normal file
View File

@ -0,0 +1,21 @@
{% load i18n %}
<div id="{{ modal_id }}Modal" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<form method="post" action="{{ modal_action }}" enctype="{{ modal_enctype|default:"application/x-www-form-urlencoded" }}">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">{{ modal_title }}</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body"></div>
<div class="modal-footer">
<button type="submit" class="btn btn-{{ modal_button_type|default:"primary" }}">{{ modal_button }}</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">{% trans "Close" %}</button>
</div>
</div>
</form>
</div>
</div>