{% extends 'base.html.twig' %} {% block title %}Gestion des offres - Admin{% endblock %} {% block body %}
| Ordre | Nom | Prix TTC | Tokens/mois | Recommandé | Statut | Actions |
|---|---|---|---|---|---|---|
| {{ plan.sortOrder }} |
{{ plan.name }} {% if plan.tagline %}{{ plan.tagline }} {% endif %} |
{% if plan.priceAnnual %} {{ plan.priceAnnual }}€ /mois TTC {% else %} Sur mesure {% endif %} | {{ plan.tokensLabel ?? (plan.monthlyTokens|number_format(0, ',', ' ')) }} | {% if plan.isRecommended %} {% include '_atoms/badge/badge.html.twig' with { label: 'Oui', variant: 'success', size: 'sm' } only %} {% else %} — {% endif %} | {% if plan.isActive %} {% include '_atoms/badge/badge.html.twig' with { label: 'Active', variant: 'success', size: 'sm' } only %} {% else %} {% include '_atoms/badge/badge.html.twig' with { label: 'Masquée', variant: 'gray', size: 'sm' } only %} {% endif %} |
{% include '_atoms/button/button.html.twig' with {
variant: 'ghost',
size: 'sm',
icon: 'edit',
href: path('admin_plan_edit', {id: plan.id}),
attr: { title: 'Modifier' }
} only %}
|
| {% include '_molecules/empty-state/empty-state.html.twig' with { title: 'Aucune offre enregistrée', description: 'Créez la première offre pour qu\'elle apparaisse dans le tableau des tarifs.', icon: 'tag', variant: 'minimal', actions: [{ label: 'Créer une offre', href: path('admin_plan_new'), variant: 'primary', icon: 'plus' }] } only %} | ||||||