{% import _self as self %} {# macro documento #} {% macro paintDoc(item, exp) %}
  • {{item.nombreNatural}}
    {% if exp.sipAsociado %} {% else %} {% endif %}
  • {% endmacro %} {# macro expediente #} {% macro paintExp(item, exp) %}
  • {{item.nombreNatural}}
  • {% endmacro %} {% macro buildTree(item, exp) %} {% import _self as self %} {% if item.tipoElemento == 'Documento' %} {{ self.paintDoc(item, exp) }} {% elseif item.tipoElemento == 'Expediente' %} {{ self.paintExp(item, exp) }} {% elseif item.tipoElemento == 'Carpeta' %}
  • {{item.identificador}}
  • {% endif %} {% endmacro %} {% if content.length != 0 %} {% for exp in content %}

    {{exp.nombreNatural}}

    {{exp.descripcion}}

      {% for metadato in exp.metadatos %}
    • {{ metadato.descripcion }} {{ metadato.valor }}
    • {% endfor %}
    • Documentos {% if exp.indice.contenido.elementosIndice %}
        {% for item in exp.indice.contenido.elementosIndice %} {{ self.buildTree(item, exp) }} {% endfor %}
      {% endif %}
    {% if exp.sipAsociado %} {% else %} {% endif %}
    {% endfor %} {% else %}

    No hay expedientes ligados.

    Este dip no tiene ningun expediente ligado a el. Por favor, seleccione algun expediente para poder ver sus documentos

    {% endif %}