{% extends "base.html" %} {% block title %}Inputs — {{ model.__class__.__name__ }}{% endblock %} {% block content %} {% if error %}
{{ error }}
{% endif %} {% if not inputs %}
This model has no input line items.
{% else %}
{# Scalar inputs — one value per item #} {% set scalar_inputs = inputs | selectattr("is_scalar") | list %} {% if scalar_inputs %}

Scalar Inputs

{% for inp in scalar_inputs %}
Current: {{ inp.formatted_values[0] }}
{% endfor %}
{% endif %} {# Period-indexed inputs — one column per period #} {% set period_inputs = inputs | rejectattr("is_scalar") | list %} {% if period_inputs %}

Period Inputs

{% for period in model.periods %} {% endfor %} {% for inp in period_inputs %} {% for period in model.periods %} {% endfor %} {% for fv in inp.formatted_values %} {% endfor %} {% endfor %}
{{ model.__class__.period_label or "Input" }}{{ period }}
{{ inp.label }}
{{ inp.name }}
Current{{ fv }}
{% endif %}
{% endif %} {% endblock %}