{% extends "base.html" %} {% from "_ui.html" import empty %} {% block title %}{{ criteria.title }} - KT{% endblock %} {% block content %}
{{ icon('arrow-left') }} {{ criteria.college_name }} {{ theme_switch() }}
{{ icon('list') }}{{ criteria.college_name }} · KT Criteria

{{ criteria.title }}

The KT stored inside this criteria - add as many as you need: Form, Attachment, Embedded Media, Link, Alert or Description.

{% if user.role in ('admin', 'lead') %} {% endif %}
{% if blocks %}
{% for k in blocks %}
{% if user.role in ('admin', 'lead') %} {% endif %}

{{ k.title or '-' }}

{% if k.block_type == 'form' and k.description %}
{{ k.description|rich }}
{% endif %} {% if k.block_type == 'form' %} {% for f in k.fields %}
{% if f.label %}
{{ f.label }}
{% endif %} {% if f.kind in ('multiple_choice', 'checkboxes') and f.choices %}
    {% for o, on in f.choices %}
  • {% if f.kind == 'multiple_choice' %}{{ '◉'|safe if on else '○'|safe }}{% else %}{{ '☑'|safe if on else '☐'|safe }}{% endif %} {{ o }}
  • {% endfor %}
{% elif f.kind == 'dropdown' and f.choices %}
{{ f.text }}
Options: {{ f.choices|map(attribute=0)|join(', ') }}
{% else %}
{{ f.text }}
{% endif %} {{ f.kind_label }}
{% endfor %} {% elif k.block_type == 'alert' %}
{{ icon('info' if k.alert_level == 'info' else 'alert') }} {{ k.text }}
{% elif k.block_type == 'attachment' %}
{{ icon('paperclip') }}
{{ k.file_name or 'File' }}
{{ (k.file_type or '')|upper }}{% if k.file_size_h %} · {{ k.file_size_h }}{% endif %}
{{ icon('download') }} Download {% elif k.block_type == 'embed' %}
{{ icon('arrow-right') }} Open in a new tab {% elif k.link %} {{ icon('arrow-right') }} Open link {% elif k.block_type == 'reminder' %}
Availability Updated{{ k.reminder_updated or '-' }}
Availability Due{{ k.reminder_due or '-' }}
{% if k.f_first %}
{{ icon('user') }}
{{ k.f_title }} {{ k.f_first }} {{ k.f_last }}
{{ k.f_email }}
{% endif %} {% if k.reminder_message %}
{{ icon('check-circle' if k.reminder_state == 'upcoming' else 'alert') }} {{ k.reminder_message }}
{% endif %} {% elif k.block_type == 'faculty' %} {% if k.f_first %}
{{ icon('user') }}
{{ k.f_title }} {{ k.f_first }} {{ k.f_last }}
{{ k.f_email }}
{% else %}
{{ icon('alert') }} This faculty is no longer in the Faculty List. Edit this KT to choose another.
{% endif %} {% if k.file_path %}
{{ icon('paperclip') }}
{{ k.file_name or 'File' }}
{{ (k.file_type or '')|upper }}{% if k.file_size_h %} · {{ k.file_size_h }}{% endif %}
{{ icon('download') }} Download {% endif %} {% if k.faculty_link %} {{ icon('arrow-right') }} Open link {% endif %} {% else %}
{{ k.text|rich }}
{% endif %}
{% if k.block_type == 'form' %}{{ k.fields|length }} question{{ 's' if k.fields|length != 1 }} {% elif k.block_type == 'attachment' %}Attachment {% elif k.block_type == 'embed' %}Embedded Media {% elif k.block_type == 'link' %}Link {% elif k.block_type == 'alert' %}{{ k.alert_level|capitalize }} alert {% elif k.block_type == 'reminder' %}Reminder {% elif k.block_type == 'faculty' %}Faculty Specific KT {% else %}Description{% endif %} {% if k.f_first and k.block_type not in ('faculty', 'reminder') %}{{ icon('user') }}{{ k.f_title }} {{ k.f_first }} {{ k.f_last }}{% endif %}
{% endfor %}
{% else %}
{{ empty('file-text', 'No KT added yet inside this criteria.') }} {% if user.role in ('admin', 'lead') %}
{{ icon('plus') }} Add the first KT
{% endif %}
{% endif %}
{% endblock %}