[% IF c.cobrand.allow_photo_upload %] [% IF field_errors.photo %]

[% field_errors.photo %]

[% END %]
[% IF upload_fileid %] [% IF type == 'report' %]

[% 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).') %]

[% ELSE %]

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

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