{% extends "base.html" %} {% from 'macros/help.html' import help_icon %} {% from 'macros/badges.html' import badge_info %} {% block title %}Akce — MedCover{% endblock %} {# ── Helper macro: generate events.index URL preserving all active filters ── #} {% macro filter_url(page=None, archived=None) %} {{- url_for('events.index', page=page, statuses=active_statuses|join(','), types=active_types|join(',') if active_types|length < all_event_types|length else None, me_id=active_me.id if active_me else None, sort=sort_col if sort_col != 'start' else None, dir=sort_dir if sort_col != 'start' or sort_dir != 'asc' else None, archived=1 if (archived if archived is not none else show_archived) else None, for_me=1 if for_me else None, ) -}} {%- endmacro %} {% block content %}
| Název {{ sort_icon('name') }} | Začátek {{ sort_icon('start') }} | Stav {{ sort_icon('status') }} | Obsazení {{ sort_icon('total') }} |
Zodpovědná osoba {{ sort_icon('rp') }} |
Nadřazená akce {{ sort_icon('me_name') }} |
||
|---|---|---|---|---|---|---|---|
| {{ event.name }}{% if not event.master_event.is_general %} ({{ event.master_event.name }}){% endif %} {% if event.paid %}Placená{% else %}Neplacená{% endif %} {% if event.event_type != EventType.MEDICAL_COVER %} {{ event.event_type.value }} {% endif %} | {{ event.start_datetime | localdt("%d.%m.%Y") }} {{ event.start_datetime | czechday }} {{ event.start_datetime | localdt("%H:%M") }} ({{ event.scheduled_hours | cznum(strip=True) }} h) |
{% if event.status == EventStatus.CANCELLED %} |
{% if event.status == EventStatus.CANCELLED %}— {% else %} {{ mand_filled }}/{{ mand_total }} {% if opt_total > 0 %} {{ badge_info('+' ~ opt_total ~ '\u00a0vol.', extra_classes='ms-1 font-65') }} {% endif %} {% endif %} | {% if event.responsible_person %} {{ event.responsible_person.name }} {% elif event.status.name not in ('DRAFT', 'CANCELLED') %} Chybí {% else %} — {% endif %} | {% if not event.master_event.is_general %}{{ event.master_event.name }}{% else %}—{% endif %} | {% set eligible_spots = eligible_spot_map.get(event.id) %} {% if eligible_spots %} {% if eligible_spots | length == 1 %} {% else %} {% endif %} {% endif %} |
Žádné akce neodpovídají aktivním filtrům.
{% endif %}