ScoDoc-Lille/app/templates/scodoc.html

65 lines
2.3 KiB
HTML
Raw Normal View History

2021-12-28 16:17:07 +01:00
{# -*- mode: jinja-html -*- #}
2021-07-04 12:32:13 +02:00
{% extends 'base.html' %}
{% import 'bootstrap/wtf.html' as wtf %}
{% 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() %}
2022-01-05 21:44:22 +01:00
<span {% if dept.visible %}class="dept_visible">visible{% else %}class="dept_cache">caché aux utilisateurs{% endif %}
</span>
2022-01-04 20:03:38 +01:00
<a href="{{ url_for('scodoc.toggle_dept_vis', dept_id=dept.id) }}">
{% if dept.visible %}cacher{% else %}rendre visible{% endif %}
</a>
</span>
{% 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 %}
2021-09-09 08:03:43 +02:00
<form action="{{url_for('scodoc.table_etud_in_accessible_depts')}}" method="POST">
2021-07-04 12:32:13 +02:00
<b>Chercher étudiant:</b>
<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
2021-09-10 23:18:27 +02: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 réservé aux personnels et enseignants, basé sur <a href="{{url_for('scodoc.about')}}">le logiciel libre
ScoDoc.</a>
</div>
2021-07-04 12:32:13 +02:00
{% endblock %}