aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-01-15 13:16:10 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-01-15 13:16:10 +0000
commit66ed90bc4bf63a56dac6408cd0347288db0e556f (patch)
treea342f51faff3b6f774a0d7d0ba4865be93e72bb7
parent3e12802c8cee34509bab7400a9cbc6aa2ad10d79 (diff)
Detail uneditable if Zurich problem report finished with.
-rw-r--r--templates/web/zurich/admin/report_edit.html22
1 files changed, 16 insertions, 6 deletions
diff --git a/templates/web/zurich/admin/report_edit.html b/templates/web/zurich/admin/report_edit.html
index 9498c8240..1bc2a5922 100644
--- a/templates/web/zurich/admin/report_edit.html
+++ b/templates/web/zurich/admin/report_edit.html
@@ -15,13 +15,23 @@
<ul>
<li><a href="[% c.uri_for_email( '/report', problem.id ) %]">[% loc('View report on site' )%]</a></li>
-<li><label for='title'>[% loc('Subject:') %]</label> <input size=60 type='text' id='title' name='title' value='[% problem.title | html %]'></li>
-<li><label for='detail'>[% loc('Details:') %]</label>
-<textarea name='detail' id='detail' cols=60 rows=5>[% problem.detail | html %]</textarea>
-[% IF problem.extra.original_detail %]
-[% loc('originally entered') %]: &ldquo;[% problem.extra.original_detail | html %]&rdquo;
+
+[% IF problem.state == 'fixed - council' OR problem.state == 'closed' %]
+ <li>[% loc('Details:') %] [% problem.detail | html %]
+ [% IF problem.extra.original_detail %]
+ <br>[% loc('originally entered') %]: &ldquo;[% problem.extra.original_detail | html %]&rdquo;
+ [% END %]
+ </li>
+[% ELSE %]
+ <li><label for='title'>[% loc('Subject:') %]</label> <input size=60 type='text' id='title' name='title' value='[% problem.title | html %]'></li>
+ <li><label for='detail'>[% loc('Details:') %]</label>
+ <textarea name='detail' id='detail' cols=60 rows=5>[% problem.detail | html %]</textarea>
+ [% IF problem.extra.original_detail %]
+ [% loc('originally entered') %]: &ldquo;[% problem.extra.original_detail | html %]&rdquo;
+ [% END %]
+ </li>
[% END %]
-</li>
+
<li>[% loc('Co-ordinates:') %] [% problem.local_coords.join(',') %] ([% problem.latitude %],[% problem.longitude %]) ([% loc('originally entered') %] &lsquo;[% problem.postcode | html %]&rsquo;, [% IF problem.used_map %][% loc('used map') %][% ELSE %][% loc("didn't use map") %][% END %])</li>
<li>[% loc('Name:') %] [% problem.name | html %] <input type='hidden' name='name' id='name' value='[% problem.name | html %]'></li>