mirror of
https://forge.chapril.org/tykayn/caisse-bliss
synced 2025-10-09 17:02:47 +02:00
up templates
This commit is contained in:
parent
71bce538af
commit
a39b6239b0
71 changed files with 1536 additions and 262 deletions
37
templates/expense/index.html.twig
Normal file
37
templates/expense/index.html.twig
Normal file
|
@ -0,0 +1,37 @@
|
|||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Expense index{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Expense index</h1>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Name</th>
|
||||
<th>Price</th>
|
||||
<th>actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for expense in expenses %}
|
||||
<tr>
|
||||
<td>{{ expense.id }}</td>
|
||||
<td>{{ expense.name }}</td>
|
||||
<td>{{ expense.price }}</td>
|
||||
<td>
|
||||
<a href="{{ path('app_expense_show', {'id': expense.id}) }}">show</a>
|
||||
<a href="{{ path('app_expense_edit', {'id': expense.id}) }}">edit</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="4">no records found</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('app_expense_new') }}">Create new</a>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue