shimatta-kenkyusho/shimatta_kenkyusho/templates/parts/modals/new-component-parameter-modal.html

26 lines
929 B
HTML
Raw Permalink Normal View History

2022-01-03 17:38:50 +01:00
{% comment "" %}
Needs:
- form : ComponentParameterCreateForm
- component_name: Component's name
{% endcomment %}
{% load crispy_forms_tags %}
<div class="modal fade" id="new-component-parameter-modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Add Parameter for {{component_name}}</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<form action="" method="post">
{% csrf_token %}
<div class="modal-body">
{{form|crispy}}
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-primary" value="Add Number" name="submit-create-new-param">
</div>
</form>
</div>
</div>
</div>