2
0
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:
Oliver
2018-04-25 00:09:25 +10:00
parent db49e98f37
commit 9004086632
6 changed files with 63 additions and 7 deletions

View 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>