suivi/templates/admin/bill/edit.html.twig
2023-04-10 16:47:59 +02:00

16 lines
589 B
Twig

{% extends '@Core/admin/crud/edit.html.twig' %}
{% block header_actions_after %}
{% if entity.status == 0 %}
<a href="{{ path('admin_bill_update_status', {entity: entity.id, status: 1, _token: csrf_token('update_status')}) }}" class="btn btn-success">
Demander le paiement
</a>
{% endif %}
{% if entity.status == 1 %}
<a href="{{ path('admin_bill_update_status', {entity: entity.id, status: 2, _token: csrf_token('update_status')}) }}" class="btn btn-success">
Définir comme payée
</a>
{% endif %}
{% endblock %}