55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
- segment_type: "h1"
|
|
content: "{{ document.organization.name }} - Risk Report "
|
|
|
|
- segment_type: "p"
|
|
content: "Created at: {{ document.created_at|date:'Y-m-d' }}"
|
|
|
|
- segment_type: "h2"
|
|
content: "Top 10 Risk Identified"
|
|
|
|
- segment_type: "table"
|
|
content: |
|
|
<table>
|
|
<tr>
|
|
<th>Risk ID</th>
|
|
<th>Risk Name</th>
|
|
<th>Inherent Impact </th>
|
|
<th>Interent Liklihood </th>
|
|
<th>Inherent Risk Score </th>
|
|
<th>Description of Risk </th>
|
|
</tr>
|
|
{% for item in risks_with_controls %}
|
|
<tr>
|
|
<td>{{ item.risk.id }}</td>
|
|
<td>{{ item.risk.name }}</td>
|
|
<td>{{ item.impact|floatformat:0 }}</td>
|
|
<td>{{ item.likelihood|floatformat:0 }}</td>
|
|
<td>{{ item.risk_score }}</td>
|
|
<td> - </td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
- segment_type: "image"
|
|
content: "data:image/png;base64,{{ graph }}"
|
|
|
|
- segment_type: "h2"
|
|
content: "Risks with Controls"
|
|
|
|
- segment_type: "body"
|
|
content: |
|
|
{% for item in risks_with_controls %}
|
|
<div class="risk">
|
|
<h3>Risk: {{ item.risk.name }}</h3>
|
|
<div class="controls">
|
|
<h4>Mitigating Controls:</h4>
|
|
{% for control in item.controls %}
|
|
<div class="control">
|
|
<span class="name">{{ control.control__name }}</span> -
|
|
<span class="weight">Weight: {{ control.weight }}</span>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|