{% extends '::base.html.twig' %}

{% block body -%}
    <h1>LaborLoop</h1>

    <table class="record_properties">
        <tbody>
            <tr>
                <th>Id</th>
                <td>{{ entity.id }}</td>
            </tr>
            <tr>
                <th>Date</th>
                <td>{{ entity.date|date('Y-m-d H:i:s') }}</td>
            </tr>
            <tr>
                <th>Started_at</th>
                <td>{{ entity.startedat }}</td>
            </tr>
            <tr>
                <th>Finished_at</th>
                <td>{{ entity.finishedat }}</td>
            </tr>
        </tbody>
    </table>

        <ul class="record_actions">
    <li>
        <a href="{{ path('loops') }}">
            Back to the list
        </a>
    </li>
    <li>
        <a href="{{ path('loops_edit', { 'id': entity.id }) }}">
            Edit
        </a>
    </li>
    <li>{{ form(delete_form) }}</li>
</ul>
{% endblock %}
