{% if data %}

{% set headers = [('WEBPI', data['WEBPI_nro_solicitud']), ('GALENA', data['GALENA_nro_solicitud'])] %} {% for sistema, nro in headers %} {% endfor %} {% for key, value in data.items() if key.startswith('WEBPI_') %} {% set campo = key[6:] %} {% set galena_key = 'GALENA_' ~ campo %} {% endfor %}
{{ nro | default('sin nro') | safe }}
{{ sistema }}
{{ campo }} {{ value | safe }} {{ data[galena_key] | default('') | safe }}
{% endif %}