Dodata opcija da yaml template da moze da koristi html i django template
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
<h1> {{ document.organization.name }} - Risk Report </h1>
|
||||
<p> created at: {{ document.created_at|date:'Y-m-d' }}</p>
|
||||
- segment_type: "h1"
|
||||
content: "{{ document.organization.name }} - Risk Report"
|
||||
|
||||
risks:
|
||||
{% for item in risks_with_controls %}
|
||||
- segment_type: "body"
|
||||
content: "Created at: {{ document.created_at|date:'Y-m-d' }}"
|
||||
|
||||
- segment_type: "h2"
|
||||
content: "Risks"
|
||||
|
||||
- segment_type: "body"
|
||||
content: |
|
||||
{% for item in risks_with_controls %}
|
||||
<div class="risk">
|
||||
<h3>Risk: {{ item.risk.name }}</h3>
|
||||
<div class="controls">
|
||||
@@ -15,4 +22,4 @@ risks:
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user