aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/web/default/reports/new/fill_in_details.html15
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>