{% load i18n l10n %} {% comment %} A generic modal template which is derived from modal_form.html on django-bootstrap-modal-forms package https://pypi.org/project/django-bootstrap-modal-forms/ {% endcomment %} <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">×</span> </button> </div> <div class="modal-body"> {% include modal_body_template %} </div>