{# Copyright (c) 2015 Chintalagiri Shashank Released under the MIT license #} {% import "parts/validation_errors.html" as validation %} {% macro render_notes() -%}
Notes
{% endmacro -%} {% macro render_indicative_costing_chart(prototype) -%}
Indicative Costing
{% if prototype.sourcing_errors.terrors %}
{{ validation.render_validation_errors(prototype.sourcing_errors) }}
{% endif %} {% if prototype.indicative_cost_hierarchical_breakup.sections %} {% if prototype.indicative_cost_hierarchical_breakup.sections|length > 7 %} {{ render_notes() }} {% endif %} {% endif %}
Approximate Total Cost {{ prototype.indicative_cost.native_string|unicode }}
{% if prototype.indicative_cost_hierarchical_breakup.sections %}

Top-level sections

{% for title, percent, value in prototype.indicative_cost_hierarchical_breakup.sections %} {% endfor %}
{% endif %} {% if prototype.indicative_cost_hierarchical_breakup.sections %} {% if prototype.indicative_cost_hierarchical_breakup.sections|length <= 7 %} {{ render_notes() }} {% endif %} {% else %} {{ render_notes() }} {% endif %}
{% endmacro %}