aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/questionnaire/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/base/questionnaire/index.html')
-rw-r--r--templates/web/base/questionnaire/index.html29
1 files changed, 3 insertions, 26 deletions
diff --git a/templates/web/base/questionnaire/index.html b/templates/web/base/questionnaire/index.html
index 36123013f..416200d25 100644
--- a/templates/web/base/questionnaire/index.html
+++ b/templates/web/base/questionnaire/index.html
@@ -49,13 +49,13 @@
<h3 class="questionnaire-report-reminder__report-title">
<a href="/report/[% problem.id %]">[% problem.title | html %]</a>
</h3>
- <p class="questionnaire-report-reminder__report-meta">[% problem.meta_line(c) | html %]</p>
+ <p class="questionnaire-report-reminder__report-meta">[% problem.meta_line(c.user) | html %]</p>
[% IF updates.size %]
<p class="questionnaire-report-reminder__last-update-header">
<strong>[% loc('Last update') %]</strong>
<a href="/report/[% problem.id %]">[% loc('Show all updates') %]</a>
</p>
- <p class="questionnaire-report-reminder__last-update">&ldquo;[% updates.last.text | add_links %]&rdquo;</p>
+ <p class="questionnaire-report-reminder__last-update">&ldquo;[% updates.last.text | staff_html_markup(updates.last.extra) %]&rdquo;</p>
[% END %]
</div>
@@ -74,30 +74,7 @@
<p><textarea class="form-control" name="update" rows="7" cols="30">[% update | html %]</textarea></p>
-[% IF c.cobrand.allow_photo_upload %]
- <input type="hidden" name="upload_fileid" value="[% upload_fileid %]">
- <label for="form_photo">
- <span data-singular="[% loc('Photo') %]" data-plural="[% loc('Photos') %]">[% loc('Photo') %]</span>
- </label>
-
- [% IF field_errors.photo %]
- <p class='form-error'>[% field_errors.photo %]</p>
- [% END %]
-
- <div id="form_photos">
- [% IF upload_fileid %]
- <p>[% 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).') %]</p>
- [% FOREACH id IN upload_fileid.split(',') %]
- <img align="right" src="/photo/temp.[% id %]" alt="">
- [% END %]
- [% END %]
- <input type="file" name="photo1" id="form_photo">
- <label for="form_photo2">[% loc('Photo') %]</label>
- <input type="file" name="photo2" id="form_photo2">
- <label for="form_photo3">[% loc('Photo') %]</label>
- <input type="file" name="photo3" id="form_photo3">
- </div>
-[% END %]
+[% INCLUDE report/form/photo_upload.html %]
<div class="js-another-questionnaire">
<p>4. [% loc('Would you like to receive another questionnaire in 4 weeks, reminding you to check the status?') %]</p>