From e86cb95f14157aef8b804c39a233ff9f33cbd058 Mon Sep 17 00:00:00 2001 From: pacnpal <183241239+pacnpal@users.noreply.github.com> Date: Thu, 14 Nov 2024 02:10:14 +0000 Subject: [PATCH] Fix moderation submission edit view: - Add coaster stats fields template - Fix ride category selection and stats display - Fix location widget and map initialization --- .../moderation/partials/coaster_fields.html | 257 +++++++++--------- .../moderation/partials/submission_list.html | 47 +++- 2 files changed, 166 insertions(+), 138 deletions(-) diff --git a/templates/moderation/partials/coaster_fields.html b/templates/moderation/partials/coaster_fields.html index df87dd7c..4bd6ac4c 100644 --- a/templates/moderation/partials/coaster_fields.html +++ b/templates/moderation/partials/coaster_fields.html @@ -1,150 +1,135 @@ -
- -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
+{% load moderation_tags %} - -
+
+

Coaster Stats

+
-
+
-
+
-
+ +
+ + +
+ +
+ +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
diff --git a/templates/moderation/partials/submission_list.html b/templates/moderation/partials/submission_list.html index 2191e604..e1fc3f96 100644 --- a/templates/moderation/partials/submission_list.html +++ b/templates/moderation/partials/submission_list.html @@ -439,9 +439,52 @@ Approve - + + {% endif %} + + {% if user.role == 'MODERATOR' and submission.status != 'ESCALATED' %} + + {% endif %} +
+
+ {% endif %} + + + +{% empty %} +
+
+ +

No submissions found matching your filters.

+
+ +
+
+
+ Loading... +
+
+
+{% endfor %} + +{% block extra_js %} + +{% endblock %}