Files
notytex/templates/classes.html

64 lines
3.3 KiB
HTML

{% extends "base.html" %}
{% block title %}Classes - Gestion Scolaire{% endblock %}
{% block content %}
<div class="space-y-6">
<div class="flex justify-between items-center">
<h1 class="text-2xl font-bold text-gray-900">Gestion des classes</h1>
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md transition-colors">
Nouvelle classe
</button>
</div>
{% if classes %}
<div class="bg-white shadow overflow-hidden sm:rounded-md">
<ul class="divide-y divide-gray-200">
{% for class in classes %}
<li>
<div class="px-4 py-4 flex items-center justify-between">
<div class="flex items-center">
<div class="flex-shrink-0">
<div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center">
<span class="text-sm font-medium text-blue-600">{{ class.name[:2] }}</span>
</div>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">{{ class.name }}</div>
<div class="text-sm text-gray-500">
Année {{ class.year }} - {{ class.students|length }} élève(s)
</div>
{% if class.description %}
<div class="text-sm text-gray-500 mt-1">{{ class.description }}</div>
{% endif %}
</div>
</div>
<div class="flex space-x-2">
<button class="text-indigo-600 hover:text-indigo-900 text-sm font-medium">
Voir élèves
</button>
<button class="text-gray-600 hover:text-gray-900 text-sm font-medium">
Modifier
</button>
</div>
</div>
</li>
{% endfor %}
</ul>
</div>
{% else %}
<div class="text-center py-12">
<svg class="mx-auto h-12 w-12 text-gray-400" stroke="currentColor" fill="none" viewBox="0 0 48 48">
<path d="M34 40h10v-4a6 6 0 00-10.712-3.714M34 40H14m20 0v-4a9.971 9.971 0 00-.712-3.714M14 40H4v-4a6 6 0 0110.713-3.714M14 40v-4c0-1.313.253-2.566.713-3.714m0 0A10.003 10.003 0 0124 26c4.21 0 7.813 2.602 9.288 6.286" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<h3 class="mt-2 text-sm font-medium text-gray-900">Aucune classe</h3>
<p class="mt-1 text-sm text-gray-500">Commencez par créer votre première classe.</p>
<div class="mt-6">
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md transition-colors">
Nouvelle classe
</button>
</div>
</div>
{% endif %}
</div>
{% endblock %}