forked from ScoDoc/DocScoDoc
95 lines
4.4 KiB
Django/Jinja
95 lines
4.4 KiB
Django/Jinja
{# 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">Programmes</a> <br>
|
|
<a href="{{url_for('absences.index_html', scodoc_dept=g.scodoc_dept)}}" class="sidebar">Absences</a> <br>
|
|
|
|
{% if current_user.has_permission(sco.Permission.ScoUsersAdmin)
|
|
or current_user.has_permission(sco.Permission.ScoUsersView)
|
|
%}
|
|
<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.ScoChangePreferences) %}
|
|
<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.ficheEtud', 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'] }}">(1/2 j.)
|
|
<br />{{sco.nbabsjust}} J., {{sco.nbabsnj}} N.J.</span>
|
|
{% endif %}
|
|
<ul>
|
|
{% if current_user.has_permission(sco.Permission.ScoAbsChange) %}
|
|
<li><a href="{{ url_for('absences.SignaleAbsenceEtud', scodoc_dept=g.scodoc_dept,
|
|
etudid=sco.etud.id) }}">Ajouter</a></li>
|
|
<li><a href="{{ url_for('absences.JustifAbsenceEtud', scodoc_dept=g.scodoc_dept,
|
|
etudid=sco.etud.id) }}">Justifier</a></li>
|
|
<li><a href="{{ url_for('absences.AnnuleAbsenceEtud', scodoc_dept=g.scodoc_dept,
|
|
etudid=sco.etud.id) }}">Supprimer</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('absences.CalAbs', scodoc_dept=g.scodoc_dept,
|
|
etudid=sco.etud.id) }}">Calendrier</a></li>
|
|
<li><a href="{{ url_for('absences.ListeAbsEtud', scodoc_dept=g.scodoc_dept,
|
|
etudid=sco.etud.id) }}">Liste</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="{{ sco.scu.SCO_USER_MANUAL }}" target="_blank" class="sidebar">Aide</a>
|
|
</div>
|
|
</div>
|
|
<div class="logo-logo">
|
|
<a href="{{ url_for( 'scodoc.about', scodoc_dept=g.scodoc_dept ) }}">
|
|
{{ sco.scu.icontag("scologo_img", no_size=True) | safe}}</a>
|
|
</div>
|
|
</div>
|
|
<!-- end of sidebar --> |