Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
f95b7363
Commit
f95b7363
authored
May 22, 2019
by
Luko van der Maas
Browse files
Fix code style and add translations
parent
5e33e157
Changes
5
Hide whitespace changes
Inline
Side-by-side
website/events/admin_views.py
View file @
f95b7363
...
...
@@ -5,7 +5,7 @@ from django.contrib.admin import helpers
from
django.contrib.admin.views.decorators
import
staff_member_required
from
django.contrib.auth.mixins
import
PermissionRequiredMixin
from
django.http
import
HttpResponse
,
HttpResponseRedirect
from
django.shortcuts
import
get_object_or_404
from
django.shortcuts
import
get_object_or_404
,
redirect
from
django.urls
import
reverse
from
django.utils
import
timezone
from
django.utils.decorators
import
method_decorator
...
...
website/events/locale/nl/LC_MESSAGES/django.mo
View file @
f95b7363
No preview for this file type
website/events/locale/nl/LC_MESSAGES/django.po
View file @
f95b7363
...
...
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-05-
16 12
:1
5
+0200\n"
"PO-Revision-Date: 2019-05-
16 12
:1
9
+0200\n"
"POT-Creation-Date: 2019-05-
22 20
:1
1
+0200\n"
"PO-Revision-Date: 2019-05-
22 20
:1
3
+0200\n"
"Last-Translator: Thom Wiggers <thom@thomwiggers.nl>\n"
"Language-Team: \n"
"Language: nl\n"
...
...
@@ -472,7 +472,7 @@ msgid "Set all registered to paid and present"
msgstr "Zet iedereen op betaald en present"
#: templates/events/admin/details.html
msgid "Send pushnotification to registerd users"
msgid "Send pushnotification to register
e
d users"
msgstr "Stuur pushnotificatie naar participerende gebruikers"
#: templates/events/admin/details.html
...
...
@@ -535,6 +535,10 @@ msgstr ""
msgid "Edit information fields"
msgstr "Wijzig informatie velden"
#: templates/events/admin/message_form.html
msgid "Send message"
msgstr "Stuur pushnotificatie"
#: templates/events/admin/registrations_table.html
msgid "not paid"
msgstr "niet betaald"
...
...
website/events/templates/events/admin/details.html
View file @
f95b7363
...
...
@@ -42,7 +42,7 @@
{% include 'events/admin/registrations_table.html' with registrations=event.participants %}
<br>
{% if event.queue.count > 0 %}
<h2>
{% trans "waiting"|capfirst %}
</h2>
<h
registerd
2>
{% trans "waiting"|capfirst %}
</h
registerd
2>
{% trans "queued" as queued %}
{% include 'events/admin/registrations_table.html' with registrations=event.queue verb=queued addlink=False %}
<br>
...
...
@@ -55,7 +55,7 @@
<a
href=
"{% url 'admin:events_event_export' pk=event.pk %}"
class=
"button"
>
{% trans "Export registrations" %}
</a>
<a
href=
"{% url 'admin:events_event_export_email' pk=event.pk %}"
class=
"button"
>
{% trans "Export email addresses of attendees" %}
</a>
<a
href=
"{% url 'admin:events_event_all_present' pk=event.pk %}"
class=
"button"
>
{% trans "Set all registered to paid and present" %}
</a>
<a
href=
"{% url 'admin:events_event_message' pk=event.pk %}"
class=
"button"
>
{% trans "Send pushnotification to registerd users" %}
</a>
<a
href=
"{% url 'admin:events_event_message' pk=event.pk %}"
class=
"button"
>
{% trans "Send pushnotification to register
e
d users" %}
</a>
</div>
</div>
{% endblock %}
...
...
website/events/templates/events/admin/message_form.html
View file @
f95b7363
...
...
@@ -8,6 +8,6 @@
{% block submit_buttons_bottom %}
<div
class=
"submit-row pushnotifications-row"
>
<input
type=
"submit"
value=
"Send message"
class=
"default button"
name=
"_save"
data-_extension-text-contrast=
""
>
<input
type=
"submit"
value=
"
{% trans '
Send message
' %}
"
class=
"default button"
name=
"_save"
data-_extension-text-contrast=
""
>
</div>
{% endblock %}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment