{% extends 'entreprise/entreprise_base.html.twig' %} {% block title %}Gestion des lots | {{ entreprise.raisonSociale|default('Mon Bureau') }}{% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block body %} {# 1. CALCUL DES VARIABLES DE CONTRÔLE #} {% set plan = (abonnementActuel and abonnementActuel.abonnement) ? abonnementActuel.abonnement : null %} {% set totalImmeubles = immeubles|length %} {% set isExpired = (abonnementActuel is null or not abonnementActuel.isActive()) %} {% set quotaAtteint = (plan and plan.limiteImmeuble > 0 and totalImmeubles >= plan.limiteImmeuble) %} {% set canAddImmeuble = (not isExpired and not quotaAtteint) %} {% set canModify = (not isExpired) %}
{{ immeuble.description|striptags|slice(0, 80) }}...
{% endif %}