ninecompta/templates/home/home.html.twig

33 lines
1.4 KiB
Twig
Raw Normal View History

2024-11-18 17:07:22 +01:00
{% extends 'base.html.twig' %}
{% block body %}
2024-12-24 17:29:37 +01:00
2024-12-26 17:45:58 +01:00
<div class="d-flex justify-content-center mt-5">
2024-12-24 17:29:37 +01:00
{% 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>
2024-12-26 17:45:58 +01:00
<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>
2024-12-24 17:29:37 +01:00
</div>
</div>
{% endfor %}
</div>
2024-11-18 17:07:22 +01:00
{% endblock %}