mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 13:32:15 +00:00
28 lines
961 B
HTML
28 lines
961 B
HTML
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h4 class="modal-title">{% block title %}{% endblock %}</h4>
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</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>
|