feat: notify configured recipients when something is booked
This commit is contained in:
1 parent
be37fc81f6
commit
d287cb2600
23 files changed
+1014
-1
No files matched your search
@@ -0,0 +1,37 @@
|
||||
{% extends 'email/layout.html.twig' %}
|
||||
|
||||
{# One mail for the whole series -- see BookingNotifier for why it is not one per occurrence. #}
|
||||
{% block body %}
|
||||
{% set resource = series.resource %}
|
||||
<h1>Neue Serienbuchung</h1>
|
||||
|
||||
<p>
|
||||
<strong>{{ resource.type.label }} {{ resource.label }}</strong> wurde als Serie gebucht.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Zeitraum: {{ series.startDate|format_datetime(pattern: 'd. MMMM y') }}
|
||||
bis {{ series.endDate|format_datetime(pattern: 'd. MMMM y') }}
|
||||
<br>
|
||||
Rhythmus: {{ series.describe }}
|
||||
<br>
|
||||
Termine: {{ result.createdCount }}
|
||||
{% if resource.group %}
|
||||
<br>
|
||||
{{ resource.type.groupLabel }}: {{ resource.group.label }}
|
||||
{% endif %}
|
||||
</p>
|
||||
|
||||
{% if result.skippedCount > 0 %}
|
||||
<p class="small">
|
||||
{{ result.skippedCount }} Tage waren bereits vergeben und wurden übersprungen:
|
||||
{{ result.skippedDates|join(', ') }}
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
<p>
|
||||
Gebucht von {{ series.user.name }}
|
||||
<br>
|
||||
{{ series.user.email }}
|
||||
</p>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user