fisk/core/templates/window-content/add-hook.html

32 lines
615 B
HTML
Raw Normal View History

2022-10-16 13:14:53 +00:00
{% 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 %}
2022-10-16 13:37:49 +00:00
hx-put="{% url 'hook_action' type=type hook_id=hook_id %}"
2022-10-16 13:14:53 +00:00
{% else %}
2022-10-16 13:37:49 +00:00
hx-put="{% url 'hook_action' type=type %}"
2022-10-16 13:14:53 +00:00
{% 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>