Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

Commit

Permalink
Fix inverted matrix legends
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Oct 19, 2023
1 parent 31f7733 commit e5a4539
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/templates/snippets/risk_matrix.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
{% if data %}
<div class="flex flex-row justify-center">
<div class="text-black font-bold text-center print-impact flex items-center">
<p class="-rotate-90">{% trans "Impact" %}</p>
<p class="-rotate-90">{% trans "Probability" %}</p>
</div>
<table class="w-full">
{% for row in matrix.render_grid_as_colors reversed %}
{% with row_index=forloop.revcounter0 %}
<tr class="w-full">
<td class="w-1/6 text-right pr-2 border-4 border-white">
{% with impact=matrix.parse_json.impact|index:row_index %}
{{ impact.name }}
{% with probability=matrix.parse_json.probability|index:row_index %}
{{ probability.name }}
{% endwith %}
</td>
{% for item in row %}
Expand All @@ -34,7 +34,7 @@
</table>
</div>
<div class="text-black font-bold text-center mx-auto mt-2">
<p>{% trans "Probability" %}</p>
<p>{% trans "Impact" %}</p>
</div>
{% else %}
<div class="w-full">
Expand Down

0 comments on commit e5a4539

Please sign in to comment.