From 87442399df6984d8430af30c65a41f449a6b34f0 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Fri, 8 Apr 2016 20:30:12 +0100 Subject: Update remaining cobrand multiple photo templates. --- .../report/new/fill_in_details_form.html | 25 +++++++++---------- .../report/new/fill_in_details_form.html | 28 +++++++++++----------- 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/templates/web/emptyhomes/report/new/fill_in_details_form.html b/templates/web/emptyhomes/report/new/fill_in_details_form.html index 20b0b6842..1b82748c9 100644 --- a/templates/web/emptyhomes/report/new/fill_in_details_form.html +++ b/templates/web/emptyhomes/report/new/fill_in_details_form.html @@ -66,23 +66,24 @@ [% IF c.cobrand.allow_photo_upload %] + + [% IF field_errors.photo %]
[% field_errors.photo %]
[% END %] -
- [% IF upload_fileid || report.photo %] -

[% loc('You have already attached a photo to this report, attaching another one will replace it.') %]

- [% IF upload_fileid %] - +
+ [% IF upload_fileid %] +

[% loc('You have already attached photos to this report. Note that you can attach a maximum of 3 to this report (if you try to upload more, the oldest will be removed).') %]

+ [% FOREACH id IN upload_fileid.split(',') %] + [% END %] - [% IF report.photo %] - - [% END %] - [% END %] - - - + [% END %] + + + + +
[% END %] diff --git a/templates/web/seesomething/report/new/fill_in_details_form.html b/templates/web/seesomething/report/new/fill_in_details_form.html index 659fadd04..1cc841af5 100644 --- a/templates/web/seesomething/report/new/fill_in_details_form.html +++ b/templates/web/seesomething/report/new/fill_in_details_form.html @@ -49,24 +49,24 @@
[% IF c.cobrand.allow_photo_upload %] + - [% IF upload_fileid || report.photo %] - [% IF upload_fileid %] - - - [% END %] - -

[% loc('You have already attached a photo to this report, attaching another one will replace it.') %]

- - [% IF report.photo %] - - [% END %] - [% END %] - [% IF field_errors.photo %]

[% field_errors.photo %]

[% END %] - +
+ [% IF upload_fileid %] +

[% loc('You have already attached photos to this report. Note that you can attach a maximum of 3 to this report (if you try to upload more, the oldest will be removed).') %]

+ [% FOREACH id IN upload_fileid.split(',') %] + + [% END %] + [% END %] + + + + + +
[% END %]

Personal Details:

-- cgit v1.2.3