2021-12-28 16:17:07 +01:00
|
|
|
{# -*- mode: jinja-html -*- #}
|
2023-01-30 22:25:17 +01:00
|
|
|
{% extends 'base.j2' %}
|
2021-09-05 12:30:11 +02:00
|
|
|
{% import 'bootstrap/wtf.html' as wtf %}
|
|
|
|
|
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 %}
|
|
|
|
|
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
|
|
|
|
2022-03-22 22:14:45 +01:00
|
|
|
<section>
|
2023-01-30 22:25:17 +01:00
|
|
|
<h2>Calcul des "bonus" définis par l'établissement</h2>
|
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>
|
2022-01-27 18:12:40 +01:00
|
|
|
<div id="bonus_description"></div>
|
2022-03-22 22:14:45 +01:00
|
|
|
</form>
|
2022-01-25 23:48:39 +01:00
|
|
|
|
2022-03-22 22:14:45 +01:00
|
|
|
</section>
|
2021-11-16 18:48:56 +01:00
|
|
|
|
2022-03-22 22:14:45 +01:00
|
|
|
<section>
|
2023-01-30 22:25:17 +01:00
|
|
|
<h2>Gestion des images: logos, signatures, ...</h2>
|
|
|
|
<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>
|
2022-03-22 22:14:45 +01:00
|
|
|
<p><a class="stdlink" href="{{url_for('scodoc.configure_logos')}}">configuration des images et logos</a>
|
|
|
|
</p>
|
|
|
|
</section>
|
2022-01-25 23:48:39 +01:00
|
|
|
|
2022-03-22 22:14:45 +01:00
|
|
|
<section>
|
2023-01-30 22:25:17 +01:00
|
|
|
<h2>Exports Apogée</h2>
|
|
|
|
<p><a class="stdlink" href="{{url_for('scodoc.config_codes_decisions')}}">configuration des codes de décision</a>
|
|
|
|
</p>
|
2022-03-22 22:14:45 +01:00
|
|
|
</section>
|
|
|
|
|
2023-02-26 21:24:07 +01:00
|
|
|
<h2>Utilisateurs et CAS</h2>
|
2022-03-22 22:14:45 +01:00
|
|
|
<section>
|
2023-02-26 21:24:07 +01:00
|
|
|
<p><a class="stdlink" href="{{url_for('scodoc.config_cas')}}">configuration du service CAS</a>
|
2023-01-30 22:25:17 +01:00
|
|
|
<p><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)
|
2022-03-22 22:14:45 +01:00
|
|
|
</p>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<h2>ScoDoc</h2>
|
2023-01-30 22:25:17 +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-4">
|
|
|
|
{{ wtf.quick_form(form_scodoc) }}
|
2022-03-22 22:14:45 +01:00
|
|
|
</div>
|
2023-01-30 22:25:17 +01:00
|
|
|
</div>
|
|
|
|
</form>
|
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() {
|
|
|
|
var query = "/ScoDoc/get_bonus_description/" + $("#configuration_form select")[0].value;
|
|
|
|
$.get(query, '', function (data) {
|
|
|
|
$("#bonus_description").html(data);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
$(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-01-30 22:25:17 +01:00
|
|
|
{% endblock %}
|