76c7cce9bc
* adds generic modal rendering using package django-bootstrap-modal-forms * adds document file removing from hard drive * adds translations
18 lines
521 B
HTML
18 lines
521 B
HTML
{% 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"),
|
|
isDeleteForm: {{modal_reload_page}},
|
|
}
|
|
);
|
|
});
|
|
});
|
|
</script> |