{# templates/entreprise/profil/show.html.twig #} {% extends 'entreprise/entreprise_base.html.twig' %} {% set labelType = (entreprise.typeCompte == 'ENTREPRISE') ? 'Entreprise / Agence' : 'Bailleur' %} {% block title %}Profil {{ labelType }} | {{ entreprise.raisonSociale }}{% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block body %}
{# --- EN-TÊTE AVEC FIL D'ARIANE --- #}

Gérez l'identité visuelle et les coordonnées officielles de votre structure.

{% include 'flash_messages.html.twig' %} {# FORMULAIRE PRINCIPAL #} {{ form_start(form, {'attr': {'id': 'entreprise-profile-form', 'novalidate': 'novalidate'}}) }}
{# --- COLONNE GAUCHE : FORMULAIRE DÉTAILLÉ --- #}
Informations Officielles
{# Raison Sociale #}
{{ form_widget(form.raisonSociale, {'attr': {'class': 'form-control form-control-lg fw-bold border-2'}}) }} {{ form_errors(form.raisonSociale) }}
{# Email #}
{{ form_widget(form.email, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.email) }}
{# Devise #}
{{ form_widget(form.devise, {'attr': {'class': 'form-select'}}) }}
{{ form_errors(form.devise) }}
{# --- BLOC TÉLÉPHONE (Gestion Unifiée) --- #}
{{ form_widget(form.indicatif_choix, { 'attr': {'class': 'tom-select-country shadow-none', 'placeholder': 'Pays'} }) }} {{ form_widget(form.telephone_local, { 'attr': { 'class': 'form-control fw-bold shadow-none border-start-0', 'placeholder': 'Numéro...', 'style': 'border-top-left-radius: 0; border-bottom-left-radius: 0;' } }) }}
L'indicateur et le numéro doivent être saisis ensemble.
{# Situation Géo #}
{{ form_widget(form.situationGeographique, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.situationGeographique) }}
{# --- COLONNE DROITE : LOGO & SOLDE --- #}
{# Bloc Logo #}
Identité Visuelle
{% if entreprise.logo %} {% endif %}
{% if entreprise.logo %} {% else %} {% endif %}
{{ form_widget(form.logoFile, {'attr': {'class': 'form-control form-control-sm', 'onchange': 'previewImage(this)'}}) }}
Il apparaîtra sur vos reçus, factures et baux.
{# Statut Financier #}
État du compte
Solde disponible : {{ entreprise.soldeCredit|number_format(0, '.', ' ') }} {{ entreprise.devise ? entreprise.devise.codeIso : '---' }}
Type d'abonnement : {{ entreprise.typeCompte }}
{# Aide #}
Besoin d'aide ?

Pour changer votre type de compte ou demander une augmentation de quota, veuillez contacter notre support technique.

{{ form_rest(form) }} {{ form_end(form) }}
{# Formulaire caché pour la suppression du logo #} {% if entreprise.logo %} {% endif %} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}