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

{% block title %}ExpensePurpose index{% endblock %}

{% block body %}
    <h1>ExpensePurpose index</h1>

    <table class="table">
        <thead>
            <tr>
                <th>Id</th>
                <th>Name</th>
                <th>actions</th>
            </tr>
        </thead>
        <tbody>
        {% for expense_purpose in expense_purposes %}
            <tr>
                <td>{{ expense_purpose.id }}</td>
                <td>{{ expense_purpose.name }}</td>
                <td>
                    <a href="{{ path('expense_purpose_show', {'id': expense_purpose.id}) }}">show</a>
                    <a href="{{ path('expense_purpose_edit', {'id': expense_purpose.id}) }}">edit</a>
                </td>
            </tr>
        {% else %}
            <tr>
                <td colspan="3">no records found</td>
            </tr>
        {% endfor %}
        </tbody>
    </table>

    <a href="{{ path('expense_purpose_new') }}">Create new</a>
{% endblock %}
