ScoDoc-Lille/app/templates/configuration.html

65 lines
1.9 KiB
HTML
Raw Normal View History

2021-12-28 16:17:07 +01:00
{# -*- mode: jinja-html -*- #}
{% extends 'base.html' %}
{% import 'bootstrap/wtf.html' as wtf %}
2021-11-19 11:51:05 +01:00
{% macro render_field(field, with_label=True) %}
<div>
2021-11-19 11:51:05 +01:00
{% if with_label %}
<span class="wtf-field">{{ field.label }} :</span>
{% endif %}
<span class="wtf-field">{{ field(**kwargs)|safe }}
{% if field.errors %}
<ul class=errors>
{% for error in field.errors %}
<li>{{ error }}</li>
{% endfor %}
</ul>
{% endif %}
</span>
</div>
{% endmacro %}
{% block app_content %}
2021-11-19 11:51:05 +01:00
<form id="configuration_form" class="sco-form" action="" method="post" enctype="multipart/form-data" novalidate>
{{ form.hidden_tag() }}
<h1>Configuration générale</h1>
<div class="sco_help">Les paramètres donnés ici s'appliquent à tout ScoDoc (tous les départements):</div>
<div class="row">
<div class="col-md-4">
{{ wtf.quick_form(form) }}
</div>
<div class="help" id="bonus_description"></div>
</div>
<h1>Gestion des images: logos, signatures, ...</h1>
<div class="sco_help">Ces images peuvent être intégrées dans les documents
générés par ScoDoc: bulletins, PV, etc.</div>
<p><a href="{{url_for('scodoc.configure_logos')}}">configuration des images et logos</a>
</p>
2021-11-16 18:48:56 +01:00
<h1>Exports Apogée</h1>
<p><a href="{{url_for('scodoc.config_codes_decisions')}}">configuration des codes de décision</a></p>
2021-11-19 11:51:05 +01:00
</div>
</form>
{% endblock %}
{% block scripts %}
{{ super() }}
<script>
$(function()
{
$("#configuration_form select").change(function(){
var query = "/ScoDoc/get_bonus_description/" + $("#configuration_form select")[0].value;
$.get(query, '', function (data) {
$("#bonus_description").html(data);
});
});
});
</script>
{% endblock %}