bientôt a alpha
This commit is contained in:
51
studenteval/templates/base.html
Normal file
51
studenteval/templates/base.html
Normal file
@@ -0,0 +1,51 @@
|
||||
{% load static %}
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Custom CSS -->
|
||||
<link rel="stylesheet" href="{% static 'bootstrap.min.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'style.css' %}">
|
||||
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.16/dist/tailwind.min.css" rel="stylesheet">
|
||||
<title>Intranet StudentEval</title>
|
||||
</head>
|
||||
<body class="bg-gray-100">
|
||||
<div id="wrap">
|
||||
<nav class="navbar navbar-expand navbar-dark bg-primary mb-3 ps-3 pe-3">
|
||||
<a href="" class="navbar-brand">Intranet Ambulance Clerc</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarColor01"
|
||||
aria-controls="navbarColor01"
|
||||
aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="w-100">
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item">
|
||||
|
||||
</li>
|
||||
<li class="nav-item mr-auto">
|
||||
<a href="{% url 'admin:index' %}" class="nav-link" target="_blank">Administration intranet</a>
|
||||
</li>
|
||||
{% block url_nav %}
|
||||
{% endblock %}
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
<footer class="mt-2 text-center">© 2023 <a href="https://ambulance-clerc.ch"
|
||||
target="_blank">Ambulance Clerc</a></footer>
|
||||
|
||||
{% block script %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
8
studenteval/templates/studenteval/base_studenteval.html
Normal file
8
studenteval/templates/studenteval/base_studenteval.html
Normal file
@@ -0,0 +1,8 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container w-full%">
|
||||
{% block cl_content %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% endblock %}
|
124
studenteval/templates/studenteval/cl_student_eval.html
Normal file
124
studenteval/templates/studenteval/cl_student_eval.html
Normal file
@@ -0,0 +1,124 @@
|
||||
<div class="container mx-auto p-6">
|
||||
<h1 class="text-2xl font-bold mb-4">{% block title %}Détails de l'évaluation ({{ object.ID }}) étudiant de {{ object.sStudent }}{% endblock %}</h1>
|
||||
<div class="flex rounded-lg shadow overflow-hidden">
|
||||
<div class="bg-white rounded-lg shadow overflow-hidden w-1/3 m-3">
|
||||
<table class="w-full table-auto">
|
||||
<tbody>
|
||||
<tr class="border-b">
|
||||
<th class="py-2 px-1 text-left font-semibold">Date de suivi</th>
|
||||
<td class="py-2 px-1">{{ object.dtDate }}</td>
|
||||
<th class="py-2 px-1 text-left font-semibold">Date de d'écriture</th>
|
||||
<td class="py-2 px-1">{{ object.dtCreated }}</td>
|
||||
</tr>
|
||||
<tr class="border-b">
|
||||
<th class="py-2 px-1 text-left font-semibold">Auteur</th>
|
||||
<td class="py-2 px-1">{{ object.sAuthor }}</td>
|
||||
<th class="py-2 px-1 text-left font-semibold">Second auteur</th>
|
||||
<td class="py-2 px-1">{{ object.sAuthor_2e }}</td>
|
||||
</tr>
|
||||
|
||||
<tr class="border-b">
|
||||
<th class="py-2 px-1 text-left font-semibold">Type de suivi</th>
|
||||
<td class="py-2 px-1" colspan="3">{{ object.get_eval_type }}</td>
|
||||
</tr>
|
||||
{% if object.nEval_Type == "1" %}
|
||||
<tr class="border-b">
|
||||
<th class="py-2 px-1 text-left font-semibold">N° FIP</th>
|
||||
<td class="py-2 px-1">{{ object.sRef }}</td>
|
||||
<th class="py-2 px-1 text-left font-semibold">Priorité</th>
|
||||
<td class="py-2 px-1">{{ object.get_inter_priority }}</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="py-2 px-1 text-left font-semibold">Description</th>
|
||||
<td class="py-2 px-1" colspan="3">{{ object.sInter_Desc }}</td>
|
||||
</tr>
|
||||
<tr class="border-b">
|
||||
<th class="py-2 px-1 text-left font-semibold">Rôle de l'étudiant</th>
|
||||
<td class="py-2 px-1">{{ object.get_student_role }}</td>
|
||||
</tr>
|
||||
<tr class="border-b">
|
||||
<th class="py-2 px-1 text-left font-semibold">Nature de l'intervention</th>
|
||||
<td class="py-2 px-1">{{ object.get_inter_nature }}</td>
|
||||
</tr>
|
||||
<tr class="border-b">
|
||||
<th class="py-2 px-1 text-left font-semibold">Complexité de l'intervention</th>
|
||||
<td class="py-2 px-1" colspan="2">{{ object.get_inter_complexity }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="bg-white rounded-lg shadow overflow-hidden w-3/4 m-3">
|
||||
<table class="w-full table-auto border-solid">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="py-2 px-4 border-solid border-b border-r">
|
||||
Éléments positifs (auto-évaluation)
|
||||
</th>
|
||||
<th class="py-2 px-4 border-solid border-b border-l">
|
||||
Éléments positifs (Encadrant)
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="py-2 px-4 border-solid border-b border-r" >
|
||||
{{object.o_Auto_eval.sDesc_pos}}
|
||||
</td>
|
||||
<td class="py-2 px-4 border-solid border-b border-l" >
|
||||
{{object.o_Encadrant_eval.sDesc_pos}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="py-2 px-4"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="py-2 px-4 border-solid border-b border-r">
|
||||
Éléments à améliorer (auto-évaluation)
|
||||
</th>
|
||||
<th class="py-2 px-4 border-solid border-b border-l">
|
||||
Éléments améliorer (Encadrant)
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="py-2 px-4 border-solid border-b border-r" >
|
||||
{{object.o_Auto_eval.sDesc_neg}}
|
||||
</td>
|
||||
<td class="py-2 px-4 border-solid border-b border-l" >
|
||||
{{object.o_Encadrant_eval.sDesc_neg}}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="bg-white rounded-lg shadow overflow-hidden w-full" style="margin-top:10px;">
|
||||
<table class="w-full">
|
||||
<tbody>
|
||||
<tr class="border-b">
|
||||
<th class="py-2 px-4 text-left font-semibold">Avis Global</th>
|
||||
|
||||
</tr>
|
||||
<tr class="border-b">
|
||||
<td class="py-2 px-4">{{ object.o_Encadrant_eval.sDesc_global }}</td>
|
||||
</tr>
|
||||
<tr class="border-b">
|
||||
<th class="py-2 px-4 text-left font-semibold">Avis Global (auto)</th>
|
||||
|
||||
</tr>
|
||||
<tr class="border-b">
|
||||
<td class="py-2 px-4">{{ object.o_Auto_eval.sDesc_global }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
@@ -1,137 +1,12 @@
|
||||
{% extends 'studenteval/base_studenteval.html' %}
|
||||
|
||||
{% block url_nav %}
|
||||
<li>
|
||||
<a href="{% url 'studenteval:student_eval_list' object.Student.id %}?dtDate__range__gte={{ dtDate__range__gte }}&dtDate__range__lte={{ dtDate__range__lte }}" class="nav-link" target="_blank">Voir toutes les évaluations</a>
|
||||
</li>
|
||||
{% endblock %}
|
||||
{% block cl_content %}
|
||||
{% include 'studenteval/cl_student_eval.html' with object=object %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Détails de l'évaluation étudiant de {{ object.sStudent }}</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.16/dist/tailwind.min.css" rel="stylesheet">
|
||||
</head>
|
||||
<body class="bg-gray-100">
|
||||
<div class="container mx-auto p-6">
|
||||
<h1 class="text-2xl font-bold mb-4">{% block title %}Détails de l'évaluation ({{ object.ID }}) étudiant de {{ object.sStudent }}{% endblock %}</h1>
|
||||
<div class="flex rounded-lg shadow overflow-hidden">
|
||||
<div class="bg-white rounded-lg shadow overflow-hidden w-1/3 m-3">
|
||||
<table class="w-full table-auto">
|
||||
<tbody>
|
||||
<tr class="border-b">
|
||||
<th class="py-2 px-4 text-left font-semibold">Date de suivi</th>
|
||||
<td class="py-2 px-4">{{ object.dtDate }}</td>
|
||||
<th class="py-2 px-4 text-left font-semibold">Date de d'écriture</th>
|
||||
<td class="py-2 px-4">{{ object.dtCreated }}</td>
|
||||
</tr>
|
||||
<tr class="border-b">
|
||||
<th class="py-2 px-4 text-left font-semibold">Auteur</th>
|
||||
<td class="py-2 px-4">{{ object.sAuthor }}</td>
|
||||
<th class="py-2 px-4 text-left font-semibold">Second auteur</th>
|
||||
<td class="py-2 px-4">{{ object.sAuthor_2e }}</td>
|
||||
</tr>
|
||||
|
||||
<tr class="border-b">
|
||||
<th class="py-2 px-4 text-left font-semibold">Type de suivi</th>
|
||||
<td class="py-2 px-4" colspan="3">{{ object.get_eval_type }}</td>
|
||||
</tr>
|
||||
{% if object.nEval_Type == "1" %}
|
||||
<tr class="border-b">
|
||||
<th class="py-2 px-4 text-left font-semibold">N° FIP</th>
|
||||
<td class="py-2 px-4">{{ object.sRef }}</td>
|
||||
<th class="py-2 px-4 text-left font-semibold">Priorité</th>
|
||||
<td class="py-2 px-4">{{ object.get_inter_priority }}</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="py-2 px-4 text-left font-semibold">Description</th>
|
||||
<td class="py-2 px-4" colspan="3">{{ object.sInter_Desc }}</td>
|
||||
</tr>
|
||||
<tr class="border-b">
|
||||
<th class="py-2 px-4 text-left font-semibold">Rôle de l'étudiant</th>
|
||||
<td class="py-2 px-4">{{ object.get_student_role }}</td>
|
||||
</tr>
|
||||
<tr class="border-b">
|
||||
<th class="py-2 px-4 text-left font-semibold">Nature de l'intervention</th>
|
||||
<td class="py-2 px-4">{{ object.get_inter_nature }}</td>
|
||||
</tr>
|
||||
<tr class="border-b">
|
||||
<th class="py-2 px-4 text-left font-semibold">Complexité de l'intervention</th>
|
||||
<td class="py-2 px-4" colspan="2">{{ object.get_inter_complexity }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="bg-white rounded-lg shadow overflow-hidden w-3/4 m-3">
|
||||
<table class="w-full table-auto border-solid">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="py-2 px-4 border-solid border-b border-r">
|
||||
Éléments positifs (auto-évaluation) => {{object.o_Auto_eval.ID}}
|
||||
</th>
|
||||
<th class="py-2 px-4 border-solid border-b border-l">
|
||||
Éléments positifs (Encadrant) => {{object.o_Encadrant_eval.ID}}
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="py-2 px-4 border-solid border-b border-r" >
|
||||
{{object.o_Auto_eval.sDesc_pos}}
|
||||
</td>
|
||||
<td class="py-2 px-4 border-solid border-b border-l" >
|
||||
{{object.o_Encadrant_eval.sDesc_pos}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="py-2 px-4"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="py-2 px-4 border-solid border-b border-r">
|
||||
Éléments à améliorer (auto-évaluation) => {{object.o_Auto_eval.ID}}
|
||||
</th>
|
||||
<th class="py-2 px-4 border-solid border-b border-l">
|
||||
Éléments améliorer (Encadrant) => {{object.o_Encadrant_eval.ID}}
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="py-2 px-4 border-solid border-b border-r" >
|
||||
{{object.o_Auto_eval.sDesc_neg}}
|
||||
</td>
|
||||
<td class="py-2 px-4 border-solid border-b border-l" >
|
||||
{{object.o_Encadrant_eval.sDesc_neg}}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="bg-white rounded-lg shadow overflow-hidden w-full" style="margin-top:10px;">
|
||||
<table class="w-full">
|
||||
<tbody>
|
||||
<tr class="border-b">
|
||||
<th class="py-2 px-4 text-left font-semibold">Avis Global</th>
|
||||
|
||||
</tr>
|
||||
<tr class="border-b">
|
||||
<td class="py-2 px-4">{{ object.o_Encadrant_eval.sDesc_global }}</td>
|
||||
</tr>
|
||||
<tr class="border-b">
|
||||
<th class="py-2 px-4 text-left font-semibold">Avis Global (auto)</th>
|
||||
|
||||
</tr>
|
||||
<tr class="border-b">
|
||||
<td class="py-2 px-4">{{ object.o_Auto_eval.sDesc_global }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
19
studenteval/templates/studenteval/cl_student_eval_list.html
Normal file
19
studenteval/templates/studenteval/cl_student_eval_list.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{% extends 'studenteval/base_studenteval.html' %}
|
||||
|
||||
{% block title %}Liste des évaluations{% endblock %}
|
||||
|
||||
{% block cl_content %}
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
{% if object_list %}
|
||||
{% for obj in object_list reversed %}
|
||||
{% include 'studenteval/cl_student_eval.html' with object=obj %}
|
||||
{% if not forloop.last %}
|
||||
<hr>{% endif %}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<p>There is no post.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user