forked from LibreBooking/app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ReservationInvitation.tpl
94 lines (81 loc) · 2.5 KB
/
ReservationInvitation.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
Oplysninger om reservation:
<br/>
<br/>
Begynder: {formatdate date=$StartDate key=reservation_email}<br/>
Slutter: {formatdate date=$EndDate key=reservation_email}<br/>
{if $ResourceNames|default:array()|count > 1}
Faciliteter:
<br/>
{foreach from=$ResourceNames item=resourceName}
{$resourceName}
<br/>
{/foreach}
{else}
Facilitet: {$ResourceName}
<br/>
{/if}
{if $ResourceImage}
<div class="resource-image"><img src="{$ScriptUrl}/{$ResourceImage}"/></div>
{/if}
Overskrift: {$Title}<br/>
Beskrivelse: {$Description|nl2br}
{if count($RepeatRanges) gt 0}
<br/>
Reservationen gælder for følgende datoer:
<br/>
{/if}
{foreach from=$RepeatRanges item=date name=dates}
{formatdate date=$date->GetBegin()}
{if !$date->IsSameDate()} - {formatdate date=$date->GetEnd()}{/if}
<br/>
{/foreach}
{if $Participants|default:array()|count >0}
<br/>
Deltagere:
{foreach from=$Participants item=user}
{$user->FullName()}
<br/>
{/foreach}
{/if}
{if $ParticipatingGuests|default:array()|count >0}
{foreach from=$ParticipatingGuests item=email}
{$email}
<br/>
{/foreach}
{/if}
{if $Invitees|default:array()|count >0}
<br/>
Inviterede:
{foreach from=$Invitees item=user}
{$user->FullName()}
<br/>
{/foreach}
{/if}
{if $InvitedGuests|default:array()|count >0}
{foreach from=$InvitedGuests item=email}
{$email}
<br/>
{/foreach}
{/if}
{if $Accessories|default:array()|count > 0}
<br/>
Udstyr:
<br/>
{foreach from=$Accessories item=accessory}
({$accessory->QuantityReserved}) {$accessory->Name}
<br/>
{/foreach}
{/if}
{if $RequiresApproval}
<br/>
Mindst én af dine reservationer skal godkendes. En reservation er først endelig, når den er godkendt.
{/if}
<br/>
Kommer du? <a href="{$ScriptUrl}/{$AcceptUrl}">Ja</a> <a href="{$ScriptUrl}/{$DeclineUrl}">Nej</a>
<br/>
<br/>
<a href="{$ScriptUrl}/{$ReservationUrl}">Se denne reservation</a> |
<a href="{$ScriptUrl}/{$ICalUrl}">Tilføj til kalender</a> |
<a href="http://www.google.com/calendar/event?action=TEMPLATE&text={$Title|escape:'url'}&dates={formatdate date=$StartDate->ToUtc() key=google}/{formatdate date=$EndDate->ToUtc() key=google}&ctz={$StartDate->Timezone()}&details={$Description|escape:'url'}&location={$ResourceName|escape:'url'}&trp=false&sprop=&sprop=name:"
target="_blank" rel="nofollow">Tilføj til Google Kalender</a> |
<a href="{$ScriptUrl}">Log på {$AppTitle}</a>