You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
464 B
HTML
17 lines
464 B
HTML
3 years ago
|
{% comment %}
|
||
|
Taken from https://github.com/trco/django-bootstrap-modal-forms
|
||
|
|
||
|
isDeleteForm refers to reloading the whole page after submitting the form in our case.
|
||
|
|
||
|
{% endcomment %}
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
$(document).ready(function() {
|
||
|
$(".{{btn_class}}").each(function () {
|
||
|
$(this).modalForm({
|
||
|
formURL: $(this).data("form-url"),
|
||
|
}
|
||
|
);
|
||
|
});
|
||
|
});
|
||
|
</script>
|