2021-11-10 19:38:39 +01:00
|
|
|
{% comment "" %}
|
|
|
|
Needs following context:
|
|
|
|
- heading
|
2021-11-11 20:51:02 +01:00
|
|
|
- form EditComponentForm
|
2021-11-10 19:38:39 +01:00
|
|
|
{% endcomment %}
|
|
|
|
|
2021-11-11 20:51:02 +01:00
|
|
|
{% load static %}
|
2021-11-10 19:38:39 +01:00
|
|
|
{% load crispy_forms_tags %}
|
|
|
|
|
|
|
|
<div class="modal fade" id="comp-edit-modal" tabindex="-1">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h2>{{heading}}</h2>
|
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
|
|
</div>
|
|
|
|
<form method="post" enctype="multipart/form-data">
|
|
|
|
{% csrf_token %}
|
|
|
|
<div class="modal-body">
|
2022-01-01 17:18:08 +01:00
|
|
|
{{form|crispy}}
|
2021-11-10 19:38:39 +01:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2022-01-01 17:18:08 +01:00
|
|
|
<input type="submit" name="submit-edit-component" class="btn btn-primary" value="Save">
|
2021-11-10 19:38:39 +01:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-11-11 20:51:02 +01:00
|
|
|
</div>
|