{% extends 'layouts/authenticated.html.twig' %} {% block page_title %}{{ page_title }}{% endblock %} {% block content %}
{# Header #}

{{ page_title }}

Remplissez les informations de la nouvelle entreprise

Retour
{# Form #}
{{ form_start(companyForm, {'attr': {'class': 'space-y-8', 'data-controller': 'form-submit', 'enctype': 'multipart/form-data'}}) }} {# Section 1: General Information #}

Informations générales

Les informations de base de l'entreprise

{# Company Name (Full Width) #}
{{ form_label(companyForm.name, null, {'label_attr': {'class': 'block text-sm font-medium text-gray-700'}}) }} {{ form_widget(companyForm.name, { 'attr': { 'class': 'mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm transition-all duration-200' } }) }} {{ form_errors(companyForm.name) }}
{# Logo Upload (Full Width) #}
{{ form_label(companyForm.logo, null, {'label_attr': {'class': 'block text-sm font-medium text-gray-700'}}) }}
{{ form_widget(companyForm.logo, { 'attr': { 'class': 'block w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-md file:border-0 file:text-sm file:font-semibold file:bg-indigo-50 file:text-indigo-700 hover:file:bg-indigo-100 transition-all duration-200', 'onchange': 'previewLogo(event)' } }) }}
{{ form_help(companyForm.logo) }} {{ form_errors(companyForm.logo) }}
{# Description (Full Width) #}
{{ form_label(companyForm.description, null, {'label_attr': {'class': 'block text-sm font-medium text-gray-700'}}) }} {{ form_widget(companyForm.description, { 'attr': { 'class': 'mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm transition-all duration-200', 'rows': 4 } }) }} {{ form_errors(companyForm.description) }}
{# Section 2: Contact Information #}

Coordonnées

Informations de contact de l'entreprise

{# Email #}
{{ form_label(companyForm.email, null, {'label_attr': {'class': 'block text-sm font-medium text-gray-700'}}) }} {{ form_widget(companyForm.email, { 'attr': { 'class': 'mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm transition-all duration-200' } }) }} {{ form_errors(companyForm.email) }}
{# Phone #}
{{ form_label(companyForm.phone, null, {'label_attr': {'class': 'block text-sm font-medium text-gray-700'}}) }} {{ form_widget(companyForm.phone, { 'attr': { 'class': 'mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm transition-all duration-200' } }) }} {{ form_errors(companyForm.phone) }}
{# Website #}
{{ form_label(companyForm.website, null, {'label_attr': {'class': 'block text-sm font-medium text-gray-700'}}) }} {{ form_widget(companyForm.website, { 'attr': { 'class': 'mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm transition-all duration-200' } }) }} {{ form_errors(companyForm.website) }}
{# Section 3: Address #}

Adresse

Localisation de l'entreprise

{# Address (Full Width) #}
{{ form_label(companyForm.address, null, {'label_attr': {'class': 'block text-sm font-medium text-gray-700'}}) }} {{ form_widget(companyForm.address, { 'attr': { 'class': 'mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm transition-all duration-200' } }) }} {{ form_errors(companyForm.address) }}
{# Postal Code #}
{{ form_label(companyForm.postalCode, null, {'label_attr': {'class': 'block text-sm font-medium text-gray-700'}}) }} {{ form_widget(companyForm.postalCode, { 'attr': { 'class': 'mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm transition-all duration-200' } }) }} {{ form_errors(companyForm.postalCode) }}
{# City #}
{{ form_label(companyForm.city, null, {'label_attr': {'class': 'block text-sm font-medium text-gray-700'}}) }} {{ form_widget(companyForm.city, { 'attr': { 'class': 'mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm transition-all duration-200' } }) }} {{ form_errors(companyForm.city) }}
{# Country #}
{{ form_label(companyForm.country, null, {'label_attr': {'class': 'block text-sm font-medium text-gray-700'}}) }} {{ form_widget(companyForm.country, { 'attr': { 'class': 'mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm transition-all duration-200' } }) }} {{ form_errors(companyForm.country) }}
{# Section 4: Legal Information #}

Informations légales

Numéros d'identification légaux

{# NINEA #}
{{ form_label(companyForm.ninea, null, {'label_attr': {'class': 'block text-sm font-medium text-gray-700'}}) }} {{ form_widget(companyForm.ninea, { 'attr': { 'class': 'mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm font-mono transition-all duration-200' } }) }} {{ form_help(companyForm.ninea) }} {{ form_errors(companyForm.ninea) }}
{# RCCM #}
{{ form_label(companyForm.rccm, null, {'label_attr': {'class': 'block text-sm font-medium text-gray-700'}}) }} {{ form_widget(companyForm.rccm, { 'attr': { 'class': 'mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm font-mono transition-all duration-200' } }) }} {{ form_help(companyForm.rccm) }} {{ form_errors(companyForm.rccm) }}
{# Is Active Checkbox #}
{{ form_widget(companyForm.isActive, { 'attr': { 'class': 'focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded transition-transform duration-200' } }) }}
{{ form_label(companyForm.isActive, null, {'label_attr': {'class': 'font-medium text-gray-700'}}) }}

L'entreprise sera immédiatement active après création

{{ form_errors(companyForm.isActive) }}
{# Section: Manager Assignment (only during creation) #} {% if companyForm.manager is defined %}

Manager responsable

Assignez un manager qui sera responsable de cette entreprise (optionnel)

{{ form_label(companyForm.manager, null, {'label_attr': {'class': 'block text-sm font-medium text-gray-700'}}) }} {{ form_widget(companyForm.manager, { 'attr': { 'class': 'mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm transition-all duration-200' } }) }} {{ form_errors(companyForm.manager) }}

Le manager pourra consulter l'entreprise et gérer les employés.

{% endif %} {# Submit Buttons #}
Annuler
{{ form_end(companyForm) }}
{# Logo Preview Script #} {% endblock %}