{% extends "dashboard_base.html" %} {% block title %}{% if editing %}Edit{% else %}New{% endif %} event type — calrs{% endblock %} {% block dashboard_content %} {% if error %}
{{ error }}
{% endif %}
{% if preset is defined and preset %}
{% if preset == "public" %} 🌐 {{ t("etf-preset-public") | safe }} {% elif preset == "private" %} 🔒 {{ t("etf-preset-private") | safe }} {% elif preset == "internal" %} 🏢 {{ t("etf-preset-internal") | safe }} {% elif preset == "team" %} 👥 {{ t("etf-preset-team") | safe }} {% endif %}
{% endif %}

{% if editing %}{{ t("etf-heading-edit") }}{% else %}{{ t("etf-heading-new") }}{% endif %}

{% if not editing and teams is defined and teams %}
{% endif %}
{{ t("etf-scheduling-mode-help") }}
{{ t("etf-description-help") }}
{{ t("etf-slot-interval-help") }}
{% if priority_members is defined and priority_members %} {% set is_collective_card = is_collective_team is defined and is_collective_team %}
{% if is_collective_card %}

{{ t("etf-required-members") }}

{{ t("etf-required-members-help") }}

{% else %}

{{ t("etf-member-priority") }}

{{ t("etf-member-priority-help") }}

{% endif %} {% for m in priority_members %}
0 %}checked{% endif %} style="accent-color: var(--accent); width: 1rem; height: 1rem; flex-shrink: 0; cursor: pointer;" onchange="toggleMember('{{ m.user_id }}', this.checked)">
{% if m.has_avatar %} {% else %} {{ m.initials }} {% endif %}
{{ m.name }}
{% if m.timezone %}
{{ m.timezone }}
{% endif %}
{% if not is_collective_card %}
{% endif %}
{% endfor %}
{% endif %} {% if not editing %} {% endif %}

{{ t("etf-section-availability") }}

{{ t("etf-timezone-help") }}
{{ t("etf-availability-prefilled", link='' ~ (t("etf-availability-prefilled-link") | escape) ~ '') | safe }}
0) or (form_reschedule_notice_value is defined and form_reschedule_notice_value and form_reschedule_notice_value > 0) or (form_booking_horizon_days is defined and form_booking_horizon_days)) %} open{% endif %}>

{{ t("etf-section-buffers") }}

{{ t("etf-min-notice-help") }}
{{ t("event-type-form-notice-help") }}
{{ t("event-type-form-notice-help") }}
{{ t("event-type-form-booking-horizon-help") }}

{{ t("etf-section-limits") }}

{{ t("etf-first-slot-only") }}
{{ t("etf-first-slot-only-help") }}
{{ t("etf-freq-limit") }}
{{ t("etf-freq-limit-help") }}

{{ t("etf-section-options") }}

{% if can_enable_sms is defined and can_enable_sms %}
{{ t("etf-sms-help", link='' ~ (t("etf-admin-panel-link") | escape) ~ '') | safe }}
{% endif %}
{{ t("etf-additional-guests-help") }}
{{ t("etf-default-view-help") }}
{% if calendars is defined and calendars %}
{{ t("etf-conflict-calendars-help") }}
{% set selected_padded = "," ~ selected_calendar_ids ~ "," %} {% for cal in calendars %} {% endfor %}
{% endif %} {% if resources_all is defined and resources_all %}
{{ t("event-type-form-resources-hint") }}
{% set selected_res_padded = "," ~ selected_resource_ids ~ "," %} {% for r in resources_all %} {% endfor %}
{% elif can_manage_resources is defined and can_manage_resources %}
{{ t("etf-no-resources", link='' ~ (t("etf-admin-panel-link") | escape) ~ '') | safe }}
{% endif %}

{{ t("etf-section-access") }}

{{ t("etf-visibility-help") }}
{{ t("etf-reminder-help") }}
{% if editing and not is_group and owner_username and form_visibility == "public" %}

{{ t("etf-dynamic-group") }}

{{ t("etf-dynamic-group-help") }}

{{ t("etf-dynamic-group-note") }}
{% endif %} {% if is_group is defined and is_group and watcher_teams is defined and watcher_teams %}

{{ t("etf-watcher-teams") }}

{{ t("etf-watcher-teams-help") }}
{% set watcher_padded = "," ~ selected_watcher_team_ids ~ "," %} {% for wt in watcher_teams %} {% endfor %}
{% endif %}
{% endblock dashboard_content %}