{% extends 'management/base.html' %} {% load static %} {% load crispy_forms_filters %} {% block head %} {% endblock %} {% block content %}

Create election

{% csrf_token %} {{ form|as_crispy_errors }} {% for field in form %} {% if field.html_name != "remind_text" and field.html_name != "send_emails_on_start" and field.html_name != "voters_self_apply" and field.html_name != "email" and field.html_name != 'disable_abstention' %} {{ field|as_crispy_field }} {% endif %} {% endfor %} {# collapse card example taken from https://www.codeply.com/p/cI2Pu6O5N5#}
Advanced Options
{{ form.disable_abstention|as_crispy_field }} {{ form.voters_self_apply|as_crispy_field }} {{ form.send_emails_on_start|as_crispy_field }}
Remind email template text
The template has be written the python format string format. The following variables are available:
{% for key, val in variables.items %} {% endfor %}
Name Meaning
{{ key }} {{ val }}
Here is an example:

Dear,

This is a reminder that the {title} election has just began. So you can now start voting for your favourite candidates on <a href="{url}">{url}</a>. The access code can be found in the invitation email. Please be reminded that you can only vote until {end_time_en} on the {end_date_en}.

Best regards,
Your awesome Organizers

{{ form.remind_text|as_crispy_field }}


Send test mail
{{ form.email|as_crispy_field }}

{% endblock %} {% block footer_scripts %} {% endblock %}