2016-09-13 13:45:10 +00:00
|
|
|
|
{% load i18n %}
|
2018-04-13 13:26:10 +00:00
|
|
|
|
<style>
|
|
|
|
|
.modal-body {
|
|
|
|
|
padding: 0px 20px 0px 20px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
2016-09-26 08:33:10 +00:00
|
|
|
|
<div aria-hidden="true" role="dialog" id="{% block modal_id %}{% endblock %}" class="modal inmodal">
|
2016-09-28 13:11:43 +00:00
|
|
|
|
<div class="modal-dialog {% block modal_class %}{% endblock %}">
|
2016-09-13 13:45:10 +00:00
|
|
|
|
<div class="modal-content animated fadeIn">
|
|
|
|
|
<div class="modal-header">
|
2019-05-21 08:24:01 +00:00
|
|
|
|
<button data-dismiss="modal" id="close_button1" class="close close_btn1 " type="button"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
2016-09-13 13:45:10 +00:00
|
|
|
|
<h4 class="modal-title">{% block modal_title %}{% endblock %}</h4>
|
|
|
|
|
<small>{% block modal_comment %}{% endblock %}</small>
|
|
|
|
|
</div>
|
2019-03-28 04:50:04 +00:00
|
|
|
|
{% block modal_help_message %}{% endblock %}
|
2016-09-13 13:45:10 +00:00
|
|
|
|
<div class="modal-body">
|
|
|
|
|
{% block modal_body %}
|
|
|
|
|
{% endblock %}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
2018-04-13 07:48:10 +00:00
|
|
|
|
{% block modal_button %}
|
2019-05-21 08:24:01 +00:00
|
|
|
|
<button id="close_button2" data-dismiss="modal" class="btn btn-white close_btn2" type="button">{% trans "Close" %}</button>
|
2016-09-13 13:45:10 +00:00
|
|
|
|
<button class="btn btn-primary" type="button" id="{% block modal_confirm_id %}{% endblock %}">{% trans 'Confirm' %}</button>
|
2018-04-13 07:48:10 +00:00
|
|
|
|
{% endblock %}
|
2016-09-13 13:45:10 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2019-05-21 08:24:01 +00:00
|
|
|
|
<script>
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
.on('click', '#close_button1', function () {
|
|
|
|
|
SetMessageLabelEmpty()
|
|
|
|
|
})
|
|
|
|
|
.on('click', '#close_button2', function () {
|
|
|
|
|
SetMessageLabelEmpty()
|
|
|
|
|
});
|
|
|
|
|
function SetMessageLabelEmpty() {
|
|
|
|
|
$('#success_created').html('');
|
|
|
|
|
$('#success_created_detail').html('');
|
|
|
|
|
$('#created_failed').html('');
|
|
|
|
|
$('#created_failed_detail').html('');
|
|
|
|
|
$('#success_updated').html('');
|
|
|
|
|
$('#success_updated_detail').html('');
|
|
|
|
|
$('#updated_failed').html('');
|
|
|
|
|
$('#updated_failed_detail').html('');
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
</script>
|