forked from ScoDoc/ScoDoc
98 lines
4.5 KiB
Django/Jinja
Executable File
98 lines
4.5 KiB
Django/Jinja
Executable File
{# Barre marge gauche ScoDoc #}
|
|
{# -*- mode: jinja-html -*- #}
|
|
<!-- sidebar -->
|
|
<div class="sidebar">
|
|
{# sidebar_common #}
|
|
<a class="scodoc_title" href="{{
|
|
url_for('scodoc.index', scodoc_dept=g.scodoc_dept) }}">ScoDoc {{ sco.SCOVERSION }}</a>
|
|
<div id="authuser"><a id="authuserlink" href="{{
|
|
url_for('users.user_info_page', scodoc_dept=g.scodoc_dept, user_name=current_user.user_name)
|
|
}}">{{current_user.user_name}}</a>
|
|
<br /><a id="deconnectlink" href="{{url_for('auth.logout')}}">déconnexion</a>
|
|
</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"] %}
|
|
<a href="{{ sco.prefs['DeptIntranetURL'] }}" class="sidebar">
|
|
{{ sco.prefs["DeptIntranetTitle"] }}</a>
|
|
{% endif %}
|
|
<br>
|
|
{% 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">Formations</a> <br>
|
|
|
|
{% if current_user.has_permission(sco.Permission.AbsChange)%}
|
|
<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)
|
|
%}
|
|
<a href="{{url_for('users.index_html', scodoc_dept=g.scodoc_dept)}}" class="sidebar">Utilisateurs</a> <br />
|
|
{% 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>
|
|
{% endif %}
|
|
{# /sidebar_common #}
|
|
|
|
<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" />
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="etud-insidebar">
|
|
{% if sco.etud %}
|
|
<h2 id="insidebar-etud"><a href="{{url_for(
|
|
'scolar.fiche_etud', scodoc_dept=g.scodoc_dept, etudid=sco.etud.id )}}" class="sidebar">
|
|
<span class="fontred">{{sco.etud.nomprenom}}</span></a>
|
|
</h2>
|
|
<b>Absences</b>
|
|
{% 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"]}})
|
|
<br />{{sco.nbabsjust}} J., {{sco.nbabsnj}} N.J.</span>
|
|
{% endif %}
|
|
<ul>
|
|
{% if current_user.has_permission(sco.Permission.AbsChange) %}
|
|
<li><a href="{{ url_for('assiduites.ajout_assiduite_etud', scodoc_dept=g.scodoc_dept,
|
|
etudid=sco.etud.id) }}">Ajouter</a></li>
|
|
<li><a href="{{ url_for('assiduites.ajout_justificatif_etud', scodoc_dept=g.scodoc_dept,
|
|
etudid=sco.etud.id) }}">Justifier</a></li>
|
|
{% if sco.prefs["handle_billets_abs"] %}
|
|
<li><a href="{{ url_for('absences.billets_etud', scodoc_dept=g.scodoc_dept,
|
|
etudid=sco.etud.id) }}">Billets</a></li>
|
|
{% endif %}
|
|
{% endif %}
|
|
<li><a href="{{ url_for('assiduites.calendrier_assi_etud', scodoc_dept=g.scodoc_dept,
|
|
etudid=sco.etud.id) }}">Calendrier</a></li>
|
|
<li><a href="{{ url_for('assiduites.liste_assiduites_etud', scodoc_dept=g.scodoc_dept,
|
|
etudid=sco.etud.id) }}">Liste</a></li>
|
|
<li><a href="{{ url_for('assiduites.bilan_etud', scodoc_dept=g.scodoc_dept,
|
|
etudid=sco.etud.id) }}">Bilan</a></li>
|
|
</ul>
|
|
{% endif %}
|
|
</div> {# /etud-insidebar #}
|
|
|
|
{# LOGO #}
|
|
<div class="logo-insidebar">
|
|
<div class="sidebar-bottom"><a href="{{ url_for( 'scodoc.about',
|
|
scodoc_dept=g.scodoc_dept ) }}" class="sidebar">À propos</a>
|
|
<br />
|
|
<a href="{{ scu.SCO_USER_MANUAL }}" target="_blank" rel="noopener" class="sidebar">Aide</a>
|
|
</div>
|
|
</div>
|
|
<div class="logo-logo">
|
|
<a href="{{ url_for( 'scodoc.about', scodoc_dept=g.scodoc_dept ) }}">
|
|
{{ scu.icontag("scologo_img", no_size=True) | safe}}</a>
|
|
</div>
|
|
</div>
|
|
<!-- end of sidebar -->
|