DocScoDoc/app/templates/sidebar.html

94 lines
4.4 KiB
HTML
Raw Normal View History

2021-12-04 21:06:32 +01:00
{# Barre marge gauche ScoDoc #}
<!-- sidebar -->
<div class="sidebar">
{# sidebar_common #}
<a class="scodoc_title" href="{{
2021-12-26 19:15:47 +01:00
url_for("scodoc.index", scodoc_dept=g.scodoc_dept) }}">ScoDoc 9.2a</a>
2021-12-04 21:06:32 +01:00
<div id="authuser"><a id="authuserlink" href="{{
2021-12-26 19:15:47 +01:00
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>
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"] %}
2021-12-26 19:15:47 +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>
2021-12-26 19:15:47 +01:00
<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>
2021-12-04 21:06:32 +01:00
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
%}
2021-12-26 19:15:47 +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) %}
2021-12-26 19:15:47 +01:00
<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" id="in-expnom" name="expnom" spellcheck="false" />
</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">
<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'] }}">(1/2 j.)
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) %}
<li><a href="{{ url_for('absences.SignaleAbsenceEtud', scodoc_dept=g.scodoc_dept,
2021-12-04 21:06:32 +01:00
etudid=sco.etud.id) }}">Ajouter</a></li>
2021-12-26 19:15:47 +01:00
<li><a href="{{ url_for('absences.JustifAbsenceEtud', 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
<li><a href="{{ url_for('absences.AnnuleAbsenceEtud', scodoc_dept=g.scodoc_dept,
2021-12-04 21:06:32 +01:00
etudid=sco.etud.id) }}">Supprimer</a></li>
2021-12-26 19:15:47 +01:00
{% if sco.prefs["handle_billets_abs"] %}
<li><a href="{{ url_for('absences.listeBilletsEtud', 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('absences.CalAbs', scodoc_dept=g.scodoc_dept,
2021-12-04 21:06:32 +01:00
etudid=sco.etud.id) }}">Calendrier</a></li>
2021-12-26 19:15:47 +01:00
<li><a href="{{ url_for('absences.ListeAbsEtud', scodoc_dept=g.scodoc_dept,
2021-12-04 21:06:32 +01:00
etudid=sco.etud.id) }}">Liste</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="{{ sco.scu.SCO_USER_MANUAL }}" target="_blank" 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 ) }}">
2021-12-26 19:15:47 +01:00
{{ sco.scu.icontag("scologo_img", no_size=True) | safe}}</a>
2021-12-04 21:06:32 +01:00
</div>
</div>
<!-- end of sidebar -->