{% extends '@Core/admin/crud/edit.html.twig' %}

{% block header %}
    {% if header_actions_dropdown_menu is not defined %}
        {% set header_actions_dropdown_menu = '' %}
    {% endif %}

    {% if entity.isQuick %}
        {% set item %}
            <a href="{{ path(configuration.pageRoute('fetch_quick_data'), {entity: entity.id}|merge(configuration.pageRouteParams('fetch_quick_data'))) }}" class="dropdown-item">
                {{ configuration.actionTitle(context, 'fetch_quick_data', 'Récupérer données Quick')|trans|build_string(entity) }}
            </a>
        {% endset %}

        {% set header_actions_dropdown_menu = header_actions_dropdown_menu ~ item %}
    {% endif %}

    {% set item %}
        <a href="{{ safe_path('blog_menu_post', {post: entity.id, slug: entity.slug}) }}" class="dropdown-item" target="_blank">
            Voir en ligne
        </a>
    {% endset %}

    {% set header_actions_dropdown_menu = header_actions_dropdown_menu ~ item %}

    {{ parent() }}
{% endblock %}
