mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-05 21:20:56 +00:00
Add button to launch modal form
This commit is contained in:
18
InvenTree/templates/modal_form.html
Normal file
18
InvenTree/templates/modal_form.html
Normal file
@ -0,0 +1,18 @@
|
||||
{% load static %}
|
||||
|
||||
<form method='post'>
|
||||
{% csrf_token %}
|
||||
<div class='modal-header'>
|
||||
<h4 class='modal-title'>{{ 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'>
|
||||
{% if ok_text %}{{ ok_text }}{% else %}Submit{% endif %}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
Reference in New Issue
Block a user