{% extends 'admin/base.html.twig' %} {% block title %}Changer de plan - {{ site.name }}{% endblock %} {% block breadcrumb %}Tableau de bord Changer de plan{% endblock %} {% block body %}
{# En-tête #}

Changer de plan tarifaire

Site : {{ site.name }}

{% if currentPlan %}
Votre plan actuel : {{ currentPlan.name }} ({{ currentPlan.priceMonthly }}€/mois{% if currentSubscription.billingInterval == 'yearly' %} facturé {{ currentPlan.priceYearly }}€/an{% endif %})
{% else %}
Ce site n'a pas encore d'abonnement actif. Choisissez un plan ci-dessous.
{% endif %}
{# Comparatif des plans #}
{% for plan in plans %} {% set isCurrent = currentPlan and plan.id == currentPlan.id %} {% set isUpgrade = currentPlan and plan.priceMonthly > currentPlan.priceMonthly %} {% set isDowngrade = currentPlan and plan.priceMonthly < currentPlan.priceMonthly and plan.priceMonthly >= 0 %} {% set isFree = plan.priceMonthly == '0.00' %} {% set isPopular = plan.code == 'essential' %}
{# Badge en-tête #} {% if isCurrent %}
Plan actuel
{% elseif isPopular and not isCurrent %}
Populaire
{% endif %}

{{ plan.name }}

{% if isFree %}

Gratuit

{% else %}

{{ plan.priceMonthly }}€

/mois {% endif %}
{% if not isFree %} ou {{ plan.priceYearly }}€/an (économisez {{ (plan.priceMonthly * 12 - plan.priceYearly)|round }}€) {% endif %}
{# Description #}

{{ plan.description|slice(0, 120) }}...

{# Features #}
    {% for feature in plan.features %}
  • {% if feature matches '/^(Avec|Publicité)/i' and not feature matches '/^Sans/i' %} {{ feature }} {% else %} {{ feature }} {% endif %}
  • {% endfor %}
{# Limites techniques #}
Limites techniques :
  • {{ plan.maxSites == 9999 ? 'Sites illimités' : plan.maxSites ~ ' site(s)' }}
  • {{ plan.maxPages == 9999 ? 'Pages illimitées' : plan.maxPages ~ ' pages' }}
  • {{ (plan.maxStorage / 1024)|round(2) }} GB de stockage
{% endfor %}
{# Section informations complémentaires #}
Questions fréquentes

Oui ! Vous pouvez changer de plan à tout moment. Si vous passez à un plan supérieur, le changement est immédiat. Un prorata sera calculé pour la période en cours.

Si vous rétrogradez vers un plan inférieur, le changement sera effectif à la fin de votre période de facturation actuelle. Vous conservez les avantages de votre plan actuel jusqu'à cette date.

Oui, vous pouvez annuler à tout moment. Votre site restera actif jusqu'à la fin de la période payée. Vous pouvez ensuite passer au plan gratuit Starter.
{# Bouton retour #}
{# Modals de confirmation pour chaque plan #} {% for plan in plans %} {% set isCurrent = currentPlan and plan.id == currentPlan.id %} {% if not isCurrent %} {% set isUpgrade = currentPlan and plan.priceMonthly > currentPlan.priceMonthly %} {% set isDowngrade = currentPlan and plan.priceMonthly < currentPlan.priceMonthly and plan.priceMonthly >= 0 %} {% set isFree = plan.priceMonthly == '0.00' %} {% endif %} {% endfor %} {% endblock %}