Modified: views and and urlconf

This commit is contained in:
2023-08-04 10:15:25 +09:00
parent 89acf8e8bb
commit 941a4979f8
5 changed files with 87 additions and 71 deletions

View File

@@ -20,7 +20,8 @@
type="checkbox"
role="switch"
id="ticket-state"
ticket-state-url="{% url 'ticket' ticket.platform ticket.number %}"
ticket-state-url="{% url 'ajax_update_state_ticket' ticket.platform ticket.number %}"
{% if ticket.resolved %} ticket-state-switch="1" {% endif %}
{% if ticket.resolved %} checked {% endif %}>
</div>
<div class="col-xl-6 mb-2">
@@ -156,7 +157,7 @@
>Cancel</button>
<a
type="button"
href="{% url 'delete' ticket.number %}"
href="{% url 'ajax_delete_ticket' ticket.number %}"
class="btn btn-danger btn-ticket-del"
data-bs-dismiss="modal"
data-jq-ticket-del-redirect="{% url 'tickets' %}"