2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-05 21:20:56 +00:00

Fixed position header + footer for modals

- Fun with CSS!
- Header title provided by AJAX data
- Footer static
- Submit button text can be customized via JSON dat
This commit is contained in:
Oliver
2018-04-26 22:38:48 +10:00
parent 8c9442193b
commit b4ff8f79f0
5 changed files with 51 additions and 35 deletions

View File

@ -1,17 +1,5 @@
<form method="post" action='{{ form_action }}' class='js-modal-form'>
<form method="post" action='' class='js-modal-form'>
{% csrf_token %}
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title">{{ form_title }}</h4>
</div>
<div class="modal-body">
{% load crispy_forms_tags %}
{% crispy form %}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="submit" class="btn btn-primary">{{ submit_text }}</button>
</div>
{% load crispy_forms_tags %}
{% crispy form %}
</form>