🎉 first commit
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Todo index{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Todo index</h1>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Title</th>
|
||||
<th>Completed</th>
|
||||
<th>CreatedAt</th>
|
||||
<th>actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for todo in todos %}
|
||||
<tr>
|
||||
<td>{{ todo.id }}</td>
|
||||
<td>{{ todo.title }}</td>
|
||||
<td>{{ todo.completed ? 'Yes' : 'No' }}</td>
|
||||
<td>{{ todo.createdAt ? todo.createdAt|date('Y-m-d H:i:s') : '' }}</td>
|
||||
<td>
|
||||
<a href="{{ path('app_todo_show', {'id': todo.id}) }}">show</a>
|
||||
<a href="{{ path('app_todo_edit', {'id': todo.id}) }}">edit</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="5">no records found</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('app_todo_new') }}">Create new</a>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user