{% extends 'admin/layout.html.twig' %} {% import 'admin/_macros.html.twig' as m %} {% block title %}Tarifs{% endblock %} {% block main %}

Gestion des Tarifs

+ Nouvelle section
{% for section in sections %}

{{ section.title }} {% if not section.isActive %}Masquée{% endif %}

{% if section.note %}

{{ section.note }}

{% endif %}
{{ m.btn_edit(path('admin_tarifs_section_edit', {id: section.id}), 'Modifier la section') }} {{ m.btn_del(path('admin_tarifs_section_delete', {id: section.id}), 'delete-section-' ~ section.id, 'Supprimer cette section et tout son contenu ?') }}
{% if section.cards is not empty %}
{% for card in section.cards %} {% endfor %}
FormulePrixEn avantVisible
{{ card.title }} {% if card.subtitle %}{{ card.subtitle }}{% endif %} {{ card.priceMainAmount }} {{ card.priceMainUnit }} {% if card.featured %} {% else %}—{% endif %} {{ card.isActive ? '✓' : '✗' }}
{{ m.btn_edit(path('admin_tarifs_card_edit', {id: card.id})) }} {{ m.btn_del(path('admin_tarifs_card_delete', {id: card.id}), 'delete-card-' ~ card.id, 'Supprimer cette formule ?') }}
{% endif %} {% if section.services is not empty %}
{% for svc in section.services %} {% endfor %}
PrestationPrix TTCVisible
{{ svc.label }} {{ svc.price }} {{ svc.isActive ? '✓' : '✗' }}
{{ m.btn_edit(path('admin_tarifs_service_edit', {id: svc.id})) }} {{ m.btn_del(path('admin_tarifs_service_delete', {id: svc.id}), 'delete-service-' ~ svc.id, 'Supprimer cette prestation ?') }}
{% endif %}
+ Formule + Prestation
{% else %}
Aucune section. Créer la première
{% endfor %} {% endblock %}