aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2018-03-22 10:56:24 +0000
committerDave Arter <davea@mysociety.org>2018-03-28 15:31:19 +0100
commit7974ee96b3cdbf81d13459a9280f08d8c85c43a7 (patch)
treed679530707fea6af4449d87acd8f30bf3822e48b
parentf8a5b193d2eba23e8ba78209d4b70a05fb83a944 (diff)
Display external_status_code on report/update edit pages, if set
-rw-r--r--templates/web/base/admin/report_edit.html6
-rw-r--r--templates/web/base/admin/update_edit.html3
2 files changed, 9 insertions, 0 deletions
diff --git a/templates/web/base/admin/report_edit.html b/templates/web/base/admin/report_edit.html
index 911f4094e..583f748f8 100644
--- a/templates/web/base/admin/report_edit.html
+++ b/templates/web/base/admin/report_edit.html
@@ -101,6 +101,12 @@ class="admin-offsite-link">[% problem.latitude %], [% problem.longitude %]</a>
<li><label for="external_team">[% loc('External team') %]:</label>
<input type="text" class="form-control" name="external_team" team="external_team" value="[% problem.external_team | html %]">
+[% IF problem.get_extra_metadata('external_status_code') %]
+<li>
+ <label for="external_status_code">[% loc('External status code') %]:</label>
+ <span>[% problem.get_extra_metadata('external_status_code') %]</span>
+</li>
+[% END %]
</ul>
</div>
diff --git a/templates/web/base/admin/update_edit.html b/templates/web/base/admin/update_edit.html
index 34e64310f..cb420fc67 100644
--- a/templates/web/base/admin/update_edit.html
+++ b/templates/web/base/admin/update_edit.html
@@ -53,6 +53,9 @@
<li>[% loc('Cobrand:') %] [% update.cobrand %]</li>
<li>[% loc('Cobrand data:') %] [% update.cobrand_data %]</li>
<li>[% loc('Created:') %] [% PROCESS format_time time=update.created %]</li>
+[% IF update.get_extra_metadata('external_status_code') %]
+<li>[% loc('External status code:') %] [% update.get_extra_metadata('external_status_code') | html %]</li>
+[% END %]
[% IF update.photo %]
<li>