{% macro _change_type_confirmation(type) %} {% trans -%} Changing the event type to {{ type }} will change the look of the event page and may disable some features not available for the new event type. {%- endtrans %} {% endmacro %} {% macro _render_change_event_type(event, event_types) %} {% endmacro %} {% macro _render_lock_event(event) %} {% if not event.can_lock(session.user) %} {% if event.is_locked %} {% else %} {% endif %} {% else %} {% if event.is_locked %} {% else %} {% endif %} {% endif %} {% endmacro %} {% macro _render_move_event(event) %} {% endmacro %} {% macro _render_delete_event(event) %} {% endmacro %} {% macro render_action_menu(event, event_types) %} {% set clones = event.clones|rejectattr('is_deleted')|list %}
{% if event.can_manage(session.user) %}
{{ _render_move_event(event) }} {{ _render_lock_event(event) }} {{ _render_delete_event(event) }} {{ _render_change_event_type(event, event_types) }}
{% trans %}Events cloned from the current event:{% endtrans %}
{% endif %}
{% endmacro %}