From 1e746b073b855118dfca71cc7f2a104046369a90 Mon Sep 17 00:00:00 2001
From: Nik Gupta
Date: Thu, 6 Jun 2024 12:09:23 +0100
Subject: [PATCH] [TfL] Add admin heads for changing red route categories.
---
templates/web/base/admin/bodies/body.html | 14 ++++++++++++++
templates/web/base/admin/bodies/category.html | 7 +++++++
2 files changed, 21 insertions(+)
diff --git a/templates/web/base/admin/bodies/body.html b/templates/web/base/admin/bodies/body.html
index 6de785ad4b2..f1649cc8f45 100644
--- a/templates/web/base/admin/bodies/body.html
+++ b/templates/web/base/admin/bodies/body.html
@@ -33,6 +33,13 @@
[% loc('Text only version') %]
+[% IF body.name == 'TfL' AND c.user.is_superuser %]
+
+ Renaming, adding, or removing categories that can only be made on red routes requires extra steps. See
+ wiki.
+
+[% END %]
+
[% IF body.send_method == 'Open311' %]
@@ -140,6 +147,13 @@
[% loc('Add new category') %]
[% END %]
+ [% IF body.name == 'TfL' AND c.user.is_superuser %]
+
+ Renaming, adding, or removing categories that can only be made on red routes requires extra steps. See
+ wiki.
+
+ [% END %]
+
[% IF errors %]
[% FOR error IN errors.values %][% error %][% IF NOT loop.last %]
[% END %][% END %]
diff --git a/templates/web/base/admin/bodies/category.html b/templates/web/base/admin/bodies/category.html
index de8cb19eca6..9633b93dfdd 100644
--- a/templates/web/base/admin/bodies/category.html
+++ b/templates/web/base/admin/bodies/category.html
@@ -20,6 +20,13 @@
[% END %]
+[% IF body.name == 'TfL' AND c.user.is_superuser %]
+
+ Renaming, adding, or removing categories that can only be made on red routes requires extra steps. See
+ wiki.
+
+[% END %]
+
[% INCLUDE 'admin/bodies/contact-form.html' %]
[% loc('History') %]