CalDAV Scheduling (closes #1514)
This commit is contained in:
263
resources/html-templates/calendar-alarm.html
Normal file
263
resources/html-templates/calendar-alarm.html
Normal file
@@ -0,0 +1,263 @@
|
||||
<!doctype html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"
|
||||
xmlns:o="urn:schemas-microsoft-com:office:office">
|
||||
|
||||
<head>
|
||||
<title>{{page_title}}</title><!--[if !mso]><!-->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"><!--<![endif]-->
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<style type="text/css">
|
||||
#outlook a {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-ms-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
table,
|
||||
td {
|
||||
border-collapse: collapse;
|
||||
mso-table-lspace: 0pt;
|
||||
mso-table-rspace: 0pt;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
height: auto;
|
||||
line-height: 100%;
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
-ms-interpolation-mode: bicubic;
|
||||
}
|
||||
|
||||
p {
|
||||
display: block;
|
||||
margin: 13px 0;
|
||||
}
|
||||
</style><!--[if mso]>
|
||||
<noscript>
|
||||
<xml>
|
||||
<o:OfficeDocumentSettings>
|
||||
<o:AllowPNG/>
|
||||
<o:PixelsPerInch>96</o:PixelsPerInch>
|
||||
</o:OfficeDocumentSettings>
|
||||
</xml>
|
||||
</noscript>
|
||||
<![endif]--><!--[if lte mso 11]>
|
||||
<style type="text/css">
|
||||
.mj-outlook-group-fix { width:100% !important; }
|
||||
</style>
|
||||
<![endif]-->
|
||||
<style type="text/css">
|
||||
@media only screen and (min-width:480px) {
|
||||
.mj-column-per-100 {
|
||||
width: 100% !important;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style media="screen and (min-width:480px)">
|
||||
.moz-text-html .mj-column-per-100 {
|
||||
width: 100% !important;
|
||||
max-width: 100%;
|
||||
}
|
||||
</style>
|
||||
<style type="text/css">
|
||||
@media only screen and (max-width:480px) {
|
||||
table.mj-full-width-mobile {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
td.mj-full-width-mobile {
|
||||
width: auto !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style type="text/css">
|
||||
.event-detail {
|
||||
font-weight: bold;
|
||||
color: #2c5aa0;
|
||||
}
|
||||
|
||||
.guest-list {
|
||||
background-color: #f8f9fa;
|
||||
padding: 10px;
|
||||
border-radius: 4px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
:root {
|
||||
color-scheme: light only;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body style="word-spacing:normal;background-color:#f4f4f4;">
|
||||
<div style="background-color:#f4f4f4;">
|
||||
<!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600" bgcolor="#ffffff" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
|
||||
<div style="background-color:#ffffff;margin:0px auto;max-width:600px;">
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
|
||||
style="background-color:#ffffff;width:100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="direction:ltr;font-size:0px;padding:20px 0;text-align:center;">
|
||||
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
|
||||
<div class="mj-column-per-100 mj-outlook-group-fix"
|
||||
style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;"
|
||||
width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation"
|
||||
style="border-collapse:collapse;border-spacing:0px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width:200px;"><img alt="Logo" height="auto" src="cid:{{logo_cid}}"
|
||||
style="border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;"
|
||||
width="200"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div><!--[if mso | IE]></td></tr></table><![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]></td></tr></table><![endif]--><!-- Main Content --><!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600" bgcolor="#ffffff" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
|
||||
<div style="background-color:#ffffff;margin:0px auto;max-width:600px;">
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
|
||||
style="background-color:#ffffff;width:100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="direction:ltr;font-size:0px;padding:0 20px;text-align:center;">
|
||||
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:560px;" ><![endif]-->
|
||||
<div class="mj-column-per-100 mj-outlook-group-fix"
|
||||
style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;"
|
||||
width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="center" style="font-size:0px;padding:20px 0;word-break:break-word;">
|
||||
<div
|
||||
style="font-family:Arial, sans-serif;font-size:20px;font-weight:bold;line-height:1.5;text-align:center;color:#2c5aa0;">
|
||||
{{header}}</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:10px 0 5px 0;word-break:break-word;">
|
||||
<div
|
||||
style="font-family:Arial, sans-serif;font-size:24px;font-weight:bold;line-height:1.5;text-align:left;color:#333333;">
|
||||
{{event_title}}</div>
|
||||
</td>
|
||||
</tr>
|
||||
{{#if event_description}}
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:0 0 20px 0;word-break:break-word;">
|
||||
<div
|
||||
style="font-family:Arial, sans-serif;font-size:14px;line-height:1.4;text-align:left;color:#666666;">
|
||||
{{event_description}}</div>
|
||||
</td>
|
||||
</tr>
|
||||
{{/if event_description}}
|
||||
{{#each event_details}}
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:5px 0;word-break:break-word;">
|
||||
<div
|
||||
style="font-family:Arial, sans-serif;font-size:14px;line-height:1.5;text-align:left;color:#333333;">
|
||||
<span class="event-detail" style="font-weight: bold; color: #2c5aa0;">{{key}}:</span>
|
||||
{{value}}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{{/each event_details}}
|
||||
{{#if attendees}}
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:15px 0 5px 0;word-break:break-word;">
|
||||
<div
|
||||
style="font-family:Arial, sans-serif;font-size:16px;font-weight:bold;line-height:1.5;text-align:left;color:#333333;">
|
||||
{{attendees_title}}:</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" style="font-size:0px;padding:0 0 20px 0;word-break:break-word;">
|
||||
<div
|
||||
style="font-family:Arial, sans-serif;font-size:14px;line-height:1.5;text-align:left;color:#333333;">
|
||||
<div class="guest-list"
|
||||
style="background-color: #f8f9fa; padding: 10px; border-radius: 4px; margin-top: 5px;">
|
||||
{{#each attendees}}• {{key}} <{{value}}><br>{{/each attendees}}</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{{/if attendees}}
|
||||
<tr>
|
||||
<td align="center" vertical-align="middle"
|
||||
style="font-size:0px;padding:15px 30px;word-break:break-word;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation"
|
||||
style="border-collapse:separate;line-height:100%;">
|
||||
<tr>
|
||||
<td align="center" bgcolor="#2c5aa0" role="presentation"
|
||||
style="border:none;border-radius:6px;cursor:auto;mso-padding-alt:10px 25px;background:#2c5aa0;"
|
||||
valign="middle"><a href="{{action_url}}"
|
||||
style="display:inline-block;background:#2c5aa0;color:#ffffff;font-family:Arial, sans-serif;font-size:16px;font-weight:bold;line-height:120%;margin:0;text-decoration:none;text-transform:none;padding:10px 25px;mso-padding-alt:0px;border-radius:6px;"
|
||||
target="_blank">{{action_name}}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div><!--[if mso | IE]></td></tr></table><![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]></td></tr></table><![endif]--><!-- Footer --><!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600" bgcolor="#f8f9fa" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
|
||||
<div style="background-color:#f8f9fa;margin:0px auto;max-width:600px;">
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
|
||||
style="background-color:#f8f9fa;width:100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="direction:ltr;font-size:0px;padding:20px;text-align:center;">
|
||||
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:560px;" ><![endif]-->
|
||||
<div class="mj-column-per-100 mj-outlook-group-fix"
|
||||
style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;"
|
||||
width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="center" style="font-size:0px;padding:0 0 15px 0;word-break:break-word;">
|
||||
<p style="border-top:solid 1px #e9ecef;font-size:1px;margin:0px auto;width:100%;"></p><!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" style="border-top:solid 1px #e9ecef;font-size:1px;margin:0px auto;width:560px;" role="presentation" width="560px" ><tr><td style="height:0;line-height:0;">
|
||||
</td></tr></table><![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div
|
||||
style="font-family:Arial, sans-serif;font-size:12px;line-height:1.4;text-align:center;color:#6c757d;">
|
||||
{{footer}}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div><!--[if mso | IE]></td></tr></table><![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div><!--[if mso | IE]></td></tr></table><![endif]-->
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
1
resources/html-templates/calendar-alarm.html.min
Normal file
1
resources/html-templates/calendar-alarm.html.min
Normal file
File diff suppressed because one or more lines are too long
75
resources/html-templates/calendar-alarm.mjml
Normal file
75
resources/html-templates/calendar-alarm.mjml
Normal file
@@ -0,0 +1,75 @@
|
||||
<mjml>
|
||||
<mj-head>
|
||||
<mj-title>{{title}}</mj-title>
|
||||
<mj-attributes>
|
||||
<mj-all font-family="Arial, sans-serif" />
|
||||
<mj-text font-size="14px" color="#333333" line-height="1.5" />
|
||||
<mj-section background-color="#ffffff" />
|
||||
</mj-attributes>
|
||||
<mj-style>
|
||||
:root {
|
||||
color-scheme: light only;
|
||||
}
|
||||
.event-detail {
|
||||
font-weight: bold;
|
||||
color: #2c5aa0;
|
||||
}
|
||||
.guest-list {
|
||||
background-color: #f8f9fa;
|
||||
padding: 10px;
|
||||
border-radius: 4px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
</mj-style>
|
||||
</mj-head>
|
||||
<mj-body background-color="#f4f4f4">
|
||||
<mj-section background-color="#ffffff" padding="20px 0">
|
||||
<mj-column>
|
||||
<mj-image src="https://stalw.art/img/logo-dark@2x.png" alt="Stalwart Logo" width="200px" align="center" />
|
||||
</mj-column>
|
||||
</mj-section>
|
||||
|
||||
<mj-section background-color="#ffffff" padding="0 20px">
|
||||
<mj-column>
|
||||
<mj-text align="center" font-size="20px" font-weight="bold" color="#2c5aa0" padding="20px 0">
|
||||
{{upcoming_event}}
|
||||
</mj-text>
|
||||
|
||||
<mj-text font-size="24px" font-weight="bold" color="#333333" padding="10px 0 5px 0">
|
||||
{{event_title}}
|
||||
</mj-text>
|
||||
|
||||
<mj-text font-size="14px" color="#666666" padding="0 0 20px 0" line-height="1.4">
|
||||
{{event_description}}
|
||||
</mj-text>
|
||||
|
||||
<mj-text padding="5px 0">
|
||||
<span class="event-detail">{{field_name}}:</span> {{field_value}}
|
||||
</mj-text>
|
||||
|
||||
<mj-text font-size="16px" font-weight="bold" color="#333333" padding="15px 0 5px 0">
|
||||
{{attendees}}:
|
||||
</mj-text>
|
||||
|
||||
<mj-text padding="0 0 20px 0">
|
||||
<div class="guest-list">
|
||||
• {{guest_name}} ({{guest_email}})<br />
|
||||
</div>
|
||||
</mj-text>
|
||||
|
||||
<mj-button background-color="#2c5aa0" color="#ffffff" font-size="16px" font-weight="bold" border-radius="6px" padding="15px 30px" href="{{event_url}}" align="center">
|
||||
{{open_button}}
|
||||
</mj-button>
|
||||
</mj-column>
|
||||
</mj-section>
|
||||
|
||||
<mj-section background-color="#f8f9fa" padding="20px">
|
||||
<mj-column>
|
||||
<mj-divider border-color="#e9ecef" border-width="1px" padding="0 0 15px 0" />
|
||||
<mj-text font-size="12px" color="#6c757d" align="center" line-height="1.4">
|
||||
{{footer}}
|
||||
</mj-text>
|
||||
</mj-column>
|
||||
</mj-section>
|
||||
</mj-body>
|
||||
</mjml>
|
||||
345
resources/html-templates/calendar-invite.html
Normal file
345
resources/html-templates/calendar-invite.html
Normal file
@@ -0,0 +1,345 @@
|
||||
<!doctype html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"
|
||||
xmlns:o="urn:schemas-microsoft-com:office:office">
|
||||
|
||||
<head>
|
||||
<title>{{page_title}}</title>
|
||||
<!--[if !mso]><!-->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<!--<![endif]-->
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<style type="text/css">
|
||||
#outlook a {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-ms-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
table,
|
||||
td {
|
||||
border-collapse: collapse;
|
||||
mso-table-lspace: 0pt;
|
||||
mso-table-rspace: 0pt;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
height: auto;
|
||||
line-height: 100%;
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
-ms-interpolation-mode: bicubic;
|
||||
}
|
||||
|
||||
p {
|
||||
display: block;
|
||||
margin: 13px 0;
|
||||
}
|
||||
|
||||
.color-info {
|
||||
background: #4CAF50;
|
||||
background-color: #4CAF50;
|
||||
}
|
||||
|
||||
.color-warning {
|
||||
background: #FF9800;
|
||||
background-color: #FF9800;
|
||||
}
|
||||
|
||||
.color-danger {
|
||||
background: #f44336;
|
||||
background-color: #f44336;
|
||||
}
|
||||
|
||||
:root {
|
||||
color-scheme: light only;
|
||||
}
|
||||
</style>
|
||||
<!--[if mso]>
|
||||
<noscript>
|
||||
<xml>
|
||||
<o:OfficeDocumentSettings>
|
||||
<o:AllowPNG/>
|
||||
<o:PixelsPerInch>96</o:PixelsPerInch>
|
||||
</o:OfficeDocumentSettings>
|
||||
</xml>
|
||||
</noscript>
|
||||
<![endif]-->
|
||||
<!--[if lte mso 11]>
|
||||
<style type="text/css">
|
||||
.mj-outlook-group-fix { width:100% !important; }
|
||||
</style>
|
||||
<![endif]-->
|
||||
<style type="text/css">
|
||||
@media only screen and (min-width:480px) {
|
||||
.mj-column-per-100 {
|
||||
width: 100% !important;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.mj-column-per-33-3 {
|
||||
width: 33.3% !important;
|
||||
max-width: 33.3%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style media="screen and (min-width:480px)">
|
||||
.moz-text-html .mj-column-per-100 {
|
||||
width: 100% !important;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.moz-text-html .mj-column-per-33-3 {
|
||||
width: 33.3% !important;
|
||||
max-width: 33.3%;
|
||||
}
|
||||
</style>
|
||||
<style type="text/css">
|
||||
@media only screen and (max-width:480px) {
|
||||
table.mj-full-width-mobile {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
td.mj-full-width-mobile {
|
||||
width: auto !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body style="word-spacing:normal;background-color:#f4f4f4;">
|
||||
<div style="background-color:#f4f4f4;">
|
||||
<!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600" bgcolor="#4CAF50" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
|
||||
{{#if header}}
|
||||
<div class="color-{{color}}" style="margin:0px auto;max-width:600px;">
|
||||
<table class="color-{{color}}" align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
|
||||
style="width:100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="direction:ltr;font-size:0px;padding:5px;text-align:center;">
|
||||
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:590px;" ><![endif]-->
|
||||
<div class="mj-column-per-100 mj-outlook-group-fix"
|
||||
style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation"
|
||||
style="vertical-align:top;" width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="center"
|
||||
style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div
|
||||
style="font-family:Arial, sans-serif;font-size:16px;font-weight:bold;line-height:1.4;text-align:center;color:white;">
|
||||
{{header}}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]></td></tr></table><![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{{/if header}}
|
||||
|
||||
<!--[if mso | IE]></td></tr></table><![endif]-->
|
||||
<!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600" bgcolor="white" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
|
||||
<div style="background:white;background-color:white;margin:0px auto;max-width:600px;">
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
|
||||
style="background:white;background-color:white;width:100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="direction:ltr;font-size:0px;padding:5px 5px 5px 5px;text-align:center;">
|
||||
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:590px;" ><![endif]-->
|
||||
<div class="mj-column-per-100 mj-outlook-group-fix"
|
||||
style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation"
|
||||
style="vertical-align:top;" width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="center"
|
||||
style="font-size:0px;padding:10px 25px;padding-bottom:20px;word-break:break-word;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation"
|
||||
style="border-collapse:collapse;border-spacing:0px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width:200px;">
|
||||
<img height="auto" src="{{logo_cid}}"
|
||||
style="border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;"
|
||||
width="200">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{{#each event_details}}
|
||||
<tr>
|
||||
<td align="left" class="event-detail"
|
||||
style="margin-bottom: 16px; font-size: 0px; padding: 10px 25px; word-break: break-word;">
|
||||
<div
|
||||
style="font-family:Arial, sans-serif;font-size:14px;line-height:1.4;text-align:left;color:#333333;">
|
||||
<div class="event-detail-label"
|
||||
style="font-weight: bold; color: #666666; margin-bottom: 4px;">
|
||||
{{key}}
|
||||
{{#if changed}}<span class="changed-pill"
|
||||
style="background-color: #4CAF50; color: white; padding: 4px 8px; border-radius: 12px; font-size: 8px; font-weight: bold; margin-left: 8px; display: inline-block;">{{changed}}</span>
|
||||
{{/if changed}}
|
||||
</div>
|
||||
{{#if old_value}}<div class="strikethrough"
|
||||
style="text-decoration: line-through; color: #999999;">
|
||||
{{old_value}}</div>{{/if old_value}}
|
||||
<div style="display: flex; align-items: center;">
|
||||
<span>{{value}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{{/each event_details}}
|
||||
{{#if attendees}}
|
||||
<tr>
|
||||
<td align="left" class="event-detail"
|
||||
style="margin-bottom: 16px; font-size: 0px; padding: 10px 25px; padding-bottom: 30px; word-break: break-word;">
|
||||
<div
|
||||
style="font-family:Arial, sans-serif;font-size:14px;line-height:1.4;text-align:left;color:#333333;">
|
||||
<div class="event-detail-label"
|
||||
style="font-weight: bold; color: #666666; margin-bottom: 4px;">
|
||||
{{attendees_title}}</div>
|
||||
{{#each attendees}}<div class="guest-item"
|
||||
style="margin-bottom: 4px;">• {{key}}
|
||||
({{value}})</div>{{/each attendees}}
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{{/if attendees}}
|
||||
{{#if rsvp}}
|
||||
<tr>
|
||||
<td align="center"
|
||||
style="font-size:0px;padding:10px 0;word-break:break-word;">
|
||||
<p
|
||||
style="border-top:solid 1px #e0e0e0;font-size:1px;margin:0px auto;width:100%;">
|
||||
</p>
|
||||
<!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" style="border-top:solid 1px #e0e0e0;font-size:1px;margin:0px auto;width:590px;" role="presentation" width="590px" ><tr><td style="height:0;line-height:0;">
|
||||
</td></tr></table><![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left"
|
||||
style="font-size:0px;padding:10px 0px 5px 20px;word-break:break-word;">
|
||||
<div
|
||||
style="font-family:Arial, sans-serif;font-size:14px;line-height:1.4;text-align:left;color:#333333;">
|
||||
{{rsvp}}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{{/if rsvp}}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]></td></tr></table><![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]></td></tr></table><![endif]-->
|
||||
{{#if rsvp}}
|
||||
<!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600" bgcolor="white" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
|
||||
<div style="background:white;background-color:white;margin:0px auto;max-width:600px;">
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
|
||||
style="background:white;background-color:white;width:100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="direction:ltr;font-size:0px;padding:0 5px 5px 5px;text-align:center;">
|
||||
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="width:590px;" ><![endif]-->
|
||||
<div class="mj-column-per-100 mj-outlook-group-fix"
|
||||
style="font-size:0;line-height:0;text-align:left;display:inline-block;width:100%;direction:ltr;">
|
||||
<!--[if mso | IE]><table border="0" cellpadding="0" cellspacing="0" role="presentation" ><tr><![endif]-->
|
||||
|
||||
{{#each actions}}
|
||||
<!--[if mso | IE]><td style="vertical-align:top;width:196px;" ><![endif]-->
|
||||
<div class="mj-column-per-33-3 mj-outlook-group-fix"
|
||||
style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:33.3%;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation"
|
||||
style="vertical-align:top;" width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="left" vertical-align="middle"
|
||||
style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<table border="0" cellpadding="0" cellspacing="0"
|
||||
role="presentation"
|
||||
style="border-collapse:separate;width:100%;line-height:100%;">
|
||||
<tr>
|
||||
<td align="center" bgcolor="#4CAF50" role="presentation"
|
||||
class="color-{{color}}"
|
||||
style="border:none;border-radius:4px;cursor:auto;mso-padding-alt:8px 4px;"
|
||||
valign="middle">
|
||||
<a href="{{!action_url}}" class="color-{{color}}"
|
||||
style="display:inline-block;color:white;font-family:Arial, sans-serif;font-size:11px;font-weight:bold;line-height:120%;margin:0;text-decoration:none;text-transform:none;padding:8px 4px;mso-padding-alt:0px;border-radius:4px;"
|
||||
target="_blank"> {{action_name}} </a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]></td><![endif]-->
|
||||
{{/each actions}}
|
||||
<!--[if mso | IE]></tr></table><![endif]-->
|
||||
</div>
|
||||
<!--[if mso | IE]></td></tr></table><![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]></td></tr></table><![endif]-->
|
||||
{{/if rsvp}}
|
||||
{{#if footer}}
|
||||
<!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600" bgcolor="#f8f8f8" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
|
||||
<div style="background:#f8f8f8;background-color:#f8f8f8;margin:0px auto;max-width:600px;">
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
|
||||
style="background:#f8f8f8;background-color:#f8f8f8;width:100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="direction:ltr;font-size:0px;padding:20px;text-align:center;">
|
||||
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:560px;" ><![endif]-->
|
||||
<div class="mj-column-per-100 mj-outlook-group-fix"
|
||||
style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" role="presentation"
|
||||
style="vertical-align:top;" width="100%">
|
||||
<tbody>
|
||||
{{#each footer}}
|
||||
<tr>
|
||||
<td align="center"
|
||||
style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
||||
<div
|
||||
style="font-family:Arial, sans-serif;font-size:12px;line-height:1.5;text-align:center;color:#666666;">
|
||||
{{key}}</div>
|
||||
</td>
|
||||
</tr>
|
||||
{{/each footer}}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]></td></tr></table><![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--[if mso | IE]></td></tr></table><![endif]-->
|
||||
{{/if footer}}
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
1
resources/html-templates/calendar-invite.html.min
Normal file
1
resources/html-templates/calendar-invite.html.min
Normal file
File diff suppressed because one or more lines are too long
132
resources/html-templates/calendar-invite.mjml
Normal file
132
resources/html-templates/calendar-invite.mjml
Normal file
@@ -0,0 +1,132 @@
|
||||
<mjml>
|
||||
<mj-head>
|
||||
<mj-title>Event Changed</mj-title>
|
||||
<mj-preview>An event you're attending has been updated</mj-preview>
|
||||
<mj-attributes>
|
||||
<mj-all font-family="Arial, sans-serif" />
|
||||
<mj-text font-size="14px" color="#333333" line-height="1.4" />
|
||||
<mj-button background-color="#4CAF50" color="white" font-size="11px" font-weight="bold" border-radius="4px" align="left"/>
|
||||
</mj-attributes>
|
||||
<mj-style inline="inline">
|
||||
.changed-pill {
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
padding: 4px 8px;
|
||||
border-radius: 12px;
|
||||
font-size: 8px;
|
||||
font-weight: bold;
|
||||
margin-left: 8px;
|
||||
display: inline-block;
|
||||
}
|
||||
.event-detail {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.event-detail-label {
|
||||
font-weight: bold;
|
||||
color: #666666;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.guest-item {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.strikethrough {
|
||||
text-decoration: line-through;
|
||||
color: #999999;
|
||||
}
|
||||
</mj-style>
|
||||
</mj-head>
|
||||
<mj-body background-color="#f4f4f4">
|
||||
<!-- Header Alert -->
|
||||
<mj-section background-color="#4CAF50" padding="5px">
|
||||
<mj-column>
|
||||
<mj-text align="center" color="white" font-size="16px" font-weight="bold">
|
||||
This event has been updated
|
||||
</mj-text>
|
||||
</mj-column>
|
||||
</mj-section>
|
||||
|
||||
<!-- Main Content -->
|
||||
<mj-section background-color="white" padding="5px 5px 5px 5px">
|
||||
<mj-column>
|
||||
<!-- Logo -->
|
||||
<mj-image src="https://stalw.art/img/logo-dark@2x.png" alt="Stalwart Logo" width="200px" align="center" padding-bottom="20px" />
|
||||
|
||||
<!-- Title -->
|
||||
<mj-text css-class="event-detail">
|
||||
<div class="event-detail-label">Title</div>
|
||||
<div style="display: flex; align-items: center;">
|
||||
<span>Annual Team Building Workshop 2025</span>
|
||||
|
||||
</div>
|
||||
</mj-text>
|
||||
|
||||
<!-- Description -->
|
||||
<mj-text css-class="event-detail">
|
||||
<div class="event-detail-label">Description</div>
|
||||
<div>Join us for our annual team building workshop featuring interactive activities, networking sessions, and strategic planning for the upcoming year. This year's theme focuses on collaboration and innovation.</div>
|
||||
</mj-text>
|
||||
|
||||
<!-- When -->
|
||||
<mj-text css-class="event-detail">
|
||||
<div class="event-detail-label">When <span class="changed-pill">CHANGED</span></div>
|
||||
<div class="strikethrough">Friday, March 15, 2025 9:00 AM - 5:00 PM (PST)</div>
|
||||
<div>Friday, March 15, 2025 9:00 AM - 5:00 PM (PST)</div>
|
||||
</mj-text>
|
||||
|
||||
<!-- Location -->
|
||||
<mj-text css-class="event-detail">
|
||||
<div class="event-detail-label">Location</div>
|
||||
<div>Grand Conference Center<br>123 Business Park Drive<br>San Francisco, CA 94105</div>
|
||||
</mj-text>
|
||||
|
||||
<!-- Guest List -->
|
||||
<mj-text css-class="event-detail" padding-bottom="30px">
|
||||
<div class="event-detail-label">Guest List</div>
|
||||
<div class="guest-item">• John Smith (john.smith@company.com)</div>
|
||||
<div style="margin-top: 8px; color: #666666; font-style: italic;">+ 12 more attendees</div>
|
||||
</mj-text>
|
||||
|
||||
<!-- RSVP legend -->
|
||||
<mj-divider border-color="#e0e0e0" border-width="1px" padding="10px 0" />
|
||||
|
||||
<mj-text font-size="14px" color="#333333" padding="10px 0px 5px 20px">
|
||||
<b>Reply</b> as email@domain.com for this event series:
|
||||
</mj-text>
|
||||
|
||||
</mj-column>
|
||||
</mj-section>
|
||||
|
||||
<!-- RSVP buttons -->
|
||||
<mj-section background-color="white" padding="0 5px 5px 5px">
|
||||
<mj-group>
|
||||
<mj-column width="33.3%">
|
||||
<mj-button background-color="#4CAF50" href="#" width="100%" inner-padding="8px 4px">
|
||||
YES
|
||||
</mj-button>
|
||||
</mj-column>
|
||||
<mj-column width="33.3%">
|
||||
<mj-button background-color="#f44336" href="#" width="100%" inner-padding="8px 4px">
|
||||
NO
|
||||
</mj-button>
|
||||
</mj-column>
|
||||
<mj-column width="33.3%">
|
||||
<mj-button background-color="#FF9800" href="#" width="100%" inner-padding="8px 4px">
|
||||
MAYBE
|
||||
</mj-button>
|
||||
</mj-column>
|
||||
</mj-group>
|
||||
</mj-section>
|
||||
|
||||
<!-- Footer -->
|
||||
<mj-section background-color="#f8f8f8" padding="20px">
|
||||
<mj-column>
|
||||
<mj-text font-size="12px" color="#666666" align="center" line-height="1.5">
|
||||
You’re receiving this e-mail as you're listed as a participant for this event.
|
||||
</mj-text>
|
||||
<mj-text font-size="12px" color="#666666" align="center" line-height="1.5" padding-top="10px">
|
||||
Forwarding this e-mail could allow any recipient to reply to the organizer, join the guest list, extend the invitation to others, or alter your RSVP.
|
||||
</mj-text>
|
||||
</mj-column>
|
||||
</mj-section>
|
||||
</mj-body>
|
||||
</mjml>
|
||||
Reference in New Issue
Block a user