128 lines
		
	
	
		
			7.5 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			128 lines
		
	
	
		
			7.5 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {% extends "base.html" %}
 | |
| 
 | |
| {% block title %}{{ exercise.title }} - Gestion Scolaire{% endblock %}
 | |
| 
 | |
| {% block content %}
 | |
| <div class="space-y-6">
 | |
|     <div class="flex justify-between items-center">
 | |
|         <div>
 | |
|             <a href="{{ url_for('assessments.detail', id=assessment.id) }}" class="text-blue-600 hover:text-blue-800 text-sm font-medium mb-2 inline-block">
 | |
|                 ← Retour à l'évaluation "{{ assessment.title }}"
 | |
|             </a>
 | |
|             <h1 class="text-2xl font-bold text-gray-900">{{ exercise.title }}</h1>
 | |
|             <p class="text-gray-600">{{ assessment.title }} - {{ assessment.class_group.name }}</p>
 | |
|         </div>
 | |
|         <div class="flex space-x-3">
 | |
|             <a href="{{ url_for('assessments.edit', id=assessment.id) }}" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md text-sm font-medium transition-colors">
 | |
|                 Modifier l'évaluation complète
 | |
|             </a>
 | |
|         </div>
 | |
|     </div>
 | |
|     
 | |
|     <!-- Informations de l'exercice -->
 | |
|     <div class="bg-white shadow rounded-lg">
 | |
|         <div class="px-6 py-4 border-b border-gray-200">
 | |
|             <h2 class="text-lg font-medium text-gray-900">Informations de l'exercice</h2>
 | |
|         </div>
 | |
|         <div class="px-6 py-4">
 | |
|             <dl class="grid grid-cols-1 md:grid-cols-2 gap-6">
 | |
|                 <div>
 | |
|                     <dt class="text-sm font-medium text-gray-500">Ordre</dt>
 | |
|                     <dd class="mt-1 text-sm text-gray-900">{{ exercise.order }}</dd>
 | |
|                 </div>
 | |
|                 <div>
 | |
|                     <dt class="text-sm font-medium text-gray-500">Nombre d'éléments de notation</dt>
 | |
|                     <dd class="mt-1 text-sm text-gray-900">{{ exercise.grading_elements|length }}</dd>
 | |
|                 </div>
 | |
|                 {% if exercise.description %}
 | |
|                 <div class="md:col-span-2">
 | |
|                     <dt class="text-sm font-medium text-gray-500">Description</dt>
 | |
|                     <dd class="mt-1 text-sm text-gray-900">{{ exercise.description }}</dd>
 | |
|                 </div>
 | |
|                 {% endif %}
 | |
|             </dl>
 | |
|         </div>
 | |
|     </div>
 | |
|     
 | |
|     <!-- Éléments de notation -->
 | |
|     <div class="bg-white shadow rounded-lg">
 | |
|         <div class="px-6 py-4 border-b border-gray-200 flex justify-between items-center">
 | |
|             <h2 class="text-lg font-medium text-gray-900">Éléments de notation</h2>
 | |
|             <a href="{{ url_for('assessments.edit', id=assessment.id) }}" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md text-sm font-medium transition-colors">
 | |
|                 Modifier l'évaluation complète
 | |
|             </a>
 | |
|         </div>
 | |
|         <div class="px-6 py-4">
 | |
|             {% if exercise.grading_elements %}
 | |
|                 <div class="space-y-4">
 | |
|                     {% for element in exercise.grading_elements %}
 | |
|                         <div class="border border-gray-200 rounded-lg p-4">
 | |
|                             <div class="flex justify-between items-start">
 | |
|                                 <div class="flex-1">
 | |
|                                     <div class="flex items-center space-x-3">
 | |
|                                         <h3 class="text-sm font-medium text-gray-900">{{ element.label }}</h3>
 | |
|                                         <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium
 | |
|                                             {% if element.grading_type == 'score' %}bg-purple-100 text-purple-800{% else %}bg-green-100 text-green-800{% endif %}">
 | |
|                                             {% if element.grading_type == 'score' %}Score (0-3){% else %}Points{% endif %}
 | |
|                                         </span>
 | |
|                                     </div>
 | |
|                                     {% if element.description %}
 | |
|                                         <p class="text-sm text-gray-600 mt-1">{{ element.description }}</p>
 | |
|                                     {% endif %}
 | |
|                                     <div class="flex items-center space-x-4 text-xs text-gray-500 mt-2">
 | |
|                                         {% if element.skill %}
 | |
|                                             <span><strong>Compétence:</strong> {{ element.skill }}</span>
 | |
|                                         {% endif %}
 | |
|                                         <span><strong>Barème:</strong> {{ element.max_points }} {% if element.grading_type == 'points' %}point(s){% else %}max{% endif %}</span>
 | |
|                                     </div>
 | |
|                                 </div>
 | |
|                                 <div class="flex space-x-2 ml-4">
 | |
|                                     <span class="text-xs text-gray-500">
 | |
|                                         Utilisez "Modifier l'évaluation complète" pour modifier
 | |
|                                     </span>
 | |
|                                 </div>
 | |
|                             </div>
 | |
|                         </div>
 | |
|                     {% endfor %}
 | |
|                 </div>
 | |
|             {% else %}
 | |
|                 <div class="text-center py-8">
 | |
|                     <svg class="mx-auto h-12 w-12 text-gray-400" stroke="currentColor" fill="none" viewBox="0 0 48 48">
 | |
|                         <path d="M9 5H7a2 2 0 00-2 2v10a2 2 0 002 2h8m9-16v20m5-14H9m1 4h8m1 2h8m-8 6h8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
 | |
|                     </svg>
 | |
|                     <h3 class="mt-2 text-sm font-medium text-gray-900">Aucun élément de notation</h3>
 | |
|                     <p class="mt-1 text-sm text-gray-500">Commencez par ajouter le premier élément de notation pour cet exercice.</p>
 | |
|                     <div class="mt-6">
 | |
|                         <a href="{{ url_for('assessments.edit', id=assessment.id) }}" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md text-sm font-medium transition-colors">
 | |
|                             Modifier l'évaluation complète
 | |
|                         </a>
 | |
|                     </div>
 | |
|                 </div>
 | |
|             {% endif %}
 | |
|         </div>
 | |
|     </div>
 | |
|     
 | |
|     <!-- Actions rapides -->
 | |
|     <div class="bg-white shadow rounded-lg">
 | |
|         <div class="px-6 py-4 border-b border-gray-200">
 | |
|             <h2 class="text-lg font-medium text-gray-900">Actions</h2>
 | |
|         </div>
 | |
|         <div class="px-6 py-4">
 | |
|             <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
 | |
|                 <a href="{{ url_for('grading.assessment_grading', assessment_id=assessment.id) }}" class="flex items-center justify-center px-4 py-3 border border-gray-300 rounded-lg text-sm font-medium text-gray-700 hover:bg-gray-50 transition-colors">
 | |
|                     <svg class="w-5 h-5 mr-2 text-green-600" fill="currentColor" viewBox="0 0 20 20">
 | |
|                         <path fill-rule="evenodd" d="M3 4a1 1 0 011-1h12a1 1 0 011 1v2a1 1 0 01-1 1H4a1 1 0 01-1-1V4zm0 4a1 1 0 011-1h12a1 1 0 011 1v6a1 1 0 01-1 1H4a1 1 0 01-1-1V8z" clip-rule="evenodd"/>
 | |
|                     </svg>
 | |
|                     Saisir les notes
 | |
|                 </a>
 | |
|                 <button class="flex items-center justify-center px-4 py-3 border border-gray-300 rounded-lg text-sm font-medium text-gray-700 hover:bg-gray-50 transition-colors">
 | |
|                     <svg class="w-5 h-5 mr-2 text-purple-600" fill="currentColor" viewBox="0 0 20 20">
 | |
|                         <path fill-rule="evenodd" d="M3 17a1 1 0 011-1h12a1 1 0 011 1v1a1 1 0 01-1 1H4a1 1 0 01-1-1v-1zM3 4a1 1 0 011-1h12a1 1 0 011 1v1a1 1 0 01-1 1H4a1 1 0 01-1-1V4z" clip-rule="evenodd"/>
 | |
|                     </svg>
 | |
|                     Voir les résultats
 | |
|                 </button>
 | |
|             </div>
 | |
|         </div>
 | |
|     </div>
 | |
| </div>
 | |
| {% endblock %} |