Made email subject prefix configurable.
This commit is contained in:
@@ -4,8 +4,9 @@ from dav_events.config import FieldInitial
|
||||
|
||||
# E-Mails
|
||||
ENABLE_EMAIL_NOTIFICATIONS = False
|
||||
EMAIL_SENDER = 'DAV Veranstaltungsheinzel <heinzel@heinzelwerk.de>'
|
||||
EMAIL_SENDER = 'DAV Veranstaltungsheinzel <heinzel@alpenverein-karlsruhe.de>'
|
||||
EMAIL_BASE_URL = 'http://localhost:8000'
|
||||
EMAIL_SUBJECT_PREFIX = u'[DAV Veranstaltungen]'
|
||||
|
||||
# Authorization Roles / Groups
|
||||
GROUP_MANAGE_ALL = 'Tourenreferenten'
|
||||
@@ -17,119 +18,7 @@ GROUP_MANAGE_B = 'Bergsteigerreferenten'
|
||||
GROUP_PUBLISH = 'Redaktion'
|
||||
GROUP_PUBLISH_INCREMENTAL = 'OnlineRedaktion'
|
||||
|
||||
# EventCreateForm
|
||||
# FORMS_DEVELOPMENT_INIT = False
|
||||
MATRIX_CONFIG = {
|
||||
'0': {'description': _(u'Keiner / direkte Abrechnung (Tageswanderung)'),
|
||||
'trainer_fee': 0,
|
||||
'pre_meeting_fee': 0,
|
||||
'trainer_day_fee': 0,
|
||||
'participant_fee': 0,
|
||||
'participant_day_fee': 0,
|
||||
'min_participants': 0,
|
||||
'max_participants': 0,
|
||||
},
|
||||
'A': {'description': _(u'A (Mehrtageswanderung Mittelgebirge'),
|
||||
'trainer_fee': 40,
|
||||
'trainer_day_fee': 50,
|
||||
'participant_fee': 10,
|
||||
'participant_day_fee': 10,
|
||||
'pre_meeting_fee': 0,
|
||||
'min_participants': 5,
|
||||
'max_participants': 8,
|
||||
},
|
||||
'B': {'description': _(u'B (Alpine Mehrtageswanderung)'),
|
||||
'trainer_fee': 50,
|
||||
'trainer_day_fee': 75,
|
||||
'participant_fee': 10,
|
||||
'participant_day_fee': 20,
|
||||
'pre_meeting_fee': 0,
|
||||
'min_participants': 3,
|
||||
'max_participants': 6,
|
||||
},
|
||||
'C': {'description': _(u'C (Tour/Kurs ohne Übernachtung)'),
|
||||
'trainer_fee': 30,
|
||||
'trainer_day_fee': 60,
|
||||
'participant_fee': 10,
|
||||
'participant_day_fee': 30,
|
||||
'pre_meeting_fee': 0,
|
||||
'min_participants': 3,
|
||||
'max_participants': 5,
|
||||
},
|
||||
'D': {'description': _(u'D (Tour/Kurs Mittelgebirge)'),
|
||||
'trainer_fee': 50,
|
||||
'trainer_day_fee': 75,
|
||||
'participant_fee': 20,
|
||||
'participant_day_fee': 25,
|
||||
'pre_meeting_fee': 0,
|
||||
'min_participants': 3,
|
||||
'max_participants': 5,
|
||||
},
|
||||
'E': {'description': _(u'E (Alpine Klettertour DE/AT)'),
|
||||
'trainer_fee': 80,
|
||||
'trainer_day_fee': 75,
|
||||
'participant_fee': 40,
|
||||
'participant_day_fee': 40,
|
||||
'pre_meeting_fee': 0,
|
||||
'min_participants': 2,
|
||||
'max_participants': 3,
|
||||
},
|
||||
'F': {'description': _(u'F (Alpine Klettertour CH/FR/IT/..)'),
|
||||
'trainer_fee': 80,
|
||||
'trainer_day_fee': 85,
|
||||
'participant_fee': 40,
|
||||
'participant_day_fee': 45,
|
||||
'pre_meeting_fee': 0,
|
||||
'min_participants': 2,
|
||||
'max_participants': 3,
|
||||
},
|
||||
'G': {'description': _(u'G (Alpiner Kurs DE/AT)'),
|
||||
'trainer_fee': 100,
|
||||
'trainer_day_fee': 75,
|
||||
'participant_fee': 35,
|
||||
'participant_day_fee': 30,
|
||||
'pre_meeting_fee': 0,
|
||||
'min_participants': 3,
|
||||
'max_participants': 4,
|
||||
},
|
||||
'H': {'description': _(u'H (Alpiner Kurs CH/FR/IT/..)'),
|
||||
'trainer_fee': 100,
|
||||
'trainer_day_fee': 85,
|
||||
'participant_fee': 35,
|
||||
'participant_day_fee': 30,
|
||||
'pre_meeting_fee': 0,
|
||||
'min_participants': 3,
|
||||
'max_participants': 4,
|
||||
},
|
||||
'I': {'description': _(u'I (Alpine MTB/Ski-Tour DE/AT)'),
|
||||
'trainer_fee': 80,
|
||||
'trainer_day_fee': 75,
|
||||
'participant_fee': 25,
|
||||
'participant_day_fee': 25,
|
||||
'pre_meeting_fee': 0,
|
||||
'min_participants': 3,
|
||||
'max_participants': 6,
|
||||
},
|
||||
'J': {'description': _(u'J (Alpine MTB/Ski-Tour CH/FR/IT/..)'),
|
||||
'trainer_fee': 80,
|
||||
'trainer_day_fee': 85,
|
||||
'participant_fee': 25,
|
||||
'participant_day_fee': 25,
|
||||
'pre_meeting_fee': 0,
|
||||
'min_participants': 3,
|
||||
'max_participants': 6,
|
||||
},
|
||||
'K': {'description': _(u'K (Ski-Tour/-Kurs mit Liftbenutzung)'),
|
||||
'trainer_fee': 80,
|
||||
'trainer_day_fee': 130,
|
||||
'participant_fee': 40,
|
||||
'participant_day_fee': 40,
|
||||
'pre_meeting_fee': 0,
|
||||
'min_participants': 3,
|
||||
'max_participants': 4,
|
||||
},
|
||||
}
|
||||
|
||||
# ChainedForm and sub classes
|
||||
FORM_INITIALS = {
|
||||
'ModeForm': {
|
||||
'mode': FieldInitial('joint'),
|
||||
@@ -272,3 +161,116 @@ FORM_INITIALS = {
|
||||
),
|
||||
},
|
||||
}
|
||||
|
||||
# EventCreateForm and sub classes
|
||||
# FORMS_DEVELOPMENT_INIT = False
|
||||
MATRIX_CONFIG = {
|
||||
'0': {'description': _(u'Keiner / direkte Abrechnung (Tageswanderung)'),
|
||||
'trainer_fee': 0,
|
||||
'pre_meeting_fee': 0,
|
||||
'trainer_day_fee': 0,
|
||||
'participant_fee': 0,
|
||||
'participant_day_fee': 0,
|
||||
'min_participants': 0,
|
||||
'max_participants': 0,
|
||||
},
|
||||
'A': {'description': _(u'A (Mehrtageswanderung Mittelgebirge'),
|
||||
'trainer_fee': 40,
|
||||
'trainer_day_fee': 50,
|
||||
'participant_fee': 10,
|
||||
'participant_day_fee': 10,
|
||||
'pre_meeting_fee': 0,
|
||||
'min_participants': 5,
|
||||
'max_participants': 8,
|
||||
},
|
||||
'B': {'description': _(u'B (Alpine Mehrtageswanderung)'),
|
||||
'trainer_fee': 50,
|
||||
'trainer_day_fee': 75,
|
||||
'participant_fee': 10,
|
||||
'participant_day_fee': 20,
|
||||
'pre_meeting_fee': 0,
|
||||
'min_participants': 3,
|
||||
'max_participants': 6,
|
||||
},
|
||||
'C': {'description': _(u'C (Tour/Kurs ohne Übernachtung)'),
|
||||
'trainer_fee': 30,
|
||||
'trainer_day_fee': 60,
|
||||
'participant_fee': 10,
|
||||
'participant_day_fee': 30,
|
||||
'pre_meeting_fee': 0,
|
||||
'min_participants': 3,
|
||||
'max_participants': 5,
|
||||
},
|
||||
'D': {'description': _(u'D (Tour/Kurs Mittelgebirge)'),
|
||||
'trainer_fee': 50,
|
||||
'trainer_day_fee': 75,
|
||||
'participant_fee': 20,
|
||||
'participant_day_fee': 25,
|
||||
'pre_meeting_fee': 0,
|
||||
'min_participants': 3,
|
||||
'max_participants': 5,
|
||||
},
|
||||
'E': {'description': _(u'E (Alpine Klettertour DE/AT)'),
|
||||
'trainer_fee': 80,
|
||||
'trainer_day_fee': 75,
|
||||
'participant_fee': 40,
|
||||
'participant_day_fee': 40,
|
||||
'pre_meeting_fee': 0,
|
||||
'min_participants': 2,
|
||||
'max_participants': 3,
|
||||
},
|
||||
'F': {'description': _(u'F (Alpine Klettertour CH/FR/IT/..)'),
|
||||
'trainer_fee': 80,
|
||||
'trainer_day_fee': 85,
|
||||
'participant_fee': 40,
|
||||
'participant_day_fee': 45,
|
||||
'pre_meeting_fee': 0,
|
||||
'min_participants': 2,
|
||||
'max_participants': 3,
|
||||
},
|
||||
'G': {'description': _(u'G (Alpiner Kurs DE/AT)'),
|
||||
'trainer_fee': 100,
|
||||
'trainer_day_fee': 75,
|
||||
'participant_fee': 35,
|
||||
'participant_day_fee': 30,
|
||||
'pre_meeting_fee': 0,
|
||||
'min_participants': 3,
|
||||
'max_participants': 4,
|
||||
},
|
||||
'H': {'description': _(u'H (Alpiner Kurs CH/FR/IT/..)'),
|
||||
'trainer_fee': 100,
|
||||
'trainer_day_fee': 85,
|
||||
'participant_fee': 35,
|
||||
'participant_day_fee': 30,
|
||||
'pre_meeting_fee': 0,
|
||||
'min_participants': 3,
|
||||
'max_participants': 4,
|
||||
},
|
||||
'I': {'description': _(u'I (Alpine MTB/Ski-Tour DE/AT)'),
|
||||
'trainer_fee': 80,
|
||||
'trainer_day_fee': 75,
|
||||
'participant_fee': 25,
|
||||
'participant_day_fee': 25,
|
||||
'pre_meeting_fee': 0,
|
||||
'min_participants': 3,
|
||||
'max_participants': 6,
|
||||
},
|
||||
'J': {'description': _(u'J (Alpine MTB/Ski-Tour CH/FR/IT/..)'),
|
||||
'trainer_fee': 80,
|
||||
'trainer_day_fee': 85,
|
||||
'participant_fee': 25,
|
||||
'participant_day_fee': 25,
|
||||
'pre_meeting_fee': 0,
|
||||
'min_participants': 3,
|
||||
'max_participants': 6,
|
||||
},
|
||||
'K': {'description': _(u'K (Ski-Tour/-Kurs mit Liftbenutzung)'),
|
||||
'trainer_fee': 80,
|
||||
'trainer_day_fee': 130,
|
||||
'participant_fee': 40,
|
||||
'participant_day_fee': 40,
|
||||
'pre_meeting_fee': 0,
|
||||
'min_participants': 3,
|
||||
'max_participants': 4,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user