1
0
forked from ScoDoc/ScoDoc
ScoDoc/app/templates/sidebar.j2

98 lines
4.5 KiB
Plaintext
Raw Normal View History

2021-12-04 21:06:32 +01:00
{# Barre marge gauche ScoDoc #}
2021-12-28 16:17:07 +01:00
{# -*- mode: jinja-html -*- #}
2021-12-04 21:06:32 +01:00
<!-- sidebar -->
<div class="sidebar">
{# sidebar_common #}
<a class="scodoc_title" href="{{
url_for('scodoc.index', scodoc_dept=g.scodoc_dept) }}">ScoDoc {{ sco.SCOVERSION }}</a>
2021-12-04 21:06:32 +01:00
<div id="authuser"><a id="authuserlink" href="{{
url_for('users.user_info_page', scodoc_dept=g.scodoc_dept, user_name=current_user.user_name)
2021-12-26 19:15:47 +01:00
}}">{{current_user.user_name}}</a>
<br /><a id="deconnectlink" href="{{url_for('auth.logout')}}">déconnexion</a>
2021-12-04 21:06:32 +01:00
</div>
{% block sidebar_dept %}
<h2 class="insidebar">Dépt. {{ sco.prefs["DeptName"] }}</h2>
<a href="{{ url_for('scolar.index_html', scodoc_dept=g.scodoc_dept) }}" class="sidebar">Accueil</a> <br />
{% if sco.prefs["DeptIntranetURL"] %}
2022-11-08 00:07:35 +01:00
<a href="{{ sco.prefs['DeptIntranetURL'] }}" class="sidebar">
2021-12-04 21:06:32 +01:00
{{ sco.prefs["DeptIntranetTitle"] }}</a>
{% endif %}
2021-12-26 19:15:47 +01:00
<br>
2021-12-04 21:06:32 +01:00
{% endblock %}
<h2 class="insidebar">Scolarité</h2>
<a href="{{url_for('scolar.index_html', scodoc_dept=g.scodoc_dept)}}" class="sidebar">Semestres</a> <br>
<a href="{{url_for('notes.index_html', scodoc_dept=g.scodoc_dept)}}" class="sidebar">Programmes</a> <br>
2021-12-04 21:06:32 +01:00
{% if current_user.has_permission(sco.Permission.AbsChange)%}
2023-09-21 08:46:21 +02:00
<a href="{{url_for('assiduites.bilan_dept', scodoc_dept=g.scodoc_dept)}}" class="sidebar">Assiduité</a> <br>
{% endif %}
{% if current_user.has_permission(sco.Permission.UsersAdmin)
or current_user.has_permission(sco.Permission.UsersView)
2021-12-04 21:06:32 +01:00
%}
<a href="{{url_for('users.index_html', scodoc_dept=g.scodoc_dept)}}" class="sidebar">Utilisateurs</a> <br />
2021-12-04 21:06:32 +01:00
{% endif %}
{% if current_user.has_permission(sco.Permission.EditPreferences) %}
<a href="{{url_for('scolar.edit_preferences', scodoc_dept=g.scodoc_dept)}}" class="sidebar">Paramétrage</a> <br>
2021-12-04 21:06:32 +01:00
{% endif %}
{# /sidebar_common #}
2021-12-26 19:15:47 +01:00
<div class="box-chercheetud">Chercher étudiant:<br>
<form method="get" id="form-chercheetud"
action="{{ url_for('scolar.search_etud_in_dept', scodoc_dept=g.scodoc_dept) }}">
<div>
<input type="text" size="12" class="in-expnom" name="expnom" spellcheck="false" />
2021-12-26 19:15:47 +01:00
</div>
</form>
2021-12-04 21:06:32 +01:00
</div>
<div class="etud-insidebar">
2021-12-26 19:15:47 +01:00
{% if sco.etud %}
<h2 id="insidebar-etud"><a href="{{url_for(
'scolar.ficheEtud', scodoc_dept=g.scodoc_dept, etudid=sco.etud.id )}}" class="sidebar">
2021-12-26 19:15:47 +01:00
<span class="fontred">{{sco.etud.nomprenom}}</span></a>
</h2>
<b>Absences</b>
2021-12-04 21:06:32 +01:00
{% if sco.etud_cur_sem %}
<span title="absences du {{ sco.etud_cur_sem['date_debut'] }}
au {{ sco.etud_cur_sem['date_fin'] }}">({{sco.prefs["assi_metrique"]}})
2021-12-26 19:15:47 +01:00
<br />{{sco.nbabsjust}} J., {{sco.nbabsnj}} N.J.</span>
2021-12-04 21:06:32 +01:00
{% endif %}
2021-12-26 19:15:47 +01:00
<ul>
{% if current_user.has_permission(sco.Permission.AbsChange) %}
2023-12-05 21:04:38 +01:00
<li><a href="{{ url_for('assiduites.ajout_assiduite_etud', scodoc_dept=g.scodoc_dept,
2021-12-04 21:06:32 +01:00
etudid=sco.etud.id) }}">Ajouter</a></li>
2023-06-20 15:50:56 +02:00
<li><a href="{{ url_for('assiduites.ajout_justificatif_etud', scodoc_dept=g.scodoc_dept,
2021-12-04 21:06:32 +01:00
etudid=sco.etud.id) }}">Justifier</a></li>
2021-12-26 19:15:47 +01:00
{% if sco.prefs["handle_billets_abs"] %}
2023-12-05 21:04:38 +01:00
<li><a href="{{ url_for('absences.billets_etud', scodoc_dept=g.scodoc_dept,
2021-12-04 21:06:32 +01:00
etudid=sco.etud.id) }}">Billets</a></li>
2021-12-26 19:15:47 +01:00
{% endif %}
{% endif %}
2023-12-12 03:05:31 +01:00
<li><a href="{{ url_for('assiduites.calendrier_assi_etud', scodoc_dept=g.scodoc_dept,
2021-12-04 21:06:32 +01:00
etudid=sco.etud.id) }}">Calendrier</a></li>
2023-12-05 21:04:38 +01:00
<li><a href="{{ url_for('assiduites.liste_assiduites_etud', scodoc_dept=g.scodoc_dept,
2021-12-04 21:06:32 +01:00
etudid=sco.etud.id) }}">Liste</a></li>
2023-12-05 21:04:38 +01:00
<li><a href="{{ url_for('assiduites.bilan_etud', scodoc_dept=g.scodoc_dept,
2023-06-28 17:15:24 +02:00
etudid=sco.etud.id) }}">Bilan</a></li>
2021-12-26 19:15:47 +01:00
</ul>
{% endif %}
</div> {# /etud-insidebar #}
2021-12-04 21:06:32 +01:00
{# LOGO #}
<div class="logo-insidebar">
2023-12-05 21:04:38 +01:00
<div class="sidebar-bottom"><a href="{{ url_for( 'scodoc.about',
2021-12-04 21:06:32 +01:00
scodoc_dept=g.scodoc_dept ) }}" class="sidebar">À propos</a>
2021-12-26 19:15:47 +01:00
<br />
<a href="{{ scu.SCO_USER_MANUAL }}" target="_blank" rel="noopener" class="sidebar">Aide</a>
2021-12-04 21:06:32 +01:00
</div>
</div>
<div class="logo-logo">
<a href="{{ url_for( 'scodoc.about', scodoc_dept=g.scodoc_dept ) }}">
2023-04-14 23:36:36 +02:00
{{ scu.icontag("scologo_img", no_size=True) | safe}}</a>
2021-12-04 21:06:32 +01:00
</div>
</div>
2023-12-05 21:04:38 +01:00
<!-- end of sidebar -->