forked from ScoDoc/ScoDoc
Deux fichiers oubliés, pour #648
This commit is contained in:
parent
706b21ede7
commit
6908b0b8d2
49
app/forms/main/config_rgpd.py
Normal file
49
app/forms/main/config_rgpd.py
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
# -*- mode: python -*-
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
#
|
||||||
|
# ScoDoc
|
||||||
|
#
|
||||||
|
# Copyright (c) 1999 - 2024 Emmanuel Viennet. All rights reserved.
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
# Emmanuel Viennet emmanuel.viennet@viennet.net
|
||||||
|
#
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
"""
|
||||||
|
Formulaire configuration RGPD
|
||||||
|
"""
|
||||||
|
|
||||||
|
from flask_wtf import FlaskForm
|
||||||
|
from wtforms import SubmitField
|
||||||
|
from wtforms.fields.simple import TextAreaField
|
||||||
|
|
||||||
|
|
||||||
|
class ConfigRGPDForm(FlaskForm):
|
||||||
|
"Formulaire paramétrage RGPD"
|
||||||
|
rgpd_coordonnees_dpo = TextAreaField(
|
||||||
|
label="Optionnel: coordonnées du DPO",
|
||||||
|
description="""Le délégué à la protection des données (DPO) est chargé de mettre en œuvre
|
||||||
|
la conformité au règlement européen sur la protection des données (RGPD) au sein de l’organisme.
|
||||||
|
Indiquer ici les coordonnées (format libre) qui seront affichées aux utilisateurs de ScoDoc.
|
||||||
|
""",
|
||||||
|
render_kw={"rows": 5, "cols": 72},
|
||||||
|
)
|
||||||
|
|
||||||
|
submit = SubmitField("Valider")
|
||||||
|
cancel = SubmitField("Annuler", render_kw={"formnovalidate": True})
|
24
app/templates/config_rgpd.j2
Normal file
24
app/templates/config_rgpd.j2
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{% extends "base.j2" %}
|
||||||
|
{% import 'wtf.j2' as wtf %}
|
||||||
|
|
||||||
|
{% block app_content %}
|
||||||
|
<h1>{{title}}</h1>
|
||||||
|
|
||||||
|
<div class="help">
|
||||||
|
<p>Certaines fonctionnalités de ScoDoc vous aident à vous conformer
|
||||||
|
au règlement général de protection des données (RGPD) européen.
|
||||||
|
</p>
|
||||||
|
<p>Rappelons que le logiciel ScoDoc est fourni sans aucune garantie,
|
||||||
|
selon les termes de sa licence GNU GPL et que ni ses auteurs ni
|
||||||
|
l'association ScoDoc ne sauraient être tenus responsables de l'usage
|
||||||
|
qui en est fait.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-8">
|
||||||
|
{{ wtf.quick_form(form) }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% endblock %}
|
Loading…
Reference in New Issue
Block a user