{% with level1=level|add:"1" level2=level|add:"2" %} {% if lopapaths %}

{% trans "LOPA result" %}

{% for path in lopapaths %} {% endfor %}
{% trans "Initiating event" %} {% trans "Calculated frequency" %} {% trans "Target frequency" %}
{{ path.initiating }} {{ path.frequency }} {{ path.target }}
{% endif %} {% if lopapath_details %}

{% trans "LOPA-details" %}

{% for path in lopapaths %}

{{ path }}

{% for item in path.deviationlopapathelement_set.all reversed %} {% endfor %}
  {% trans "Description" %} {% trans "Probability" %} {% trans "Frequency" %}
{{ item.name }} {{ item.prob|default:"" }} {{ item.freq|default:"" }}

 

{% endfor %} {% endif %} {% endwith %}