{% extends "base.html" %} {% from "_ui.html" import page_head, empty, college_badge, college_meta %} {% block title %}Find College KT{% endblock %} {% block content %} {{ page_head('search', 'Find College KT', 'Find a college to see its stored KT.') }}
{% if not searched %} {# default view: a grid of college cards #}

{{ icon('list') }} List of Colleges

{{ colleges|length }} total
{% if colleges %}
{% for c in colleges %} {{ college_badge(c, 56, 'lg') }}
{{ c.name }}
{% if c.kt_count %}{{ c.kt_count }} KT loaded{% else %}No KT loaded yet{% endif %}{% if c.added_by %} · Added by {{ c.added_by }}{% endif %} {{ icon('arrow-right') }}
{% endfor %}
{% else %}
{{ empty('inbox', 'No colleges added yet.') }}
{% endif %} {% else %} {# result view: one table of KT Criteria per college #} {% for c in colleges %}
{{ college_badge(c, 32) }}

{{ c.name }}

{{ college_meta(c) }}
{% if user.role in ('admin', 'lead') %}{% endif %}
{% if user.role in ('admin', 'lead') %}{% endif %} {% for cr in criteria.get(c.id, []) %} {% if user.role in ('admin', 'lead') %} {% endif %} {% else %} {% endfor %}
S.NoKT CriteriaKTAdded ByAction
{{ loop.index }} {{ cr.title }} {% if cr.block_count %}{{ cr.block_count }} KT{% else %}No KT yet{% endif %} {% if cr.added_by %}{{ icon('user') }}{{ cr.added_by }}{% else %}-{% endif %} {{ icon('edit') }}
{{ empty('file-text', 'No KT Criteria added yet.') }}
{% else %}
{{ empty('search', 'No matching college found.') }}
{% endfor %} {% endif %} {% endblock %}