Files
PyRIGS/templates/base_ajax.html
Tom Price 4b87b0a196 Add some visual indicators that authorisations have been submitted.
This will show teccies and clients that RIGS is processing emails which can take a short while.
Should prevent duplicate sending.
2017-05-17 19:08:51 +01:00

26 lines
948 B
HTML

<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
<h4 class="modal-title">{% block title %}{% endblock %}</h4>
</div>
<div class="modal-body">
{% block content %}{% endblock %}
</div>
<div class="modal-footer">
{% block footer %}{% endblock %}
</div>
<script>
$('.modal-content form').on('submit', function(e) {
e.preventDefault();
data = $(this).serialize();
action = $(this).attr('action');
console.log(action)
$.post(action, data, function(resp) {
$('#modal').html(resp);
});
});
</script>
</div>
</div>