finished primitive email notifications.
This commit is contained in:
1
dav_events/templates/dav_events/emails/default.txt
Normal file
1
dav_events/templates/dav_events/emails/default.txt
Normal file
@@ -0,0 +1 @@
|
||||
{{ event.render_as_text }}
|
||||
@@ -0,0 +1,9 @@
|
||||
Hallo {{ trainer_firstname }},
|
||||
|
||||
deine folgende Veranstaltung wurde von einem Tourenreferent freigegeben:
|
||||
|
||||
-----
|
||||
{{ event.render_as_text }}-----
|
||||
|
||||
URL: {{ base_url }}{{ event.get_absolute_url }}
|
||||
Die Redaktion wurden informiert, um deine Veranstaltung zu veröffentlichen.
|
||||
@@ -0,0 +1,9 @@
|
||||
Hallo Tourenreferenten,
|
||||
|
||||
{{ trainer_firstname }} {{ trainer_familyname }} hat eine neue Veranstaltung angelegt:
|
||||
|
||||
-----
|
||||
{{ event.render_as_text }}-----
|
||||
|
||||
Ihr könnt die Veranstaltung unter folgender URL freigeben:
|
||||
{{ base_url }}{{ event.get_absolute_url }}
|
||||
56
dav_events/templates/dav_events/emails/event_to_publish.txt
Normal file
56
dav_events/templates/dav_events/emails/event_to_publish.txt
Normal file
@@ -0,0 +1,56 @@
|
||||
{% load i18n %}Hallo Redaktionsteam,
|
||||
|
||||
{{ trainer_firstname }} {{ trainer_familyname }} hat eine neue Veranstaltung angelegt:
|
||||
|
||||
-----
|
||||
{{ event.render_as_text }}-----
|
||||
|
||||
Die Veranstaltung wurde zur Veröffentlichung frei gegeben.
|
||||
|
||||
----- HTML Joomla -----
|
||||
{{ sport|upper }}**/{{ first_day|date:'y' }} - {{ title }}
|
||||
|
||||
<h6>{{ short_date }}{% if alt_short_date %}<br />
|
||||
({% trans 'Ersatztermin' %}: {{ alt_short_date }})
|
||||
{% endif %}</h6>
|
||||
<p>{{ description|linebreaksbr }}</p>
|
||||
{% if mode == 'training' %}
|
||||
<p>{% trans 'Kursinhalte' %}:</p>
|
||||
{% if course_topic_2 %}<ul>
|
||||
<li>{{ course_topic_1 }}</li>
|
||||
<li>{{ course_topic_2 }}</li>
|
||||
{% if course_topic_3 %} <li>{{ course_topic_3 }}</li>
|
||||
{% endif %}{% if course_topic_4 %} <li>{{ course_topic_4 }}</li>
|
||||
{% endif %}{% if course_topic_5 %} <li>{{ course_topic_5 }}</li>
|
||||
{% endif %}{% if course_topic_6 %} <li>{{ course_topic_6 }}</li>
|
||||
{% endif %}</ul>
|
||||
{% else %}<p>{{ course_topic_1|linebreaksbr }}</p>{% endif %}
|
||||
<p>{% trans 'Kursziele' %}:</p>
|
||||
{% if course_goal_2 %}<ul>
|
||||
<li>{{ course_goal_1 }}</li>
|
||||
<li>{{ course_goal_2 }}</li>
|
||||
{% if course_goal_3 %} <li>{{ course_goal_3 }}</li>
|
||||
{% endif %}{% if course_goal_4 %} <li>{{ course_goal_4 }}</li>
|
||||
{% endif %}{% if course_goal_5 %} <li>{{ course_goal_5 }}</li>
|
||||
{% endif %}{% if course_goal_6 %} <li>{{ course_goal_6 }}</li>
|
||||
{% endif %}</ul>
|
||||
{% else %}<p>{{ course_goal_1|linebreaksbr }}</p>{% endif %}
|
||||
{% endif %}<hr id="system-readmore" />
|
||||
|
||||
{% if requirements %}<strong>{% trans 'Anforderungen' %}:</strong> {{ requirements }}<br />
|
||||
{% endif %}{% if equipment %}<strong>{% trans 'Ausrüstung' %}:</strong> {{ equipment }}<br />
|
||||
{% endif %}{% if location %}<strong>{% trans 'Ort' %}:</strong> {{ location }}<br />
|
||||
{% endif %}{% if basecamp %}<strong>{% trans 'Stützpunkt' %}:</strong> {{ basecamp }}<br />
|
||||
{% endif %}{% if accommodation and accommodation != 'NONE' %}<strong>{% trans 'Unterkunft' %}:</strong> {% if accommodation == 'OTHER' %}{{ accommodation_other }}{% else %}{{ event.get_accommodation_display }}{% endif %}<br />
|
||||
{% endif %}{% if meals and meals != 'NONE' %}<strong>{% trans 'Verpflegung' %}:</strong> {% if meals == 'OTHER' %}{{ meals_other }}{% else %}{{ event.get_meals_display }}{% endif %}<br />
|
||||
{% endif %}{% if transport and transport != 'NONE' %}<strong>{% trans 'Anfahrt' %}:</strong> {% if transport == 'OTHER' %}{{ transport_other }}{% else %}{{ event.get_transport_display }}{% endif %}<br />
|
||||
{% endif %}{% if meeting_point and meeting_point != 'NONE' %}<strong>{% trans 'Treffpunkt' %}:</strong> {% if meeting_time %}{{ meeting_time|time:'G:i'|cut:':00' }} Uhr, {% endif %}{% if meeting_point == 'OTHER' %}{{ meeting_point_other }}{% else %}{{ event.get_meeting_point_display }}{% endif %}<br />
|
||||
{% endif %}{% if pre_meeting_1 %}{% if pre_meeting_2 %}<strong>{% trans 'Vortreffen' %} 1:</strong> {{ pre_meeting_1|date:'l, d. F Y, G:i'|cut:':00' }} {% trans 'Uhr' %}, DAV {% trans 'Sektionszentrum' %}<br />
|
||||
<strong>{% trans 'Vortreffen' %} 2:</strong> {{ pre_meeting_2|date:'l, d. F Y, G:i'|cut:':00' }} {% trans 'Uhr' %}, DAV {% trans 'Sektionszentrum' %}<br />
|
||||
{% else %}<strong>{% trans 'Vortreffen' %}:</strong> {{ pre_meeting_1|date:'l, d. F Y, G:i'|cut:':00' }} {% trans 'Uhr' %}, DAV {% trans 'Sektionszentrum' %}<br />{% endif %}
|
||||
{% endif %}{% if min_participants > 0 or max_participants > 0 %}<strong>{% trans 'Teilnehmerzahl' %}:</strong> {% if min_participants > 0 and max_participants > 0 %}{{ min_participants }} - {{ max_participants }} {% trans 'Teilnehmer' %}{% elif min_participants > 0 %}min. {{ min_participants }} {% trans 'Teilnehmer' %}{% else %}max. {{ max_participants }} {% trans 'Teilnehmer' %}{% endif %}<br />
|
||||
{% endif %}{% if charge > 0 or additional_costs %}<strong>{% trans 'Kosten' %}:</strong> {% if charge > 0 %}{{ charge|floatformat:'-2' }} € {% trans 'Teilnahmegebühr' %}{% endif %}{% if additional_costs %}{% if charge > 0 %}{% trans 'zzgl.' %}{% endif %}{{ additional_costs }}{% endif %}<br />
|
||||
{% endif %}{% if deadline %}<strong>{% trans 'Anmeldeschluss' %}:</strong> {{ deadline|date:'l, d. F Y' }}<br />
|
||||
{% endif %}{% if trainer_2_fullname %}{% if mode == 'training' %}<strong>{% trans 'Ausbildungsteam' %}:</strong>{% else %}<strong>{% trans 'Team' %}:</strong>{% endif %} XXX <br />
|
||||
{% endif %}{% if trainer_familyname %}<strong>{% trans 'Leitung' %}:</strong> {{ trainer_firstname }} {{ trainer_familyname }}{% if trainer_email %} (<a href="mailto:{{ trainer_email }}">{{ trainer_email }}</a>){% endif %}{% if trainer_phone %} {{ trainer_phone }}{% endif %}
|
||||
{% endif %}-----
|
||||
9
dav_events/templates/dav_events/emails/new_event.txt
Normal file
9
dav_events/templates/dav_events/emails/new_event.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
Hallo {{ trainer_firstname }},
|
||||
|
||||
du hast die folgende Veranstaltung angelegt:
|
||||
|
||||
-----
|
||||
{{ event.render_as_text }}-----
|
||||
|
||||
URL: {{ base_url }}{{ event.get_absolute_url }}
|
||||
Die entsprechenden Referenten wurden informiert, um deine Veranstaltung frei zu geben.
|
||||
46
dav_events/templates/dav_events/event.txt
Normal file
46
dav_events/templates/dav_events/event.txt
Normal file
@@ -0,0 +1,46 @@
|
||||
{% load i18n %}{{ sport|upper }}**/{{ first_day|date:'y' }} - {{ title }}
|
||||
|
||||
{{ short_date }}
|
||||
{% if alt_short_date %}({% trans 'Ersatztermin' %}: {{ alt_short_date }})
|
||||
{% endif %}
|
||||
{{ description }}
|
||||
{% if mode == 'training' %}
|
||||
{% trans 'Kursinhalte' %}:
|
||||
{% if course_topic_2 %}
|
||||
- {{ course_topic_1 }}
|
||||
- {{ course_topic_2 }}
|
||||
{% if course_topic_3 %} - {{ course_topic_3 }}
|
||||
{% endif %}{% if course_topic_4 %} - {{ course_topic_4 }}
|
||||
{% endif %}{% if course_topic_5 %} - {{ course_topic_5 }}
|
||||
{% endif %}{% if course_topic_6 %} - {{ course_topic_6 }}
|
||||
{% endif %}{% else %}
|
||||
{{ course_topic_1 }}
|
||||
{% endif %}
|
||||
{% trans 'Kursziele' %}:
|
||||
{% if course_goal_2 %}
|
||||
- {{ course_goal_1 }}
|
||||
- {{ course_goal_2 }}
|
||||
{% if course_goal_3 %} - {{ course_goal_3 }}
|
||||
{% endif %}{% if course_goal_4 %} - {{ course_goal_4 }}
|
||||
{% endif %}{% if course_goal_5 %} - {{ course_goal_5 }}
|
||||
{% endif %}{% if course_goal_6 %} - {{ course_goal_6 }}
|
||||
{% endif %}{% else %}
|
||||
{{ course_goal_1 }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if requirements %}{% trans 'Anforderungen' %}: {{ requirements }}
|
||||
{% endif %}{% if equipment %}{% trans 'Ausrüstung' %}: {{ equipment }}
|
||||
{% endif %}{% if location %}{% trans 'Ort' %}: {{ location }}
|
||||
{% endif %}{% if basecamp %}{% trans 'Stützpunkt' %}: {{ basecamp }}
|
||||
{% endif %}{% if accommodation and accommodation != 'NONE' %}{% trans 'Unterkunft' %}: {% if accommodation == 'OTHER' %}{{ accommodation_other }}{% else %}{{ event.get_accommodation_display }}{% endif %}
|
||||
{% endif %}{% if meals and meals != 'NONE' %}{% trans 'Verpflegung' %}: {% if meals == 'OTHER' %}{{ meals_other }}{% else %}{{ event.get_meals_display }}{% endif %}
|
||||
{% endif %}{% if transport and transport != 'NONE' %}{% trans 'Anfahrt' %}: {% if transport == 'OTHER' %}{{ transport_other }}{% else %}{{ event.get_transport_display }}{% endif %}
|
||||
{% endif %}{% if meeting_point and meeting_point != 'NONE' %}{% trans 'Treffpunkt' %}: {% if meeting_time %}{{ meeting_time|time:'G:i'|cut:':00' }} Uhr, {% endif %}{% if meeting_point == 'OTHER' %}{{ meeting_point_other }}{% else %}{{ event.get_meeting_point_display }}{% endif %}
|
||||
{% endif %}{% if pre_meeting_1 %}{% if pre_meeting_2 %}{% trans 'Vortreffen' %} 1: {{ pre_meeting_1|date:'l, d. F Y, G:i'|cut:':00' }} {% trans 'Uhr' %}, DAV {% trans 'Sektionszentrum' %}
|
||||
{% trans 'Vortreffen' %} 2: {{ pre_meeting_2|date:'l, d. F Y, G:i'|cut:':00' }} {% trans 'Uhr' %}, DAV {% trans 'Sektionszentrum' %}{% else %}{% trans 'Vortreffen' %}: {{ pre_meeting_1|date:'l, d. F Y, G:i'|cut:':00' }} {% trans 'Uhr' %}, DAV {% trans 'Sektionszentrum' %}{% endif %}
|
||||
{% endif %}{% if min_participants > 0 or max_participants > 0 %}{% trans 'Teilnehmerzahl' %}: {% if min_participants > 0 and max_participants > 0 %}{{ min_participants }} - {{ max_participants }} {% trans 'Teilnehmer' %}{% elif min_participants > 0 %}min. {{ min_participants }} {% trans 'Teilnehmer' %}{% else %}max. {{ max_participants }} {% trans 'Teilnehmer' %}{% endif %}
|
||||
{% endif %}{% if charge > 0 or additional_costs %}{% trans 'Kosten' %}: {% if charge > 0 %}{{ charge|floatformat:'-2' }} € {% trans 'Teilnahmegebühr' %}{% endif %}{% if additional_costs %}{% if charge > 0 %} {% trans 'zzgl.' %} {% endif %}{{ additional_costs }}{% endif %}
|
||||
{% endif %}{% if deadline %}{% trans 'Anmeldeschluss' %}: {{ deadline|date:'l, d. F Y' }}
|
||||
{% endif %}{% if trainer_2_fullname %}{% if mode == 'training' %}{% trans 'Ausbildungsteam' %}:{% else %}{% trans 'Team' %}:{% endif %} XXX
|
||||
{% endif %}{% if trainer_familyname %}{% trans 'Leitung' %}: {{ trainer_firstname }} {{ trainer_familyname }}{% if trainer_email %} ({{ trainer_email }}){% endif %}{% if trainer_phone %} {{ trainer_phone }}{% endif %}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user