From aedd8801ceae64977d6f7da4bee88aa91579e573 Mon Sep 17 00:00:00 2001 From: Thomas Rusiecki Date: Tue, 3 Dec 2024 19:32:21 -0300 Subject: [PATCH] sortable list now updates order of definitions --- admin/templates/states_panel.html | 32 ++++++++++++++++++------------- admin/urls.py | 1 + admin/views.py | 28 +++++++++++++++++++++++++-- 3 files changed, 46 insertions(+), 15 deletions(-) diff --git a/admin/templates/states_panel.html b/admin/templates/states_panel.html index 77d36ea..e19e2ca 100644 --- a/admin/templates/states_panel.html +++ b/admin/templates/states_panel.html @@ -17,7 +17,6 @@

{% trans "State Definitions" %}

{% if state_definitions %} -

{% trans "Move state definitions to reorder" %}

@@ -28,11 +27,11 @@ {% for state_definition in state_definitions %} - + @@ -40,10 +39,12 @@ {% endfor %}
{{ state_definition.order }} {{ state_definition.state }} -
-
+ +

{% trans "Move state definitions to reorder" %}

+ {% csrf_token %} - +
@@ -93,7 +94,8 @@