2021-12-28 16:17:07 +01:00
|
|
|
{# -*- mode: jinja-html -*- #}
|
2023-01-30 22:25:17 +01:00
|
|
|
{% extends 'base.j2' %}
|
2023-11-15 20:38:51 +01:00
|
|
|
{% import 'wtf.j2' as wtf %}
|
2021-09-05 12:30:11 +02:00
|
|
|
|
2021-11-19 11:51:05 +01:00
|
|
|
{% macro render_field(field, with_label=True) %}
|
2021-09-08 23:00:01 +02:00
|
|
|
<div>
|
2023-01-30 22:25:17 +01:00
|
|
|
{% if with_label %}
|
|
|
|
<span class="wtf-field">{{ field.label }} :</span>
|
|
|
|
{% endif %}
|
2021-11-19 11:51:05 +01:00
|
|
|
<span class="wtf-field">{{ field(**kwargs)|safe }}
|
2021-09-05 12:30:11 +02:00
|
|
|
{% if field.errors %}
|
2021-09-08 23:00:01 +02:00
|
|
|
<ul class=errors>
|
2021-09-05 12:30:11 +02:00
|
|
|
{% for error in field.errors %}
|
2021-09-08 23:00:01 +02:00
|
|
|
<li>{{ error }}</li>
|
2021-09-05 12:30:11 +02:00
|
|
|
{% endfor %}
|
2021-09-08 23:00:01 +02:00
|
|
|
</ul>
|
2021-09-05 12:30:11 +02:00
|
|
|
{% endif %}
|
2021-09-08 23:00:01 +02:00
|
|
|
</span>
|
|
|
|
</div>
|
2021-09-05 12:30:11 +02:00
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
{% block app_content %}
|
|
|
|
|
2024-03-27 16:27:45 +01:00
|
|
|
<style>
|
|
|
|
div.config-generale div.scobox {
|
|
|
|
background-color: #e7e2ff;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<div class="config-generale">
|
2022-03-22 22:14:45 +01:00
|
|
|
<h1>Configuration générale</h1>
|
2023-01-30 22:25:17 +01:00
|
|
|
<div class="sco_help greenboldtext">Les paramètres donnés ici s'appliquent à tout ScoDoc (tous les départements).</div>
|
2021-09-08 23:00:01 +02:00
|
|
|
|
2023-10-22 21:54:23 +02:00
|
|
|
<div class="sco_help"><div style="font-style: normal;">
|
|
|
|
Heure: <b><tt>{{ time.strftime("%d/%m/%Y %H:%M") }}</tt></b>
|
2024-01-09 19:56:05 +01:00
|
|
|
<em>(devrait être l'heure aux montres des étudiants, sinon vérifiez que le serveur est bien en heure légale de votre pays)</em>
|
2023-10-22 21:54:23 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2024-03-27 16:27:45 +01:00
|
|
|
<div class="scobox">
|
|
|
|
<div class="scobox-title">ScoDoc : paramètres généraux</div>
|
2024-04-09 00:36:46 +02:00
|
|
|
|
|
|
|
<div style="margin-top: 16px;">
|
|
|
|
Le module <em>Relations Entreprises</em>
|
|
|
|
{% if is_entreprises_enabled %}
|
|
|
|
est <b>activé</b>
|
|
|
|
{% else %}
|
|
|
|
n'est pas activé
|
|
|
|
{% endif %}
|
|
|
|
: <a class="stdlink" href="{{url_for('scodoc.activate_entreprises')
|
|
|
|
}}">{% if is_entreprises_enabled %}le désactiver{%else%}l'activer{%endif%}</a>
|
|
|
|
</div>
|
|
|
|
|
2024-03-27 16:27:45 +01:00
|
|
|
<form id="configuration_form_scodoc" class="sco-form" action="" method="post" enctype="multipart/form-data" novalidate>
|
|
|
|
{{ form_scodoc.hidden_tag() }}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-8">
|
|
|
|
{{ wtf.quick_form(form_scodoc) }}
|
|
|
|
</div>
|
2023-07-31 16:14:16 +02:00
|
|
|
</div>
|
2023-10-22 21:54:23 +02:00
|
|
|
|
2024-03-27 16:27:45 +01:00
|
|
|
<div style="margin-top: 16px;">
|
|
|
|
<a class="stdlink" href="{{url_for('scodoc.config_personalized_links')}}">Éditer des liens personnalisés</a>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2023-07-31 16:14:16 +02:00
|
|
|
|
2024-03-27 16:27:45 +01:00
|
|
|
<div class="scobox">
|
|
|
|
<div class="scobox-title">Calcul des "bonus" définis par l'établissement</div>
|
2022-03-22 22:14:45 +01:00
|
|
|
<form id="configuration_form" class="sco-form" action="" method="post" enctype="multipart/form-data" novalidate>
|
|
|
|
{{ form_bonus.hidden_tag() }}
|
2022-01-25 23:48:39 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-4">
|
2022-03-22 22:14:45 +01:00
|
|
|
{{ wtf.quick_form(form_bonus) }}
|
2022-01-25 23:48:39 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-06-24 16:48:13 +02:00
|
|
|
<div id="bonus_description" class="scobox"></div>
|
2022-03-22 22:14:45 +01:00
|
|
|
</form>
|
2024-03-27 16:27:45 +01:00
|
|
|
</div>
|
2022-01-25 23:48:39 +01:00
|
|
|
|
2024-03-27 16:27:45 +01:00
|
|
|
<div class="scobox">
|
|
|
|
<div class="scobox-title">Gestion des images: logos, signatures, ...</div>
|
2023-01-30 22:25:17 +01:00
|
|
|
<div class="sco_help">Ces images peuvent être intégrées dans les documents
|
|
|
|
générés par ScoDoc: bulletins, PV, etc.
|
2021-11-19 11:51:05 +01:00
|
|
|
</div>
|
2023-08-13 22:40:16 +02:00
|
|
|
<p><a class="stdlink" href="{{url_for('scodoc.configure_logos')}}">Configuration des images et logos</a>
|
2022-03-22 22:14:45 +01:00
|
|
|
</p>
|
2024-03-27 16:27:45 +01:00
|
|
|
</div>
|
2022-01-25 23:48:39 +01:00
|
|
|
|
2024-03-27 16:27:45 +01:00
|
|
|
<div class="scobox">
|
|
|
|
<div class="scobox-title">Exports Apogée</div>
|
2023-08-13 22:40:16 +02:00
|
|
|
<p><a class="stdlink" href="{{url_for('scodoc.config_codes_decisions')}}">Configuration des codes de décision</a>
|
2023-01-30 22:25:17 +01:00
|
|
|
</p>
|
2024-03-27 16:27:45 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="scobox">
|
|
|
|
<div class="scobox-title">Assiduité et emplois du temps</div>
|
2023-11-08 23:19:58 +01:00
|
|
|
<p><a class="stdlink" href="{{url_for('scodoc.config_assiduites')}}">Configuration du suivi de l'assiduité et accès aux emplois du temps</a>
|
2023-04-25 22:59:06 +02:00
|
|
|
</p>
|
2024-03-27 16:27:45 +01:00
|
|
|
</div>
|
2022-03-22 22:14:45 +01:00
|
|
|
|
2024-03-27 16:27:45 +01:00
|
|
|
<div class="scobox">
|
|
|
|
<div class="scobox-title">Utilisateurs, Rôles et CAS</div>
|
2023-03-02 22:55:25 +01:00
|
|
|
<div>
|
2023-09-04 21:34:23 +02:00
|
|
|
🎎 <a class="stdlink" href="{{url_for('scodoc.config_roles')}}">Définition des rôles et permissions</a>
|
|
|
|
</div>
|
|
|
|
<div style="margin-top: 16px;">
|
2023-04-25 22:59:06 +02:00
|
|
|
🏰 <a class="stdlink" href="{{url_for('scodoc.config_cas')}}">Configuration du service CAS</a>
|
2023-03-02 22:55:25 +01:00
|
|
|
</div>
|
|
|
|
<div style="margin-top: 16px;">
|
2023-04-25 22:59:06 +02:00
|
|
|
🧑🏾🤝🧑🏼 <a class="stdlink" href="{{ url_for('auth.cas_users_import_config') }}">
|
|
|
|
Configurer les comptes utilisateurs pour le CAS</a>
|
2023-03-02 22:55:25 +01:00
|
|
|
</div>
|
|
|
|
<div style="margin-top: 16px;">
|
2023-04-25 22:59:06 +02:00
|
|
|
🛟 <a class="stdlink" href="{{url_for('auth.reset_standard_roles_permissions')}}">Remettre
|
|
|
|
les permissions des rôles standards à leurs valeurs par défaut</a>
|
|
|
|
(efface les modifications apportées aux rôles)
|
2023-03-02 22:55:25 +01:00
|
|
|
</div>
|
2024-03-27 16:27:45 +01:00
|
|
|
</div>
|
2022-03-22 22:14:45 +01:00
|
|
|
|
2024-03-27 16:27:45 +01:00
|
|
|
<div class="scobox">
|
|
|
|
<div class="scobox-title">Protection des données et RGPD</div>
|
2024-01-20 19:29:32 +01:00
|
|
|
<div>📇 <a class="stdlink" href="{{url_for('scodoc.config_rgpd')}}">RGPD et données personnelles</a>
|
|
|
|
</div>
|
2024-03-27 16:27:45 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2024-01-20 19:29:32 +01:00
|
|
|
|
2022-01-25 23:48:39 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block scripts %}
|
|
|
|
{{ super() }}
|
|
|
|
|
|
|
|
<script>
|
2022-01-27 18:12:40 +01:00
|
|
|
|
2023-01-30 22:25:17 +01:00
|
|
|
function update_bonus_description() {
|
2023-03-19 10:11:19 +01:00
|
|
|
let bonus_name = $("#configuration_form select")[0].value;
|
|
|
|
if (bonus_name) {
|
|
|
|
let query = "/ScoDoc/get_bonus_description/" + bonus_name;
|
|
|
|
$.get(query, '', function (data) {
|
|
|
|
$("#bonus_description").html(data);
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
$("#bonus_description").html("pas de bonus défini");
|
|
|
|
}
|
2023-01-30 22:25:17 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
$(function () {
|
|
|
|
$("#configuration_form select").change(function () {
|
|
|
|
update_bonus_description();
|
|
|
|
});
|
2022-01-27 18:12:40 +01:00
|
|
|
|
|
|
|
update_bonus_description();
|
2022-01-25 23:48:39 +01:00
|
|
|
});
|
|
|
|
</script>
|
2023-10-22 21:54:23 +02:00
|
|
|
{% endblock %}
|