{% extends 'base.html.twig' %} {% block title %}Representation index{% endblock %} {% block body %} <h1>Representation index</h1> <table class="table"> <thead> <tr> <th>Employee</th> <th>Ride</th> <th>Count</th> <th>Date</th> <th>actions</th> </tr> </thead> <tbody> {% for representation in representations %} <tr> <td>{{ representation.employee }}</td> <td>{{ representation.ride }}</td> <td>{{ representation.count }}</td> <td>{{ representation.date ? representation.date|date('Y-m-d H:i:s') : '' }}</td> <td> <a href="{{ path('representation_show', {'employee': representation.employee}) }}">show</a> <a href="{{ path('representation_edit', {'employee': representation.employee}) }}">edit</a> </td> </tr> {% else %} <tr> <td colspan="5">no records found</td> </tr> {% endfor %} </tbody> </table> <a href="{{ path('representation_new') }}">Create new</a> {% endblock %}