{% with iter_matrix=object.iter_pricing_matrix|list %}
{% for matrix in iter_matrix %}
{% if matrix.criteria %}
{{ matrix.criteria.label }}
{% endif %}
{% if matrix.rows.0.cells.0.criteria %}
|
{% for cell in matrix.rows.0.cells %}{{ cell.criteria.label }} | {% endfor %}
{% endif %}
{% for row in matrix.rows %}
{{ row.criteria.label }} |
{% for cell in row.cells %}
{% spaceless %}
{% if object.kind == 'effort' %}
{{ cell.value|floatformat:"4"|default_if_none:"" }}
{% else %}
{{ cell.value|floatformat:"2"|default_if_none:"" }}
{% endif %}
{% endspaceless %} |
{% endfor %}
{% endfor %}
{% empty %}
{% blocktrans trimmed %}
This pricing is misconfigured.
{% endblocktrans %}
{% endfor %}
{% endwith %}
{% if object.kind == 'effort' %}
- {% trans "Minimal pricing:" %} {{ object.min_pricing|default_if_none:"" }}
- {% trans "Maximal pricing:" %} {{ object.max_pricing|default_if_none:"" }}
{% elif object.kind == 'reduction' %}
{% with iter_matrix=object.iter_min_pricing_matrix|list %}
{% for matrix in iter_matrix %}
{% if matrix.criteria %}
{{ matrix.criteria.label }}
{% endif %}
{% if matrix.rows.0.cells.0.criteria %}
|
{% for cell in matrix.rows.0.cells %}{{ cell.criteria.label }} | {% endfor %}
{% endif %}
{% for row in matrix.rows %}
{{ row.criteria.label }} |
{% for cell in row.cells %}
{% spaceless %}
{{ cell.value|floatformat:"2"|default_if_none:"" }}
{% endspaceless %} |
{% endfor %}
{% endfor %}
{% empty %}
{% blocktrans trimmed %}
This pricing is misconfigured.
{% endblocktrans %}
{% endfor %}
{% endwith %}
{% endif %}