2024-01-21 18:07:56 +01:00
|
|
|
<h2>Détails {{type}} concernant <span class="etudinfo"
|
|
|
|
id="etudid-{{objet.etudid}}">{{etud.html_link_fiche()|safe}}</span></h2>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.info-row {
|
|
|
|
margin-top: 12px;
|
|
|
|
}
|
|
|
|
.info-label {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
.info-etat {
|
|
|
|
font-size: 110%;
|
|
|
|
font-weight: bold;
|
|
|
|
background-color: rgb(253, 234, 210);
|
|
|
|
border: 1px solid grey;
|
|
|
|
border-radius: 4px;
|
|
|
|
padding: 4px;
|
|
|
|
}
|
|
|
|
.info-saisie {
|
|
|
|
margin-top: 12px;
|
|
|
|
margin-bottom: 12px;
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
</style>
|
2023-11-24 13:58:03 +01:00
|
|
|
|
|
|
|
<div id="informations">
|
2024-01-21 18:07:56 +01:00
|
|
|
|
|
|
|
<div class="info-saisie">
|
|
|
|
<span>Saisie par {{objet.saisie_par}} le {{objet.entry_date}}</span>
|
2023-11-24 13:58:03 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="info-row">
|
2024-01-21 18:07:56 +01:00
|
|
|
<span class="info-label">Période :</span> du <b>{{objet.date_debut}}</b> au <b>{{objet.date_fin}}</b>
|
2023-11-24 13:58:03 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% if type == "Assiduité" %}
|
|
|
|
<div class="info-row">
|
2023-12-07 22:10:51 +01:00
|
|
|
<span class="info-label">Module :</span> {{objet.module}}
|
2023-11-24 13:58:03 +01:00
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div class="info-row">
|
|
|
|
{% if type == "Justificatif" %}
|
|
|
|
<span class="info-label">État du justificatif :</span>
|
|
|
|
{% else %}
|
|
|
|
<span class="info-label">État de l'assiduité :</span>
|
|
|
|
{% endif %}
|
2024-01-21 18:07:56 +01:00
|
|
|
<span class="info-etat">{{objet.etat}}</span>
|
2023-11-24 13:58:03 +01:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="info-row">
|
|
|
|
{% if type == "Justificatif" %}
|
2024-01-21 18:07:56 +01:00
|
|
|
<span class="info-label">Raison:</span>
|
|
|
|
{% if can_view_justif_detail %}
|
|
|
|
<span class="text">{{objet.raison or " "}}</span>
|
2023-11-24 13:58:03 +01:00
|
|
|
{% else %}
|
2024-01-21 18:07:56 +01:00
|
|
|
<span class="text unauthorized">(cachée)</span>
|
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
|
|
<span class="info-label">Description:</span>
|
2023-11-24 13:58:03 +01:00
|
|
|
{% if objet.description != None %}
|
2024-01-21 18:07:56 +01:00
|
|
|
<span class="text">{{objet.description}}</span>
|
2023-11-24 13:58:03 +01:00
|
|
|
{% else %}
|
2024-01-21 18:07:56 +01:00
|
|
|
<span class="text"></span>
|
2023-11-24 13:58:03 +01:00
|
|
|
{% endif %}
|
2024-01-21 18:07:56 +01:00
|
|
|
{% endif %}
|
|
|
|
</span>
|
2023-11-24 13:58:03 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{# Affichage des justificatifs si assiduité justifiée #}
|
|
|
|
{% if type == "Assiduité" and objet.etat != "Présence" %}
|
|
|
|
<div class="info-row">
|
|
|
|
<span class="info-label">Justifiée: </span>
|
|
|
|
{% if objet.justification.est_just %}
|
|
|
|
<span class="text">Oui</span>
|
|
|
|
<div>
|
|
|
|
{% for justi in objet.justification.justificatifs %}
|
2024-01-21 18:07:56 +01:00
|
|
|
<a href="{{url_for('assiduites.tableau_assiduite_actions',
|
|
|
|
type='justificatif', action='details', obj_id=justi.justif_id, scodoc_dept=g.scodoc_dept)}}"
|
2023-11-24 13:58:03 +01:00
|
|
|
target="_blank" rel="noopener noreferrer">Justificatif du {{justi.date_debut}} au {{justi.date_fin}}</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% else %}
|
2023-12-07 22:10:51 +01:00
|
|
|
<span class="text fontred">Non</span>
|
2023-11-24 13:58:03 +01:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{# Affichage des assiduités justifiées si justificatif valide #}
|
|
|
|
{% if type == "Justificatif" and objet.etat == "Valide" %}
|
|
|
|
<div class="info-row">
|
|
|
|
<span class="info-label">Assiduités concernées: </span>
|
|
|
|
{% if objet.justification.assiduites %}
|
2024-01-21 18:07:56 +01:00
|
|
|
<ul>
|
2023-11-24 13:58:03 +01:00
|
|
|
{% for assi in objet.justification.assiduites %}
|
2024-01-21 18:07:56 +01:00
|
|
|
<li><a href="{{url_for('assiduites.tableau_assiduite_actions',
|
|
|
|
type='assiduite', action='details', obj_id=assi.assiduite_id, scodoc_dept=g.scodoc_dept)
|
|
|
|
}}" target="_blank">Assiduité {{assi.etat}} du {{assi.date_debut}} au
|
2023-11-24 13:58:03 +01:00
|
|
|
{{assi.date_fin}}</a>
|
2024-01-21 18:07:56 +01:00
|
|
|
</li>
|
2023-11-24 13:58:03 +01:00
|
|
|
{% endfor %}
|
2024-01-21 18:07:56 +01:00
|
|
|
</ul>
|
2023-11-24 13:58:03 +01:00
|
|
|
{% else %}
|
|
|
|
<span class="text">Aucune</span>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{# Affichage des fichiers des justificatifs #}
|
|
|
|
{% if type == "Justificatif"%}
|
2024-01-21 18:07:56 +01:00
|
|
|
<div class="info-row">
|
|
|
|
<span class="info-label">Fichiers enregistrés: </span>
|
|
|
|
{% if objet.justification.fichiers.total != 0 %}
|
|
|
|
<div>Total : {{objet.justification.fichiers.total}} </div>
|
|
|
|
<ul>
|
|
|
|
{% for filename in objet.justification.fichiers.filenames %}
|
|
|
|
<li>
|
|
|
|
<a
|
|
|
|
href="{{url_for('apiweb.justif_export',justif_id=objet.justif_id,
|
|
|
|
filename=filename, scodoc_dept=g.scodoc_dept)}}">{{filename}}</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
{% if not objet.justification.fichiers.filenames %}
|
|
|
|
<li class="fontred">fichiers non visibles</li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
{% else %}
|
|
|
|
<span class="text">Aucun</span>
|
2023-12-11 15:24:55 +01:00
|
|
|
{% endif %}
|
2024-01-21 18:07:56 +01:00
|
|
|
</div>
|
|
|
|
{% if current_user.has_permission(sco.Permission.AbsChange) %}
|
|
|
|
<div><a class="stdlink" href="{{
|
|
|
|
url_for('assiduites.edit_justificatif_etud', scodoc_dept=g.scodoc_dept, justif_id=obj_id)
|
|
|
|
}}">modifier ce justificatif</a>
|
|
|
|
</div>
|
2023-11-24 13:58:03 +01:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2024-01-21 18:07:56 +01:00
|
|
|
</div>
|