Skip to content

Commit

Permalink
[TfL] Add admin heads for changing red route categories.
Browse files Browse the repository at this point in the history
  • Loading branch information
neprune committed Jun 10, 2024
1 parent ab03d6a commit 1e746b0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions templates/web/base/admin/bodies/body.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@
<a href="[% c.uri_for_action( 'admin/bodies/edit', [ body_id ], { text => 1 } ) %]">[% loc('Text only version') %]</a>
</p>

[% IF body.name == 'TfL' AND c.user.is_superuser %]
<p class="fms-admin-warning">
Renaming, adding, or removing categories that can only be made on red routes requires extra steps. See
<a href="https://wiki.mysociety.org/wiki/Transport_for_London_(TfL)#TLRN_categories">wiki</a>.
</p>
[% END %]


[% IF body.send_method == 'Open311' %]
<h2>
Expand Down Expand Up @@ -140,6 +147,13 @@ <h2>
<h2>[% loc('Add new category') %]</h2>
[% END %]

[% IF body.name == 'TfL' AND c.user.is_superuser %]
<p class="fms-admin-warning">
Renaming, adding, or removing categories that can only be made on red routes requires extra steps. See
<a href="https://wiki.mysociety.org/wiki/Transport_for_London_(TfL)#TLRN_categories">wiki</a>.
</p>
[% END %]

[% IF errors %]
<div class="fms-admin-warning">
[% FOR error IN errors.values %][% error %][% IF NOT loop.last %]<br>[% END %][% END %]
Expand Down
7 changes: 7 additions & 0 deletions templates/web/base/admin/bodies/category.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
[% END %]
</p>

[% IF body.name == 'TfL' AND c.user.is_superuser %]
<p class="fms-admin-warning">
Renaming, adding, or removing categories that can only be made on red routes requires extra steps. See
<a href="https://wiki.mysociety.org/wiki/Transport_for_London_(TfL)#TLRN_categories">wiki</a>.
</p>
[% END %]

[% INCLUDE 'admin/bodies/contact-form.html' %]

<h2>[% loc('History') %]</h2>
Expand Down

0 comments on commit 1e746b0

Please sign in to comment.