Skip to content

Commit

Permalink
Use div for inspector form wrapped extra questions
Browse files Browse the repository at this point in the history
As extra questions can include limited HTML now, including <p>,
wrapping them in a <p> can lead to display issues.
  • Loading branch information
dracos committed Nov 23, 2020
1 parent ec37a8c commit a854489
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/web/base/report/_inspect.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ <h2 class="inspect-form-heading">[% loc('Inspect report') %]</h2>
cat_safe = mark_safe(cat_name);
cat_prefix = cat_name | lower | replace('[^a-z]', '');
cat_prefix = "category_" _ cat_prefix _ "_" %]
<p data-category="[% cat_name | html %]"
<div data-category="[% cat_name | html %]"
[%~ IF cat_name != problem.category %] class="hidden"[% END %]
data-priorities='[% priorities_by_category.$cat_safe | html %]'
data-templates='[% templates_by_category.$cat_safe | html %]'>
[% INCLUDE 'report/new/category_extras_fields.html' metas=category_extras.$cat_safe hide_notices=1 show_hidden=1 %]
</p>
</div>
[% END %]

[% IF permissions.report_inspect %]
Expand Down

0 comments on commit a854489

Please sign in to comment.