32 lines
615 B
HTML
32 lines
615 B
HTML
{% include 'partials/notify.html' %}
|
|
|
|
{% load crispy_forms_tags %}
|
|
|
|
{% load crispy_forms_bulma_field %}
|
|
<form
|
|
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
|
|
{% if hook_id is not None %}
|
|
hx-put="{% url 'hook_action' type=type hook_id=hook_id %}"
|
|
{% else %}
|
|
hx-put="{% url 'hook_action' type=type %}"
|
|
{% endif %}
|
|
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|