|
|
@@ -1,47 +1,52 @@ |
|
|
{% extends 'base.html.twig' %} |
|
|
{% extends 'base.html.twig' %} |
|
|
{% block stylesheets%} |
|
|
{% endblock %} |
|
|
{% block body %} |
|
|
<div id="page-wrapper"> |
|
|
<!-- /.row --> |
|
|
<div class="row" style="padding: 30px"> |
|
|
<div class="col-lg-12"> |
|
|
<div class="panel panel-default"> |
|
|
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pb-2 mb-3 border-bottom"> |
|
|
<h1 class="h2">Leden</h1> |
|
|
</div> |
|
|
<!-- /.panel-heading --> |
|
|
<div class="panel-body"> |
|
|
<table width="100%" class="table table-striped table-bordered table-hover" id="dataTables-example"> |
|
|
<thead> |
|
|
<tr> |
|
|
<tr> |
|
|
<th>ID</th> |
|
|
<th>Voornaam</th> |
|
|
<th>Achternaam</th> |
|
|
<th>Email</th> |
|
|
<th>Geboortedatum</th> |
|
|
<th>Telefoonnummer</th> |
|
|
<th></th> |
|
|
<th></th> |
|
|
</tr> |
|
|
</thead> |
|
|
<tbody> |
|
|
{% for customer in customers %} |
|
|
<tr> |
|
|
<td><a href="{{ path('customer_show', { 'id': customer.id }) }}">{{ customer.id }}</a></td> |
|
|
<td>{{ customer.firstName }}</td> |
|
|
<td>{{ customer.lastName }}</td> |
|
|
<td>{{ customer.email }}</td> |
|
|
<td>{% if customer.dateOfBirth %}{{ customer.dateOfBirth|date('Y-m-d') }}{% endif %}</td> |
|
|
<td>{{ customer.telephoneNumber }}</td> |
|
|
<td><a class="btn btn-primary my-2" href="{{ path('customer_show', { 'id': customer.id }) }}">Info</a></td> |
|
|
<td><a class="btn btn-info" href="{{ path('customer_edit', { 'id': customer.id }) }}">Bewerk</a></td> |
|
|
</tr> |
|
|
{% endfor %} |
|
|
</tbody> |
|
|
</table> |
|
|
|
|
|
{% block body %} |
|
|
<h1>Customers list</h1> |
|
|
<a class="btn btn-success" href="{{ path('customer_new') }}">Creƫer nieuw lid</a> |
|
|
|
|
|
<table> |
|
|
<thead> |
|
|
<tr> |
|
|
<th>Id</th> |
|
|
<th>Firstname</th> |
|
|
<th>Lastname</th> |
|
|
<th>Email</th> |
|
|
<th>Dateofbirth</th> |
|
|
<th>Telephonenumber</th> |
|
|
<th>Actions</th> |
|
|
</tr> |
|
|
</thead> |
|
|
<tbody> |
|
|
{% for customer in customers %} |
|
|
<tr> |
|
|
<td><a href="{{ path('customer_show', { 'id': customer.id }) }}">{{ customer.id }}</a></td> |
|
|
<td>{{ customer.firstName }}</td> |
|
|
<td>{{ customer.lastName }}</td> |
|
|
<td>{{ customer.email }}</td> |
|
|
<td>{% if customer.dateOfBirth %}{{ customer.dateOfBirth|date('Y-m-d') }}{% endif %}</td> |
|
|
<td>{{ customer.telephoneNumber }}</td> |
|
|
<td> |
|
|
<ul> |
|
|
<li> |
|
|
<a href="{{ path('customer_show', { 'id': customer.id }) }}">show</a> |
|
|
</li> |
|
|
<li> |
|
|
<a href="{{ path('customer_edit', { 'id': customer.id }) }}">edit</a> |
|
|
</li> |
|
|
</ul> |
|
|
</td> |
|
|
</tr> |
|
|
{% endfor %} |
|
|
</tbody> |
|
|
</table> |
|
|
|
|
|
<ul> |
|
|
<li> |
|
|
<a href="{{ path('customer_new') }}">Create a new customer</a> |
|
|
</li> |
|
|
</ul> |
|
|
{% endblock %} |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
{% endblock %} |