2020-08-25 19:20:37 +02:00
|
|
|
from django.shortcuts import render
|
2020-08-25 19:22:54 +02:00
|
|
|
|
|
|
|
from gestioncof.cms.forms import CaptchaForm
|
2019-01-06 00:17:57 +01:00
|
|
|
|
2017-08-07 23:31:27 +02:00
|
|
|
|
2018-01-28 23:44:48 +01:00
|
|
|
def raw_calendar_view(request, year, month):
|
2019-01-06 00:25:41 +01:00
|
|
|
return render(request, "cofcms/calendar_raw.html", {"month": month, "year": year})
|
2020-08-22 12:34:08 +02:00
|
|
|
|
2020-08-25 19:20:37 +02:00
|
|
|
|
2020-08-22 12:34:08 +02:00
|
|
|
def sympa_captcha_form_view(request):
|
|
|
|
if request.method == "POST":
|
|
|
|
form = CaptchaForm(request.POST)
|
|
|
|
if form.is_valid():
|
2020-08-25 19:20:37 +02:00
|
|
|
return render(
|
|
|
|
request,
|
|
|
|
"cofcms/sympa.html",
|
|
|
|
{"redirect": "https://lists.ens.fr/wws/lists/"},
|
|
|
|
)
|
2020-08-22 12:34:08 +02:00
|
|
|
else:
|
|
|
|
form = CaptchaForm()
|
2020-08-25 19:20:37 +02:00
|
|
|
|
2020-08-22 12:34:08 +02:00
|
|
|
return render(request, "cofcms/sympa.html", {"form": form})
|