-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
435 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ fabfile.py | |
manlocal.py | ||
db.sqlite3 | ||
.DS_Store | ||
*.mo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from django.contrib import admin | ||
|
||
# Register your models here. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from django.db import models | ||
|
||
# Create your models here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% extends 'home.html' %} | ||
{% load i18n %} | ||
|
||
{% block title %}{{ user.username }}{% endblock %} | ||
{% block body_class %}helpdesk{% endblock %} | ||
{% block navbar %} | ||
{% include 'navbar.html' %} | ||
{% endblock %} | ||
{% block content %} | ||
<div class="col-md-8 col-md-offset-2 update_form"> | ||
<form action="." method="POST"> | ||
{% csrf_token %} | ||
{{ form.as_p }} | ||
<input class="button" type="submit" value="{% trans 'Save' %}"> | ||
</form> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{% extends 'home.html' %} | ||
{% load i18n %} | ||
|
||
{% block title %}{{ user.username }}{% endblock %} | ||
{% block body_class %}helpdesk{% endblock %} | ||
|
||
{% block navbar %} | ||
{% include 'navbar.html' %} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="col-md-8 col-md-offset-2"> | ||
<ul class="list-group"> | ||
<li class="list-group-item list-group-item-info">{% trans 'Username' %}: {{ user.username }}</li> | ||
<li class="list-group-item list-group-item-info">{% trans 'First name' %}: {{ user.first_name }}</li> | ||
<li class="list-group-item list-group-item-info">{% trans 'Last name' %}: {{ user.last_name }}</li> | ||
<li class="list-group-item list-group-item-info">{% trans 'Email' %}: {{ user.email }}</li> | ||
</ul> | ||
<div><a href="{% url 'account_edit' %}" class="btn btn-default">{% trans 'Edit Account' %}</a></div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from django.test import TestCase | ||
|
||
# Create your tests here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from django.conf.urls import url | ||
from .views import user_account_detail, AccountUpdateView | ||
|
||
urlpatterns = [ | ||
url(r'^edit/$', AccountUpdateView.as_view(), name="account_edit"), | ||
url(r'^', user_account_detail, name="account_detail"), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from django.shortcuts import render | ||
from django.contrib.auth.decorators import login_required | ||
from django.views.generic.edit import UpdateView | ||
from django.core.urlresolvers import reverse_lazy | ||
|
||
from volunteer_planner.utils import LoginRequiredMixin | ||
|
||
|
||
@login_required() | ||
def user_account_detail(request): | ||
user = request.user | ||
return render(request, 'user_detail.html', {'user': user}) | ||
|
||
|
||
class AccountUpdateView(LoginRequiredMixin, UpdateView): | ||
""" | ||
Allows a user to update their profile. | ||
""" | ||
fields = ['first_name', 'last_name', 'email'] | ||
template_name = "user_account_edit.html" | ||
success_url = reverse_lazy('account_detail') | ||
|
||
def get_object(self, queryset=None): | ||
return self.request.user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2015-09-13 16:24+0200\n" | ||
"POT-Creation-Date: 2015-09-14 10:29+0200\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -18,6 +18,30 @@ msgstr "" | |
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#: account/templates/user_account_edit.html:14 | ||
msgid "Save" | ||
msgstr "Speichern" | ||
|
||
#: account/templates/user_detail.html:14 registration/forms.py:34 | ||
msgid "Username" | ||
msgstr "Benutzername" | ||
|
||
#: account/templates/user_detail.html:15 | ||
msgid "First name" | ||
msgstr "Vorname" | ||
|
||
#: account/templates/user_detail.html:16 | ||
msgid "Last name" | ||
msgstr "Nachname" | ||
|
||
#: account/templates/user_detail.html:17 registration/forms.py:37 | ||
msgid "Email" | ||
msgstr "E-Mail Adresse" | ||
|
||
#: account/templates/user_detail.html:19 | ||
msgid "Edit Account" | ||
msgstr "Account bearbeiten" | ||
|
||
#: notifications/models.py:13 | ||
msgid "title" | ||
msgstr "Titel" | ||
|
@@ -38,18 +62,10 @@ msgstr "Benutzer aktivieren" | |
msgid "Re-send activation emails" | ||
msgstr "Aktivierungsmail erneut versenden" | ||
|
||
#: registration/forms.py:34 | ||
msgid "Username" | ||
msgstr "Benutzername" | ||
|
||
#: registration/forms.py:35 | ||
msgid "This value may contain only letters, numbers and @/./+/-/_ characters." | ||
msgstr "Der Wert darf nur Buchstaben, Zahlen und die Zeichen @, ., +, - und _ enthalten" | ||
|
||
#: registration/forms.py:37 | ||
msgid "E-mail" | ||
msgstr "E-Mail Adresse" | ||
|
||
#: registration/forms.py:39 | ||
msgid "Password" | ||
msgstr "Passwort" | ||
|
@@ -62,21 +78,25 @@ msgstr "Passwort (noch einmal)" | |
msgid "A user with that username already exists." | ||
msgstr "Es gibt bereits einen Benutzer mit diesem Benutzernamen." | ||
|
||
#: registration/forms.py:76 | ||
#: registration/forms.py:58 | ||
msgid "A user with that email already exists. Please login instead." | ||
msgstr "Die Emailadresse ist bereits bekannt. Bitte logge Dich ein mit Deinem Benutzername und Password." | ||
|
||
#: registration/forms.py:82 | ||
msgid "I have read and agree to the Terms of Service" | ||
msgstr "Ich habe die Nutzungsbedingungen gelesen und stimme ihnen zu" | ||
|
||
#: registration/forms.py:77 | ||
#: registration/forms.py:83 | ||
msgid "You must agree to the terms to register" | ||
msgstr "Sie müssen den Nutzungsbedingungen zustimmen" | ||
|
||
#: registration/forms.py:93 | ||
#: registration/forms.py:99 | ||
msgid "This email address is already in use. Please supply a different email address." | ||
msgstr "Diese E-Mail Adresse ist bereits registriert. Bitte verwenden Sie eine andere E-Mail Adresse" | ||
|
||
#: registration/forms.py:118 | ||
#: registration/forms.py:124 | ||
msgid "Registration using free email addresses is prohibited. Please supply a different email address." | ||
msgstr "" | ||
msgstr "Die Registrierung mit einer E-Mail-Adresses dieses Anbieters ist leider verboten. Bitte verwende eine andere E-Mail-Adresse." | ||
|
||
#: registration/models.py:219 | ||
msgid "user" | ||
|
@@ -88,15 +108,12 @@ msgstr "Aktivierungsschlüssel" | |
|
||
#: registration/templates/activate.html:7 | ||
#, python-format | ||
msgid "" | ||
"\n" | ||
"Thanks %(account)s, activation complete!\n" | ||
"You may now <a href='%(auth_login_url)s'>login</a> using the username and password you set at registration.\n" | ||
msgstr "" | ||
msgid "Thanks %(account)s, activation complete! You may now <a href='%(auth_login_url)s'>login</a> using the username and password you set at registration." | ||
msgstr "Danke %(account)s, die Aktivierung ist abgeschlossen! Du kannst dich jetzt mit deinem Benutzernamen und Passwort, welche du bei der Registrierung gewählt hast <a href='%(auth_login_url)s'>einloggen</a>." | ||
|
||
#: registration/templates/activate.html:12 | ||
msgid "Oops – it seems that your activation key is invalid. Please check the url again." | ||
msgstr "" | ||
msgid "Oops – Either you activated your account already, or the activation key is invalid or has expired." | ||
msgstr "Uuppss – Entweder dein Account wurde bereits aktiviert oder der Aktivierungschlüssel ist ungültig oder abgelaufen." | ||
|
||
#: registration/templates/login.html:15 | ||
msgid "Your username and password didn't match. Please try again." | ||
|
@@ -106,68 +123,68 @@ msgstr "Benutzername und Passort ungültig. Bitte versuchen Sie es erneut." | |
msgid "Scheduler" | ||
msgstr "Schichtplaner" | ||
|
||
#: scheduler/models.py:16 | ||
#: scheduler/models.py:17 | ||
msgid "shift" | ||
msgstr "Schicht" | ||
|
||
#: scheduler/models.py:17 | ||
#: scheduler/models.py:18 | ||
msgid "shifts" | ||
msgstr "Schichten" | ||
|
||
#: scheduler/models.py:18 scheduler/models.py:86 | ||
#: scheduler/models.py:20 scheduler/models.py:90 | ||
msgid "helptype" | ||
msgstr "Hilfebereich" | ||
|
||
#: scheduler/models.py:18 | ||
#: scheduler/models.py:20 | ||
msgid "helptype_text" | ||
msgstr "Jeder Hilfebereich hat so viele Planelemente wie es Arbeitsschichten geben soll. Dies ist EINE Arbeitsschicht für einen bestimmten Tag" | ||
|
||
#: scheduler/models.py:19 scheduler/models.py:122 | ||
#: scheduler/models.py:21 scheduler/models.py:125 | ||
msgid "location" | ||
msgstr "Ort" | ||
|
||
#: scheduler/models.py:22 | ||
#: scheduler/models.py:24 | ||
msgid "time from" | ||
msgstr "Anfangszeit" | ||
|
||
#: scheduler/models.py:27 | ||
#: scheduler/models.py:29 | ||
msgid "number of needed volunteers" | ||
msgstr "Anz. benoetigter Freiwillige" | ||
msgstr "Anz. benötigter Freiwillige" | ||
|
||
#: scheduler/models.py:31 | ||
#: scheduler/models.py:34 | ||
msgid "assigned volunteers" | ||
msgstr "Reg. Freiwillige" | ||
|
||
#: scheduler/models.py:35 | ||
#: scheduler/models.py:39 | ||
msgid "volunteers" | ||
msgstr "Freiwillige" | ||
|
||
#: scheduler/models.py:87 | ||
#: scheduler/models.py:91 | ||
msgid "helptypes" | ||
msgstr "Hilfebereiche" | ||
|
||
#: scheduler/models.py:102 | ||
#: scheduler/models.py:106 | ||
msgid "timeperiod" | ||
msgstr "Zeitspanne" | ||
|
||
#: scheduler/models.py:103 | ||
#: scheduler/models.py:107 | ||
msgid "timeperiods" | ||
msgstr "Zeitspannen" | ||
|
||
#: scheduler/models.py:123 | ||
#: scheduler/models.py:126 | ||
msgid "locations" | ||
msgstr "Orte" | ||
|
||
#: scheduler/views.py:94 | ||
#: scheduler/views.py:79 | ||
msgid "The submitted data was invalid." | ||
msgstr "Die eingegebenen Daten sind ungültig." | ||
|
||
#: scheduler/views.py:105 | ||
#: scheduler/views.py:90 | ||
#, python-brace-format | ||
msgid "We can't add you to this shift because you've already agreed to other shifts at the same time: {conflicts}" | ||
msgstr "Sie können der Schicht nicht beitreten, da Sie bereits an anderen mit überschneidenden Zeiten teilnehmen: {conflicts}" | ||
|
||
#: scheduler/views.py:108 | ||
#: scheduler/views.py:93 | ||
msgid "You were successfully added to this shift." | ||
msgstr "Sie haben sich erfolgreich für die Schicht angemeldet." | ||
|
||
|
@@ -191,11 +208,11 @@ msgstr "Organisation" | |
msgid "email" | ||
msgstr "E-Mail" | ||
|
||
#: volunteer_planner/settings/base.py:128 | ||
#: volunteer_planner/settings/base.py:130 | ||
msgid "German" | ||
msgstr "Deutsch" | ||
|
||
#: volunteer_planner/settings/base.py:129 | ||
#: volunteer_planner/settings/base.py:131 | ||
msgid "English" | ||
msgstr "Englisch" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.