{% form_theme form '@CpCreationVitiCore/admin/shop/config/_theme.html.twig' %}

<div {{ attributes }}>
    {{ form_start(form, {
        attr: {
            class: 'grid gap-4',
            'data-action': 'live#action:prevent',
            'data-live-action-param': 'files|save',
            novalidate: 'true'
        }
    }) }}
        <div class="flex flex-wrap items-center justify-end gap-3 rounded-md border border-stone-200 bg-white p-3 shadow-[0_8px_20px_rgba(61,43,23,0.05)]">
            <a href="{{ path('admin_settings') }}" class="inline-flex min-h-10 items-center justify-center rounded border border-stone-200 bg-white px-4 text-sm font-bold text-stone-600 transition hover:border-[#9d7c47] hover:text-stone-900 focus:border-[#9d7c47] focus:outline-none">
                Annuler
            </a>
            <button type="submit" class="inline-flex min-h-10 items-center justify-center rounded border border-[#9d7c47] bg-[#9d7c47] px-4 text-sm font-bold text-white transition hover:border-[#80622f] hover:bg-[#80622f] focus:border-[#80622f] focus:bg-[#80622f] focus:outline-none disabled:cursor-not-allowed disabled:opacity-60" data-loading="addAttribute(disabled)">
                Enregistrer
            </button>
        </div>

        {{ include('@CpCreationVitiCore/admin/shop/config/_form.html.twig', { form: form }, with_context=false) }}

        <div class="flex flex-wrap items-center justify-end gap-3 rounded-md border border-stone-200 bg-white p-3 shadow-[0_8px_20px_rgba(61,43,23,0.05)]">
            <a href="{{ path('admin_settings') }}" class="inline-flex min-h-10 items-center justify-center rounded border border-stone-200 bg-white px-4 text-sm font-bold text-stone-600 transition hover:border-[#9d7c47] hover:text-stone-900 focus:border-[#9d7c47] focus:outline-none">
                Annuler
            </a>
            <button type="submit" class="inline-flex min-h-10 items-center justify-center rounded border border-[#9d7c47] bg-[#9d7c47] px-4 text-sm font-bold text-white transition hover:border-[#80622f] hover:bg-[#80622f] focus:border-[#80622f] focus:bg-[#80622f] focus:outline-none disabled:cursor-not-allowed disabled:opacity-60" data-loading="addAttribute(disabled)">
                Enregistrer
            </button>
        </div>
    {{ form_end(form) }}
</div>
