{% extends 'main/base.html' %} {% load i18n %} {% load subtemplates_tags %} {% block title %} :: {% with 'true' as read_only %}{% include 'main/calculate_form_title.html' %}{% endwith %}{% endblock %} {% block sidebar %} {% for subtemplate in sidebar_subtemplates %}
{% include subtemplate %}
{% endfor %} {% for subtemplate in sidebar_subtemplates_list %} {% with 'true' as side_bar %} {% if subtemplate.form %} {% render_subtemplate subtemplate.name subtemplate.context as rendered_subtemplate %} {% with 'true' as read_only %}
{{ rendered_subtemplate }}
{% endwith %} {% else %} {% render_subtemplate subtemplate.name subtemplate.context as rendered_subtemplate %} {{ rendered_subtemplate }} {% endif %} {% if subtemplate.grid_clear or not subtemplate.grid %}
{% endif %} {% endwith %} {% endfor %} {% endblock %} {% block stylesheets %} {% endblock %} {% block content %} {% if form %} {% with 'true' as read_only %}
{% include 'main/generic_form_subtemplate.html' %}
{% if grid_clear or not grid %}
{% endif %} {% endwith %} {% endif %}
{% for subtemplate in subtemplates_list %} {% if subtemplate.grid %}
{% else %}
{% endif %} {% with "true" as read_only %} {% render_subtemplate subtemplate.name subtemplate.context as rendered_subtemplate %}
{{ rendered_subtemplate }}
{% endwith %}
{% if subtemplate.grid_clear or not subtemplate.grid %}
{% endif %} {% endfor %}
{% endblock %}