diff options
author | Edmund von der Burg <evdb@mysociety.org> | 2011-03-24 16:09:44 +0000 |
---|---|---|
committer | Edmund von der Burg <evdb@mysociety.org> | 2011-03-24 16:09:44 +0000 |
commit | a2b06ca2acff737cee594317598f05dd8c4b5ab7 (patch) | |
tree | fab701ddc91c4a16222a8184a92f86bb52439047 | |
parent | d47c486b1777211c627462eec08352876bc15f48 (diff) |
Don't allow user to assign another photo for a report
-rw-r--r-- | templates/web/default/reports/new/fill_in_details.html | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/templates/web/default/reports/new/fill_in_details.html b/templates/web/default/reports/new/fill_in_details.html index 7a2784fa9..f74ce0e25 100644 --- a/templates/web/default/reports/new/fill_in_details.html +++ b/templates/web/default/reports/new/fill_in_details.html @@ -89,17 +89,16 @@ <div class='form-error'>[% field_errors.photo %]</div> [% END %] -[% IF upload_fileid %] - <p>[% loc('Please note that you have already uploaded a photo - only add another if you wish to replace it') %]</p> +[% IF upload_fileid || report.photo %] + <p>[% loc('You have already uploaded a photo for this report') %]</p> <input type="hidden" name="upload_fileid" value="[% upload_fileid %]" /> +[% ELSE %] + <div class='form-field'> + <label for="form_name">[% loc('Photo:') %]</label> + <input type="file" value="" name="photo" id="form_photo" > + </div> [% END %] -<div class='form-field'> - <label for="form_name">[% loc('Photo:') %]</label> - <input type="file" value="" name="photo" id="form_photo" > -</div> - - [% IF field_errors.name %] <div class='form-error'>[% field_errors.name %]</div> |