{% extends 'base.html.twig' %} {% block title %}Nouveau contrat - {{ company.name }} - Admin{% endblock %} {% block body %}
{# ================================================================ HEADER ================================================================ #}
{% include '_molecules/page-header/page-header.html.twig' with { title: 'Nouveau contrat', subtitle: 'Créer un contrat pour ' ~ company.name, icon: 'plus', iconColor: 'primary', backHref: path('admin_company_show', {uuid: company.uuid}), backLabel: 'Retour à l\'entreprise' } only %}
{# ================================================================ FORMULAIRE ================================================================ #} {% embed '_molecules/card/card.html.twig' with { title: 'Informations du contrat', subtitle: 'Définissez les paramètres et les droits du contrat', icon: 'file-text', iconColor: 'primary' } %} {% block body %} {{ form_start(form, {'attr': {'class': 'space-y-6'}}) }} {% include 'admin/contract/_form_fields.html.twig' %} {# Actions #}
{% include '_atoms/button/button.html.twig' with { label: 'Annuler', variant: 'ghost', size: 'lg', href: path('admin_company_show', {uuid: company.uuid}) } only %}
{% include '_atoms/button/button.html.twig' with { label: 'Créer le contrat', variant: 'primary', size: 'lg', type: 'submit', width: 'full' } only %}
{{ form_end(form) }} {% endblock %} {% endembed %}
{% endblock %}