mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 04:55:44 +00:00
Add button to launch modal form
This commit is contained in:
@ -13,11 +13,6 @@
|
||||
<link rel='stylesheet' href="{% static 'css/bootstrap_3.3.7_css_bootstrap.min.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'css/inventree.css' %}">
|
||||
|
||||
|
||||
<!-- Scripts -->
|
||||
<script type="text/javascript" src="{% static 'script/jquery_3.3.1_jquery.min.js' %}"></script>
|
||||
<script type="text/javascript" src="{% static 'script/bootstrap.min.js' %}"></script>
|
||||
|
||||
{% block head %}
|
||||
|
||||
{% endblock %}
|
||||
@ -39,5 +34,13 @@ InvenTree
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
||||
<!-- Scripts -->
|
||||
<script type="text/javascript" src="{% static 'script/jquery_3.3.1_jquery.min.js' %}"></script>
|
||||
<script type="text/javascript" src="{% static 'script/bootstrap.min.js' %}"></script>
|
||||
|
||||
{% block javascript %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
</body>
|
||||
</html>
|
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