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

97 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.ScoAbsChange)%}
<a href="{{url_for('assiduites.bilan_dept', scodoc_dept=g.scodoc_dept)}}" class="sidebar">Assiduités</a> <br>
{% endif %}
2021-12-26 19:15:47 +01:00
{% if current_user.has_permission(sco.Permission.ScoUsersAdmin)
or current_user.has_permission(sco.Permission.ScoUsersView)
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.ScoChangePreferences) %}
<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.ScoAbsChange) %}
2023-04-17 15:44:55 +02:00
<li><a href="{{ url_for('assiduites.signal_assiduites_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"] %}
2022-08-25 12:10:02 +02: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 %}
<li><a href="{{ url_for('assiduites.calendrier_etud', scodoc_dept=g.scodoc_dept,
2021-12-04 21:06:32 +01:00
etudid=sco.etud.id) }}">Calendrier</a></li>
<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-06-28 17:15:24 +02:00
<li><a href="{{ url_for('assiduites.bilan_etud', scodoc_dept=g.scodoc_dept,
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">
<div class="sidebar-bottom"><a href="{{ url_for( 'scodoc.about',
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>
<!-- end of sidebar -->