{% extends "dashboard_base.html" %} {% block title %}{{ t("event-types-page-title") }} — calrs{% endblock %} {% block dashboard_content %}

{{ t("event-types-heading") }}

+ {{ t("event-types-new") }}
{% if has_any %} {% for et in all_event_types %}
{{ et.title }} {% if et.is_team %}{{ et.team_name }}{% endif %} {% if not et.enabled %}{{ t("event-types-badge-disabled") }}{% endif %} {% if et.visibility == "internal" %}{{ t("event-types-badge-internal") }}{% endif %} {% if et.visibility == "private" %}{{ t("event-types-badge-private") }}{% endif %} {% if et.resource_names %}{{ t("event-types-badge-resources") }}{% endif %} {% if et.visibility == "private" or et.visibility == "internal" %} {{ t("event-types-send-invites") }} → {% endif %}
{{ t("event-types-duration", minutes=et.duration_min) }} {% if et.is_team %} · {% if et.scheduling_mode == "collective" %}{{ t("event-types-mode-collective") }}{% else %}{{ t("event-types-mode-round-robin") }}{% endif %}{% endif %} · /{% if et.is_team %}team/{{ et.team_slug }}{% else %}u/{{ username }}{% endif %}/{{ et.slug }}
{# Only where a public URL actually resolves. A private event type is reached through a tokenised invite, so copying its path would hand out a link that 404s; the row offers "Send invites" instead. #} {% if et.view_url %} {% endif %} {% if et.can_manage %} {{ t("event-types-edit") }}
{{ t("event-types-embed") }} {% endif %}
{% if et.can_manage %} {{ t("event-types-overrides") }} {% endif %} {% if et.is_team and et.can_manage %} {{ t("event-types-team-settings") }} {% endif %} {% if (et.visibility == "private" or et.visibility == "internal") and et.can_manage %} {{ t("event-types-invites") }} {% endif %} {% if et.view_url %} {% if et.visibility == "public" %}{{ t("event-types-view-public") }}{% else %}{{ t("event-types-view-page") }}{% endif %} {% endif %} {% if et.can_manage and et.active_bookings == 0 %}
{% endif %}
{% endfor %} {% else %}
📅
{{ t("event-types-empty", link='' ~ (t("event-types-empty-link-label") | escape) ~ '') | safe }}
{% endif %}
{% endblock %}