{% extends "layout.html" %} {% import "_paging.html" as paging %} {% import "gestion/macros.html" as objetivos %} {% block content %}
{% for hijo in root.hijos if hijo.visible() %}
{% if hijo.tipo %}

{{ hijo.nombre }}

{% else %}

{{ hijo.nombre }}

{% endif %} {% if hijo.is_manager %} {% endif %}
{% for nieto in hijo.hijos %} {% if loop.first and loop.last %}
{{ objetivos.resumen_li( nieto, label, single=True ) }}
{% else %} {% if loop.first %}
{% endif %} {{ objetivos.resumen_li( nieto, label ) }} {% if loop.last %}
{% endif %} {% endif %} {% endfor %}
{% else %}
Este mensaje no debería mostrarse.
{% endfor %}
{% endblock content %} {% block js %} {% if tag == 'gestion.personal' %} {% for hijo in root.hijos if hijo.visible %} {{ objetivos.show_js(hijo, redirect=url_for('gestion.main', uri=uri), invitado=False) }} {% endfor %} {% else %} {% for hijo in root.hijos if hijo.visible %} {{ objetivos.show_js(hijo, redirect=url_for('gestion.main', uri=uri), invitado=True) }} {% endfor %} {% endif %} {% endblock %}