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

67 lines
2.3 KiB
Plaintext
Raw Normal View History

2021-12-28 16:17:07 +01:00
{# -*- mode: jinja-html -*- #}
{% extends 'base.j2' %}
2023-11-15 20:38:51 +01:00
{% import 'wtf.j2' as wtf %}
2021-07-04 12:32:13 +02:00
{% block app_content %}
2021-09-11 15:59:06 +02:00
<h2>ScoDoc 9 - suivi scolarité</h2>
2021-07-04 12:32:13 +02:00
2021-07-05 00:07:17 +02:00
{% if not current_user.is_anonymous %}
<p>Bonjour <font color="red"><b>{{current_user.get_nomcomplet()}}</b>
</font>.</p>
2021-07-04 12:32:13 +02:00
<p>N'oubliez pas de vous <a href="{{url_for('auth.logout')}}">déconnecter</a> après usage.</p>
2021-07-05 00:07:17 +02:00
{% endif %}
2021-07-04 12:32:13 +02:00
<ul class="main">
{% for dept in depts %}
2022-01-04 20:03:38 +01:00
{% if dept.visible or current_user.is_administrator() %}
2021-07-04 12:32:13 +02:00
<li>
<a class="stdlink {{'link_accessible' if current_user.has_permission(Permission.ScoView, dept=dept.acronym) else 'link_unauthorized'}}"
href="{{url_for('scolar.index_html', scodoc_dept=dept.acronym)}}">Département
{{dept.preferences.filter_by(name="DeptName").first().value}}
</a>
2022-01-05 21:44:22 +01:00
<span class="dept_full_name">
{{ dept.preferences.filter_by( name="DeptFullName" ).first().value or "" }}
</span>
2022-01-04 20:03:38 +01:00
{% if current_user.is_administrator() %}
<span {% if dept.visible %}class="dept_visible">visible{% else %}class="dept_cache">caché aux utilisateurs{%
endif %}
</span>
<a href="{{ url_for('scodoc.toggle_dept_vis', dept_id=dept.id) }}">
2022-01-04 20:03:38 +01:00
{% if dept.visible %}cacher{% else %}rendre visible{% endif %}
</a>
</span>
2022-01-04 20:03:38 +01:00
{% endif %}
2021-07-04 12:32:13 +02:00
</li>
2022-01-04 20:03:38 +01:00
{% endif %}
2021-08-17 14:15:15 +02:00
{% else %}
<li>
<b>Aucun département défini !</b>
</li>
2021-07-04 12:32:13 +02:00
{% endfor %}
{% if current_user.is_administrator() %}
2021-12-28 16:17:07 +01:00
<li><a href="{{ url_for('scodoc.create_dept') }}">créer un nouveau département</a></li>
{% endif %}
2021-07-04 12:32:13 +02:00
</ul>
2021-08-17 22:11:35 +02:00
2021-07-28 09:51:18 +02:00
{% if current_user.is_authenticated %}
2024-08-18 18:40:11 +02:00
<form action="{{url_for('scodoc.table_etuds_in_accessible_depts')}}">
<b>Chercher étudiant&nbsp;:</b>
2021-07-04 12:32:13 +02:00
<input type="text" name="expnom" width="12" spellcheck="false" value="">
<input type="submit" value="Chercher">
<br />(entrer une partie du nom ou le code NIP, cherche dans tous les départements autorisés)
</form>
2021-07-28 09:51:18 +02:00
{% endif %}
2021-07-04 12:32:13 +02:00
2023-11-15 20:38:51 +01:00
<!--
2021-08-17 22:11:35 +02:00
<div style="margin-top: 1cm;">
<p><a href="/ScoDoc/static/mobile">Charger la version mobile (expérimentale)</a></p>
2021-09-10 23:18:27 +02:00
</div> -->
2021-07-04 12:32:13 +02:00
2021-09-11 15:59:06 +02:00
<div style="margin-top: 1cm;">
Service <b>réservé aux personnels et enseignants</b>, basé sur
2022-01-06 23:37:57 +01:00
<a href="{{scu.SCO_WEBSITE}}">le logiciel libre ScoDoc.</a>
2021-09-11 15:59:06 +02:00
</div>
2023-11-15 20:38:51 +01:00
{% endblock %}