Files
sprawozdania/project/templates/customers/list.html.twig
T
2024-07-25 10:54:27 +02:00

45 lines
2.3 KiB
Twig

{% extends 'base.html.twig' %}
{% block body %}
<div class="row place customers_list justify-content-md-center row" data-controller="customers">
{% if customers %}
<div class="col-xl-8 col-lg-10 card">
<div class="card-header">
<div class="form-floating">
<input type="text" class="form-control" placeholder="Szukaj..." id="customerListSearch">
<label for="customerListSearch">Szukaj...</label>
</div>
</div>
<div class="table-responsive card-body">
<table class="table table-hover table-bordered">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Imię i nazwisko</th>
<th scope="col">Adres</th>
{# <th scope="col">NIP</th>#}
{# <th scope="col">E-mail</th>#}
<th scope="col">Data prawomocnosci</th>
<th scope="col">Data obwieszczenia</th>
{# <th scope="col">Akcja</th>#}
</tr>
</thead>
<tbody id="customerListTable" class="">
{% for customer in customers %}
<tr>
<th scope="row">{{ loop.index }}</th>
<td><a href="{{ path('app_client',{id: customer.id}) }}">{{ customer.strName }}</a></td>
<td>{{ customer.strAddress }}</td>
{# <td>{{ customer.intNIP }}</td>#}
{# <td>{{ customer.strEmail }}</td>#}
<td>{{ customer.dateLegitimacy | date("d-m-Y") }}</td>
<td>{{ customer.dateProclamation | date("d-m-Y") }}</td>
{# <td></td>#}
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endif %}
</div>
{% endblock %}