diff --git a/Todo.txt b/Todo.txt index facc700..6a1f1cb 100644 --- a/Todo.txt +++ b/Todo.txt @@ -1,8 +1,4 @@ - - -- Termin Typ: Konzertvorschlag -> ohne Ort -> nicht auf routenplanung - - Email benachrichtigung bei Foreneintrag! - Gallery \ No newline at end of file diff --git a/blechreiz/database.sqlite b/blechreiz/database.sqlite index 630b052..5322a00 100644 Binary files a/blechreiz/database.sqlite and b/blechreiz/database.sqlite differ diff --git a/blechreiz/settings.py b/blechreiz/settings.py index 0c7a116..9875c7f 100644 --- a/blechreiz/settings.py +++ b/blechreiz/settings.py @@ -24,6 +24,14 @@ DATABASES = { } } +# Email + +EMAIL_HOST='smtp.gmail.com' +EMAIL_HOST_USER='martinbauer86@gmail.com' +EMAIL_HOST_PASSWORD='' +EMAIL_USE_TLS=True + + # Hosts/domain names that are valid for this site; required if DEBUG is False # See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts ALLOWED_HOSTS = [] diff --git a/eventplanner/locale/de/LC_MESSAGES/django.mo b/eventplanner/locale/de/LC_MESSAGES/django.mo index 131e079..7488f68 100644 Binary files a/eventplanner/locale/de/LC_MESSAGES/django.mo and b/eventplanner/locale/de/LC_MESSAGES/django.mo differ diff --git a/eventplanner/locale/de/LC_MESSAGES/django.po b/eventplanner/locale/de/LC_MESSAGES/django.po index e5de1ea..ca4f871 100644 --- a/eventplanner/locale/de/LC_MESSAGES/django.po +++ b/eventplanner/locale/de/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-09-28 16:56+0200\n" +"POT-Creation-Date: 2013-11-01 10:52+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,93 +18,117 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: models.py:14 +#: models.py:15 msgid "Rehearsal" msgstr "Probe" -#: models.py:15 +#: models.py:16 msgid "Concert" msgstr "Konzert" -#: models.py:16 +#: models.py:17 msgid "Party" msgstr "Feier" -#: models.py:17 +#: models.py:18 msgid "Travel" msgstr "Dienstreise" -#: models.py:20 +#: models.py:19 +msgid "Option" +msgstr "Vorschlag" + +#: models.py:22 msgid "type" msgstr "Typ" -#: models.py:21 +#: models.py:23 msgid "Short Description" msgstr "Kurzbeschreibung" -#: models.py:22 +#: models.py:24 msgid "location" msgstr "Ort" -#: models.py:23 +#: models.py:25 msgid "Location on map" msgstr "Ort auf Karte" -#: models.py:24 +#: models.py:26 msgid "description" msgstr "Beschreibung" -#: models.py:26 +#: models.py:28 msgid "date" msgstr "Datum" -#: models.py:27 +#: models.py:29 msgid "time" msgstr "Uhrzeit" -#: models.py:28 +#: models.py:30 msgid "meeting_time" msgstr "Treffen um" -#: models.py:30 +#: models.py:32 msgid "End Date" msgstr "Bis:" -#: models.py:32 +#: models.py:34 msgid "participants" msgstr "Teilnehmer" -#: models.py:64 +#: models.py:68 msgid "?" msgstr "?" -#: models.py:65 +#: models.py:69 msgid "Yes" msgstr "Ja" -#: models.py:66 +#: models.py:70 msgid "No" msgstr "Nein" -#: models.py:69 +#: models.py:73 msgid "event" msgstr "Termin" -#: models.py:70 +#: models.py:74 msgid "user" msgstr "Benutzer" -#: models.py:71 +#: models.py:75 msgid "status" msgstr "Status" -#: models.py:72 +#: models.py:76 msgid "comment" msgstr "Kommentar" -#: models.py:100 -msgid "Can modify participation status of other users" -msgstr "Darf Teilnahmestatus von anderen ändern" +#: models.py:121 +msgid "Admin" +msgstr "" + +#: models.py:122 +msgid "Member" +msgstr "" + +#: templates/eventplanner/admin_tabular.html:17 +msgid "Delete?" +msgstr "Löschen" + +#: templates/eventplanner/admin_tabular.html:74 +#, python-format +msgid "Add another %(verbose_name)s" +msgstr "" + +#: templates/eventplanner/admin_tabular.html:75 +msgid "Remove" +msgstr "" + +#~ msgid "Can modify participation status of other users" +#~ msgstr "Darf Teilnahmestatus von anderen ändern" #~ msgid "General Rehearsal" #~ msgstr "Generalprobe" @@ -114,6 +138,3 @@ msgstr "Darf Teilnahmestatus von anderen ändern" #~ msgid "musician" #~ msgstr "Musiker" - -#~ msgid "Delete?" -#~ msgstr "Löschen" diff --git a/eventplanner/models.py b/eventplanner/models.py index e2d19d3..1ac8dab 100644 --- a/eventplanner/models.py +++ b/eventplanner/models.py @@ -15,12 +15,13 @@ class Event ( models.Model ): ( 'Reh', _('Rehearsal') ), ( 'Conc', _('Concert') ), ( 'Party', _('Party') ), - ( 'Travel', _('Travel') ) + ( 'Travel', _('Travel') ), + ( 'Option', _('Option') ), ) type = models.CharField( max_length=6, choices=EVENT_TYPES, default='Reh', verbose_name= _("type") ) short_desc = models.CharField( null=True, max_length=100, blank = True, verbose_name= _("Short Description") ) - location = models.TextField( blank=False, verbose_name=_("location") ) + location = models.TextField( blank=True, verbose_name=_("location") ) map_location = PlainLocationField(blank=True, based_field = location, zoom=7, verbose_name=_("Location on map") ) desc = models.TextField( blank=True, verbose_name=_("description") ) @@ -49,7 +50,7 @@ class Event ( models.Model ): def title(self): res = self.get_type_display() if ( self.short_desc ): - res += " ( " + self.short_desc + " ) " + res += " (" + self.short_desc + ") " return res diff --git a/eventplanner/templates/eventplanner/event_update_form.html b/eventplanner/templates/eventplanner/event_update_form.html index 161f16d..804a51d 100644 --- a/eventplanner/templates/eventplanner/event_update_form.html +++ b/eventplanner/templates/eventplanner/event_update_form.html @@ -69,6 +69,15 @@ $(document).ready(function(){ defaultTime: false }); + $('form').submit(function() { + if ( $("#id_type").val() != "Option" && $("#id_location").val().trim() == "" ) { + alert("Bitte Ort angeben"); + return false; + } + else + return true; + }); + function onTypeChange( val ) { if ( val == "Reh") { @@ -76,6 +85,7 @@ $(document).ready(function(){ $("#div_id_meeting_time").hide(); $("#div_id_map_location").hide(); $("#div_id_end_date").hide(); + $("#div_id_location").show(); if ( ! $("#id_time").val() ) { $("#id_time").val("19:00"); @@ -87,18 +97,36 @@ $(document).ready(function(){ else if ( val == "Conc" ) { $("#div_id_time").show(); $("#div_id_meeting_time").show(); + $("#div_id_location").show(); $("#div_id_map_location").show(); $("#div_id_end_date").hide(); } else if ( val == "Party") { $("#div_id_time").show(); - $("#div_id_meeting_time").hide(); + $("#div_id_meeting_time").hide(); + $("#div_id_location").show(); $("#div_id_map_location").show(); $("#div_id_end_date").hide(); } else if ( val == "Travel") { $("#div_id_time").hide(); - $("#div_id_meeting_time").hide(); + $("#div_id_meeting_time").hide(); + $("#div_id_location").show(); + $("#div_id_map_location").show(); + $("#div_id_end_date").show(); + } + else if ( val == "Option" ) { + $("#div_id_time").hide(); + $("#div_id_meeting_time").hide(); + $("#div_id_location").hide(); + $("#div_id_map_location").hide(); + $("#div_id_end_date").show(); + } + else + { + $("#div_id_time").show(); + $("#div_id_meeting_time").show(); + $("#div_id_location").show(); $("#div_id_map_location").show(); $("#div_id_end_date").show(); } diff --git a/eventplanner/templates/eventplanner/events_grid.html b/eventplanner/templates/eventplanner/events_grid.html index a48255b..acaf670 100644 --- a/eventplanner/templates/eventplanner/events_grid.html +++ b/eventplanner/templates/eventplanner/events_grid.html @@ -16,6 +16,12 @@ {% block content %} {% addtoblock "css" %} + + + + + + + + + + +
+ + + + +
{{ messages.0.text | linebreaks }}
+
+ + \ No newline at end of file diff --git a/simpleforum/templates/simpleforum/mail.txt b/simpleforum/templates/simpleforum/mail.txt new file mode 100644 index 0000000..1a256c4 --- /dev/null +++ b/simpleforum/templates/simpleforum/mail.txt @@ -0,0 +1,9 @@ +Neuer Forumeintrag von {{ messages.0.author.username }}: + + +{{ messages.0.text }} + + +Im Forum antworten: + http://bauer1.selfip.com/blechreiz/messages + \ No newline at end of file