ninecompta/templates/home/home.html.twig
2024-12-26 17:45:58 +01:00

33 lines
1.4 KiB
Twig

{% extends 'base.html.twig' %}
{% block body %}
<div class="d-flex justify-content-center mt-5">
{% for accounting in accountings %}
<div class="card" style="width:400px">
<div class="card-body d-flex align-items-center">
<div class="ps-4">
<i class="fas {{accounting.icon}} fa-4x"></i>
</div>
<div class="p-3 fs-1 d-flex flex-column flex-grow-1 align-items-center">
<div>{{accounting.title}}</div>
<div>{{accounting.solde}}€</div>
<div class="d-flex ">
<a class="p-3" href="{{path('app_user_operation_submitwithaccounting',{id:accounting.id,direction:'credit'})}}">
<i class="fas fa-minus bg-danger text-white rounded-circle fa-fw" style="height:60px; padding-top:7px;"></i>
</a>
<a class="p-3" href="{{path('app_user_operation_submitwithaccounting',{id:accounting.id,direction:'debit'})}}">
<i class="fas fa-plus bg-success text-white rounded-circle fa-fw" style="height:60px; padding-top:7px;"></i>
</a>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
{% endblock %}