Added:
- activity on menu - starting activity page
This commit is contained in:
39
templates/activity/index.html.twig
Normal file
39
templates/activity/index.html.twig
Normal file
@@ -0,0 +1,39 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
{% block body %}
|
||||
{# TODO styliser cette page #}
|
||||
<table class="min-w-full bg-white">
|
||||
<thead class="bg-gray-800 text-white">
|
||||
<tr>
|
||||
<th class="w-1/12 py-2 px-4">
|
||||
<input type="checkbox">
|
||||
</th>
|
||||
<th class="w-2/12 py-2 px-4 text-left">Manga</th>
|
||||
<th class="w-1/12 py-2 px-4 text-left">Volume</th>
|
||||
<th class="w-4/12 py-2 px-4 text-left">Chapter</th>
|
||||
<th class="w-1/12 py-2 px-4 text-left">Title</th>
|
||||
<th class="w-1/12 py-2 px-4 text-left">Actions</th>
|
||||
|
||||
<th class="w-1/12 py-2 px-4"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="text-gray-700">
|
||||
{% for manga in status %}
|
||||
<tr class="border-b">
|
||||
<td class="py-2 px-4 text-center">
|
||||
<input type="checkbox">
|
||||
</td>
|
||||
<td class="py-2 px-4">{{ manga.manga }}</td>
|
||||
<td class="py-2 px-4">{{ manga.volume }}</td>
|
||||
<td class="py-2 px-4">{{ manga.chapter }}</td>
|
||||
<td class="py-2 px-4">{{ manga.title }}</td>
|
||||
<td class="py-2 px-4 text-center">
|
||||
<button class="text-red-500 hover:text-red-700">×</button>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="mt-4">
|
||||
<span>Total records: {{ status|length }}</span>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -21,9 +21,18 @@
|
||||
<i class="fas fa-calendar-alt mr-2"></i>
|
||||
<span>Calendrier</span>
|
||||
</li>
|
||||
<li class="mb-4 pl-8 flex items-center hover:text-green-600">
|
||||
<i class="fas fa-clock mr-2"></i>
|
||||
<span>Activité</span>
|
||||
<li class="mb-4 pl-8 hover:text-green-600">
|
||||
<a href="{{ path('app_activity') }}">
|
||||
<div data-controller="activity" class="flex flew-row justify-between">
|
||||
<div class="flex flex-row">
|
||||
<i class="fas fa-clock mr-2"></i>
|
||||
<span>Activité</span>
|
||||
</div>
|
||||
{# TODO le texte doit être blanc au survol #}
|
||||
<span data-activity-target="activity"
|
||||
class="bg-green-500 rounded px-2 mr-4 hover:text-white hidden"></span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class="mb-4 pl-8 flex items-center hover:text-green-600">
|
||||
<i class="fas fa-cog mr-2"></i>
|
||||
|
||||
Reference in New Issue
Block a user