Verified Commit 9a77c492 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Add confirmation message to events registration cancellation

parent f37b5fb1
......@@ -7,16 +7,16 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-16 08:57+0100\n"
"PO-Revision-Date: 2018-02-16 08:57+0100\n"
"Last-Translator: Thom Wiggers <thom@thomwiggers.nl>\n"
"POT-Creation-Date: 2018-03-11 14:57+0100\n"
"PO-Revision-Date: 2018-03-11 14:57+0100\n"
"Last-Translator: Sébastiaan Versteeg <se_bastiaan@outlook.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.0.6\n"
"X-Generator: Poedit 2.0.4\n"
#: admin.py:95
msgid "Event Date"
......@@ -616,6 +616,10 @@ msgstr ""
"betekent dat je de volledige kosten van €%(costs)s zult moeten betalen. Je "
"kunt dit niet ongedaan maken!"
#: templates/events/event.html:116
msgid "Are you sure you want to cancel your registration?"
msgstr "Weet je zeker dat je je wilt afmelden?"
#: templates/events/event.html:120
msgid "Login"
msgstr "Login"
......
......@@ -113,7 +113,7 @@
{% if registration.would_cancel_after_deadline %}
<input type="submit" class="btn btn-style1" value="{% trans "Cancel registration" %}" onclick="return confirm('{% blocktrans with costs=event.fine %}The deadline has passed, are you sure you want to cancel your registration and pay the full costs of €{{ costs }}? You will not be able to undo this!{% endblocktrans %}');" />
{% else %}
<input type="submit" class="btn btn-style1" value="{% trans "Cancel registration" %}" />
<input type="submit" class="btn btn-style1" value="{% trans "Cancel registration" %}" onclick="return confirm('{% trans 'Are you sure you want to cancel your registration?' %}');" />
{% endif %}
</form>
{% elif request.user.is_authenticated is False %}
......
Supports Markdown
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