2022-10-12 06:22:22 +00:00
|
|
|
{% extends 'wm/modal.html' %}
|
|
|
|
{% load crispy_forms_tags %}
|
|
|
|
|
|
|
|
{% load crispy_forms_bulma_field %}
|
|
|
|
{% block modal_content %}
|
|
|
|
<form
|
|
|
|
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
|
2022-10-15 17:45:25 +00:00
|
|
|
{% if hook_id is not None %}
|
|
|
|
hx-put="{% url 'hook_action' hook_id %}"
|
|
|
|
{% else %}
|
|
|
|
hx-put="{% url 'hook_action' %}"
|
|
|
|
{% endif %}
|
2022-10-12 06:22:22 +00:00
|
|
|
hx-target="#hooks-table"
|
|
|
|
hx-swap="outerHTML">
|
|
|
|
{% csrf_token %}
|
|
|
|
{{ form|crispy }}
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="button is-light modal-close-button">
|
|
|
|
Cancel
|
|
|
|
</button>
|
|
|
|
<button type="submit" class="button is-info modal-close-button">Submit</button>
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|