c82ee8afbc
* removes WIKI_URL, replaces with HELP_LINK since it was the same before as well * refactors modal form processing (process_request()) * modal form can now display errors directly inside the modal (as intended by the devs) * modals now properly support the GET-POST workflow that is intended by the devs. More information here: https://github.com/trco/django-bootstrap-modal-forms/issues/183 * Improves label-field linking in generic_table_form_body.html * removes isDeleteForm attribute from modal_form_script.html
17 lines
464 B
HTML
17 lines
464 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"),
|
|
}
|
|
);
|
|
});
|
|
});
|
|
</script> |