Commit c86bd7af authored by Job Doesburg's avatar Job Doesburg Committed by Luko van der Maas
Browse files

Almanac questionnaire

parent a40573bd
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-03-09 11:35+0100\n"
"PO-Revision-Date: 2020-03-09 11:36+0100\n"
"Last-Translator: Job Doesburg <job.doesburg@gmail.com>\n"
"Language-Team: \n"
"Language: nl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 2.2.4\n"
#: singlepages/templates/singlepages/almanac.html
msgid "Almanac"
msgstr "Almanak"
#: singlepages/templates/singlepages/almanac.html
msgid "Almanac 2020"
msgstr "Almanak 2020"
#: singlepages/templates/singlepages/almanac.html
msgid ""
"Happy birthday to Thalia! As you might have noticed, Thalia has a special "
"birthday coming up: we will be 30 years old next November. In order to "
"celebrate that, the association will once again publish an almanac! This is "
"a book that will contain a flashback to the last five years. We will look "
"back on the best activities, all the changes within the association and "
"there will be a little spot for all the members."
msgstr ""
"Gefeliciteerd Thalia! Zoals je misschien wel weet, komt er een speciale "
"verjaardag aan voor Thalia: in November worden we 30 jaar oud. Om dat te "
"vieren, publiceert Thalia weer een almanak. Dit is een boek met daarin een "
"terugblik op de laatste vijf jaar. We kijken terug op de beste activiteiten "
"van het jaar, alle veranderingen binnen de vereniging en er zal ook een "
"plekje zijn voor al onze leden."
#: singlepages/templates/singlepages/almanac.html
msgid ""
"Since the almanac will be all about our members, we are asking every member "
"to fill out a questionnaire. This might take up to 10 minutes. The deadline "
"for filling in this questionnaire is <b>April 2nd, 2020</b>."
msgstr ""
"Omdat de Almanac volledig over onze leden zal gaan, vragen we ieder lid een "
"vragenlijst in te vullen. Dit kan tot 10 minuten duren. De deadline voor het "
"invullen van de vragenlijst is <b>2 april 2020</b>."
#: singlepages/templates/singlepages/almanac.html
msgid ""
"Note: filling in this questionnaire does not mean you sign up for buying the "
"almanac yet. This is just for collection of information and statistics."
msgstr ""
"Let op: het invullen van deze vragenlijst betekent niet automatisch dat je "
"de almanak ook gaat kopen. Het is slechts voor het verzamelen van informatie "
"en statistieken."
#: singlepages/templates/singlepages/almanac.html
msgid "Start the questionnaire"
msgstr "Vul de vragenlijst in"
#: singlepages/templates/singlepages/almanac.html
msgid ""
"You can fill out the questionnaire as many times as you would like, your "
"latest entry will be used at any time."
msgstr ""
"Je kunt de vragenlijst zo vaak in vullen als je wilt, we gebruiken altijd je "
"laatste inzending."
#: singlepages/templates/singlepages/almanac.html
msgid ""
"The data you fill out in the questionnaire will be processed by <a href="
"\"https://typeform.com\" target=\"_blank\">Typeform</a>. Only aggregated "
"data will be published in the almanac, we will never publish your individual "
"answers unless explicitly stated otherwise in the form."
msgstr ""
"De gegevens die je invult in de vragenlijst zullen verwerkt worden door <a "
"href=“https://typeform.com” target=“_blank”>Typeform</a>. Enkel "
"geaggregeerde gegevens zullen worden gepubliceerd in de almanak. We zullen "
"nooit jouw individuele antwoorden publiceren, tenzij expliciet anders "
"aangegeven in de vragenlijst."
#: singlepages/templates/singlepages/almanac.html
msgid "Coming soon..."
msgstr "Coming soon…"
#: singlepages/templates/singlepages/become_active.html
msgid "Become active"
msgstr ""
{% extends "base.html" %}
{% load i18n %}
{% block title %}{% trans "Almanac" %} — {{ block.super }}{% endblock %}
{% block opengraph_title %}{% trans "Almanac" %}" %} — {{ block.super }}{% endblock %}
{% block body %}
<section class="page-section">
<div class="container">
{% if show_almanac %}
<h1 class="text-center section-title">{% trans "Almanac 2020" %}</h1>
<p>{% blocktrans trimmed %}
Happy birthday to Thalia! As you might have noticed, Thalia has a special birthday coming up: we will be 30 years old next November.
In order to celebrate that, the association will once again publish an almanac! This is a book that will contain a flashback to the last five years.
We will look back on the best activities, all the changes within the association and there will be a little spot for all the members.
{% endblocktrans %}</p>
<p>{% blocktrans trimmed %}
Since the almanac will be all about our members, we are asking every member to fill out a questionnaire. This might take up to 10 minutes.
The deadline for filling in this questionnaire is <b>April 2nd, 2020</b>.
{% endblocktrans %}</p>
<p>{% blocktrans trimmed %}
Note: filling in this questionnaire does not mean you sign up for buying the almanac yet. This is just for collection of information and statistics.
{% endblocktrans %}</p>
<br>
<a class="typeform-share button text-center btn btn-primary btn-lg btn-block" href="{{ almanac_url }}"
data-mode="popup" data-hide-headers=true data-hide-footer=false data-submit-close-delay="3" target="_blank">
{% trans "Start the questionnaire" %}
</a>
<script>
(function() {
var qs,js,q,s,d=document, gi=d.getElementById, ce=d.createElement, gt=d.getElementsByTagName, id="typef_orm_share", b="https://embed.typeform.com/";
if(!gi.call(d,id)){
js=ce.call(d,"script");
js.id=id;
js.src=b+"embed.js";
q=gt.call(d,"script")[0];
q.parentNode.insertBefore(js,q)
}
})()
</script>
<br>
<p>{% blocktrans trimmed %}
You can fill out the questionnaire as many times as you would like, your latest entry will be used at any time.
{% endblocktrans %}</p>
<p>{% blocktrans trimmed %}
The data you fill out in the questionnaire will be processed by <a href="https://typeform.com" target="_blank">Typeform</a>.
Only aggregated data will be published in the almanac, we will never publish your individual answers unless explicitly stated otherwise in the form.
{% endblocktrans %}</p>
{% else %}
<h1 class="text-center section-title">{% trans "Coming soon..." %}</h1>
{% endif %}
</div>
</section>
{% endblock body %}
......@@ -8,6 +8,7 @@ from .views import (
BecomeActiveView,
StyleGuideView,
ContactView,
AlmanacView,
)
app_name = "singlepages"
......@@ -39,6 +40,7 @@ urlpatterns = [
"become-active/", BecomeActiveView.as_view(), name="become-active"
),
path("styleguide/", StyleGuideView.as_view(), name="styleguide"),
path("almanac/", AlmanacView.as_view(), name="almanac"),
]
),
),
......
......@@ -3,6 +3,8 @@ from django.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator
from django.views.generic import TemplateView
from thaliawebsite.settings import settings
@method_decorator(login_required, "dispatch")
class StyleGuideView(TemplateView):
......@@ -40,3 +42,27 @@ class ContactView(TemplateView):
"""Static page with contact info"""
template_name = "singlepages/contact.html"
@method_decorator(login_required, "dispatch")
class AlmanacView(TemplateView):
"""Static page with url to almanac info"""
template_name = "singlepages/almanac.html"
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["show_almanac"] = settings.SHOW_ALMANAC_PAGE
if settings.SHOW_ALMANAC_PAGE:
member = self.request.member
context["member"] = member
almanac_url = (
f"https://svthalia.typeform.com/to/Equ1fY?"
f"thalia_email={member.email}&"
f"thalia_username={member.get_username()}&"
f"thalia_full_name={member.get_full_name()}&"
f"thalia_cohort={member.profile.starting_year}&"
f"thalia_user_id={member.id}"
)
context["almanac_url"] = almanac_url
return context
......@@ -3,7 +3,7 @@ This file defines the menu layout.
We set the variable `:py:main` to form the menu tree.
"""
from django.conf import settings
from django.utils.translation import gettext_lazy as _
__all__ = ["MAIN_MENU"]
......@@ -78,3 +78,8 @@ MAIN_MENU = [
},
{"title": _("Contact"), "name": "singlepages:contact"},
]
if settings.SHOW_ALMANAC_PAGE:
MAIN_MENU[2]["submenu"].append(
{"title": _("Almanac 2020"), "name": "singlepages:almanac",}
)
......@@ -353,3 +353,7 @@ DEFAULT_EXCEPTION_REPORTER_FILTER = (
# Make sure the locations in django.po files don't include line nrs.
makemessages.Command.xgettext_options.append("--add-location=file")
# Temporary setting for almanac page
SHOW_ALMANAC_PAGE = False
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment