Added Task crud

This commit is contained in:
Joren de Graaf
2026-08-07 21:37:38 +02:00
parent 5026d1cedb
commit cb1c9acefc
15 changed files with 665 additions and 5 deletions
+58
View File
@@ -0,0 +1,58 @@
{% extends 'base.html.twig' %}
{% block title %}Task{% endblock %}
{% block body %}
<h1>Task</h1>
<table class="table">
<tbody>
<tr>
<th>Id</th>
<td>{{ task.id }}</td>
</tr>
<tr>
<th>Title</th>
<td>{{ task.title }}</td>
</tr>
<tr>
<th>Description</th>
<td>{{ task.description }}</td>
</tr>
<tr>
<th>EstimatedDurationMinutes</th>
<td>{{ task.estimatedDurationMinutes }}</td>
</tr>
<tr>
<th>Priority</th>
<td>{{ task.priority }}</td>
</tr>
<tr>
<th>Category</th>
<td>{{ task.category }}</td>
</tr>
<tr>
<th>IsRecurring</th>
<td>{{ task.isRecurring ? 'Yes' : 'No' }}</td>
</tr>
<tr>
<th>IsActive</th>
<td>{{ task.isActive ? 'Yes' : 'No' }}</td>
</tr>
<tr>
<th>CreatedAt</th>
<td>{{ task.createdAt ? task.createdAt|date('Y-m-d H:i:s') : '' }}</td>
</tr>
<tr>
<th>UpdatedAt</th>
<td>{{ task.updatedAt ? task.updatedAt|date('Y-m-d H:i:s') : '' }}</td>
</tr>
</tbody>
</table>
<a href="{{ path('app_task_index') }}">back to list</a>
<a href="{{ path('app_task_edit', {'id': task.id}) }}">edit</a>
{{ include('task/_delete_form.html.twig') }}
{% endblock %}