Files
notytex/templates/students.html

64 lines
3.3 KiB
HTML

{% extends "base.html" %}
{% block title %}Élèves - 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 élèves</h1>
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md transition-colors">
Nouvel élève
</button>
</div>
{% if students %}
<div class="bg-white shadow overflow-hidden sm:rounded-md">
<ul class="divide-y divide-gray-200">
{% for student in students %}
<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-green-100 rounded-full flex items-center justify-center">
<span class="text-sm font-medium text-green-600">{{ student.first_name[0] }}{{ student.last_name[0] }}</span>
</div>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">{{ student.first_name }} {{ student.last_name }}</div>
<div class="text-sm text-gray-500">
{{ student.class_group.name }}
{% if student.email %}
- {{ student.email }}
{% endif %}
</div>
</div>
</div>
<div class="flex space-x-2">
<button class="text-indigo-600 hover:text-indigo-900 text-sm font-medium">
Voir notes
</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="M28 8H12a4 4 0 00-4 4v20m32-12v8m0 0v8a4 4 0 01-4 4H12a4 4 0 01-4-4v-4m32-4l-3.172-3.172a4 4 0 00-5.656 0L28 28M8 32l9.172-9.172a4 4 0 015.656 0L28 28m0 0l4 4m4-24h8m-4-4v8m-12 4h.02" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<h3 class="mt-2 text-sm font-medium text-gray-900">Aucun élève</h3>
<p class="mt-1 text-sm text-gray-500">Commencez par ajouter vos premiers élèves.</p>
<div class="mt-6">
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md transition-colors">
Nouvel élève
</button>
</div>
</div>
{% endif %}
</div>
{% endblock %}