Sitecof : captcha pour les listes mail

This commit is contained in:
Evarin 2020-08-22 12:34:08 +02:00
parent 9110e5b185
commit 72237fef60
6 changed files with 96 additions and 55 deletions

View file

@ -1,26 +1,32 @@
{% extends "cofcms/base.html" %}
{% load i18n %}
{% load i18n static %}
{% block content %}
<section class="intro">
<h1>{% trans "Listes mail" %}</h1>
</section>
<section class="pagecontent">
<article class="paragraph">
{% blocktrans %}
Tous les abonnements aux listes de diffusion de mail à l'ENS se gèrent sur le serveur de mail SYMPA
Pour y accéder : Merci de répondre à cette question anti-robots.
{% endblocktrans %}
</article>
<article class="paragraph">
<form method="POST" action="">
{% csrf_token %}
{% if erreur %}<p class="erreur">{% trans erreur %}</p>{% endif %}
<p>{% blocktrans %}Comment s'appellent les poissons du bassin ?{% endblocktrans %}</p>
<input type="text" name="bassin" />
<input type="submit" />
</article>
</section>
{% endblock %}
{% if redirect %}
<p>{% trans "Redirection vers" %} <a href="{{ redirect }}" target="_parent">{{ redirect }}</a></p>
<script type="text/javascript">
top.location = "{{ redirect }}";
</script>
{% else %}
<!doctype html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="{% static "fonts/SourceSansPro/sourceSansPro.css" %}"/>
<link rel="stylesheet" type="text/css" href="{% static "cofcms/css/screen.css" %}"/>
<body>
<article class="paragraph">
<form method="POST" action="">
{% csrf_token %}
<p>{% blocktrans %}Comment s'appellent les poissons du bassin ?{% endblocktrans %}</p>
{% for field in form %}
{% for error in field.errors %}
<p class="erreur">{% trans error %}</p>
{% endfor %}
<p align="center">
{{ field }}
</p>
{% endfor %}
<input type="submit" />
</form>
</article>
</body>
</html>
{% endif %}