aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/base')
-rw-r--r--templates/web/base/report/_inspect.html11
-rw-r--r--templates/web/base/report/_item.html2
2 files changed, 9 insertions, 4 deletions
diff --git a/templates/web/base/report/_inspect.html b/templates/web/base/report/_inspect.html
index a09d75d40..d5df3d42e 100644
--- a/templates/web/base/report/_inspect.html
+++ b/templates/web/base/report/_inspect.html
@@ -10,6 +10,7 @@
<p>
<strong>[% loc('Report ID:') %]</strong>
[% problem.id %]
+ <input type="hidden" name="report_id" value="[% problem.id | html %]">
</p>
<p>
[% SET local_coords = problem.local_coords; %]
@@ -76,10 +77,14 @@
[% END %]
</select>
</p>
- <div id="js-duplicate-reports" class="hidden">
- <input type="hidden" name="duplicate_of" value="[% problem.get_extra_metadata('duplicate_of') | html %]">
+ <div id="js-duplicate-reports" class="[% "hidden" UNLESS problem.duplicate_of %]">
+ <input type="hidden" name="duplicate_of" value="[% problem.duplicate_of.id %]">
Which report is it a duplicate of?
- <ul></ul>
+ <ul>
+ [% IF problem.duplicate_of %]
+ [% INCLUDE 'report/_item.html' no_fixed = 1 item_extra_class = 'item-list__item--with-pin item-list--reports__item--selected' problem = problem.duplicate_of %]
+ [% END %]
+ </ul>
</div>
[% END %]
diff --git a/templates/web/base/report/_item.html b/templates/web/base/report/_item.html
index 5894c5d81..0f42b00ce 100644
--- a/templates/web/base/report/_item.html
+++ b/templates/web/base/report/_item.html
@@ -1,4 +1,4 @@
-<li class="item-list__item item-list--reports__item [% item_extra_class %]">
+<li class="item-list__item item-list--reports__item [% item_extra_class %]" data-report-id="[% problem.id | html %]">
<a href="[% c.cobrand.base_url_for_report( problem ) %][% problem.url %]">
[% IF problem.photo %]
<img class="img" height="60" width="90" src="[% problem.photos.first.url_fp %]" alt="">