{% extends "lingo/pricing/manager_agenda_detail.html" %} {% load i18n %} {% block breadcrumb %} {{ block.super }} {{ object.pricing }} {% endblock %} {% block appbar %}

{{ object.pricing }} ({{ object.date_start|date:'d/m/Y' }} - {{ object.date_end|date:'d/m/Y' }})

{% endblock %} {% block content %}

{% trans "Test tool" %}

{{ test_tool_form.as_p }}
{% if request.GET and test_tool_form.is_valid %} {% with test_tool_form.compute as pricing_data %}

{% trans "Computed pricing data" %}

{% if pricing_data.pricing is not None %}

{% trans "Pricing:" %} {{ pricing_data.pricing|stringformat:".2f" }}

{% endif %}
{{ pricing_data|pprint }}
{% endwith %} {% endif %}
{% for matrix in object.iter_pricing_matrix %}
{% if matrix.criteria %}

{{ matrix.criteria.label }}

{% endif %}
{% if matrix.rows.0.cells.0.criteria %} {% for cell in matrix.rows.0.cells %}{% endfor %} {% endif %} {% for row in matrix.rows %} {% for cell in row.cells %}{% endfor %} {% endfor %}
{{ cell.criteria.label }}
{{ row.criteria.label }}{{ cell.value|floatformat:"2"|default_if_none:"" }}

{% trans "Edit pricing" %}

{% empty %}
{% blocktrans %} This pricing model is misconfigured. {% endblocktrans %}
{% endfor %} {% endblock %}