A couple more fast email buttons
This commit is contained in:
156
map/app/templates/email/shift-details.html
Normal file
156
map/app/templates/email/shift-details.html
Normal file
@@ -0,0 +1,156 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Shift Details - {{SHIFT_TITLE}}</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
}
|
||||
.container {
|
||||
background-color: #f9f9f9;
|
||||
border-radius: 8px;
|
||||
padding: 30px;
|
||||
border: 1px solid #e0e0e0;
|
||||
}
|
||||
.header {
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.logo {
|
||||
color: #a02c8d;
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.content {
|
||||
background-color: white;
|
||||
padding: 20px;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.shift-details-box {
|
||||
background-color: #f8f9fa;
|
||||
padding: 20px;
|
||||
border-radius: 4px;
|
||||
margin: 20px 0;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
.detail-row {
|
||||
margin: 12px 0;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.detail-icon {
|
||||
width: 30px;
|
||||
font-size: 16px;
|
||||
margin-right: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
.detail-label {
|
||||
font-weight: bold;
|
||||
min-width: 80px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.detail-value {
|
||||
color: #2c3e50;
|
||||
flex: 1;
|
||||
}
|
||||
.description-section {
|
||||
margin-top: 20px;
|
||||
padding-top: 15px;
|
||||
border-top: 1px solid #eee;
|
||||
}
|
||||
.footer {
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
margin-top: 30px;
|
||||
}
|
||||
.highlight {
|
||||
background-color: #fff3cd;
|
||||
padding: 15px;
|
||||
border-left: 4px solid #ffc107;
|
||||
margin: 15px 0;
|
||||
}
|
||||
.status-badge {
|
||||
display: inline-block;
|
||||
padding: 4px 12px;
|
||||
border-radius: 12px;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.status-open {
|
||||
background-color: #d4edda;
|
||||
color: #155724;
|
||||
}
|
||||
.status-full {
|
||||
background-color: #fff3cd;
|
||||
color: #856404;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<div class="logo">{{APP_NAME}}</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<h2>Shift Details: {{SHIFT_TITLE}}</h2>
|
||||
<p>Hello {{USER_NAME}},</p>
|
||||
<p>Here are the details for your upcoming volunteer shift:</p>
|
||||
|
||||
<div class="shift-details-box">
|
||||
<div class="detail-row">
|
||||
<span class="detail-icon">📅</span>
|
||||
<span class="detail-label">Date:</span>
|
||||
<span class="detail-value">{{SHIFT_DATE}}</span>
|
||||
</div>
|
||||
<div class="detail-row">
|
||||
<span class="detail-icon">⏰</span>
|
||||
<span class="detail-label">Time:</span>
|
||||
<span class="detail-value">{{SHIFT_START_TIME}} - {{SHIFT_END_TIME}}</span>
|
||||
</div>
|
||||
<div class="detail-row">
|
||||
<span class="detail-icon">📍</span>
|
||||
<span class="detail-label">Location:</span>
|
||||
<span class="detail-value">{{SHIFT_LOCATION}}</span>
|
||||
</div>
|
||||
<div class="detail-row">
|
||||
<span class="detail-icon">👥</span>
|
||||
<span class="detail-label">Volunteers:</span>
|
||||
<span class="detail-value">{{CURRENT_VOLUNTEERS}}/{{MAX_VOLUNTEERS}} signed up</span>
|
||||
</div>
|
||||
<div class="detail-row">
|
||||
<span class="detail-icon">📊</span>
|
||||
<span class="detail-label">Status:</span>
|
||||
<span class="detail-value">
|
||||
<span class="status-badge status-{{SHIFT_STATUS_CLASS}}">{{SHIFT_STATUS}}</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="description-section" id="description-section"{{DESCRIPTION_DISPLAY_STYLE}}>
|
||||
<h3>Additional Information:</h3>
|
||||
<p>{{SHIFT_DESCRIPTION}}</p>
|
||||
</div>
|
||||
|
||||
<div class="highlight">
|
||||
<p><strong>Important:</strong> Please arrive 10-15 minutes early and wear weather appropriate wear. If you need to cancel, please do so as early as possible to allow other volunteers to sign up.</p>
|
||||
</div>
|
||||
|
||||
<p>Questions? Contact your shift coordinator or administrator.</p>
|
||||
<p>Thank you for volunteering!</p>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<p>This email was sent from {{APP_NAME}} at {{TIMESTAMP}}</p>
|
||||
<p>Volunteer shift management system</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
30
map/app/templates/email/shift-details.txt
Normal file
30
map/app/templates/email/shift-details.txt
Normal file
@@ -0,0 +1,30 @@
|
||||
Shift Details - {{SHIFT_TITLE}}
|
||||
|
||||
Hello {{USER_NAME}},
|
||||
|
||||
Here are the details for your upcoming volunteer shift:
|
||||
|
||||
SHIFT INFORMATION:
|
||||
==================
|
||||
Title: {{SHIFT_TITLE}}
|
||||
Date: {{SHIFT_DATE}}
|
||||
Time: {{SHIFT_START_TIME}} - {{SHIFT_END_TIME}}
|
||||
Location: {{SHIFT_LOCATION}}
|
||||
Volunteers: {{CURRENT_VOLUNTEERS}}/{{MAX_VOLUNTEERS}} signed up
|
||||
Status: {{SHIFT_STATUS}}
|
||||
|
||||
{{SHIFT_DESCRIPTION_SECTION}}
|
||||
|
||||
IMPORTANT NOTES:
|
||||
===============
|
||||
- Please arrive 10-15 minutes early
|
||||
- Bring photo ID
|
||||
- If you need to cancel, please do so as early as possible to allow other volunteers to sign up
|
||||
|
||||
Questions? Contact your shift coordinator or administrator.
|
||||
|
||||
Thank you for volunteering!
|
||||
|
||||
---
|
||||
This email was sent from {{APP_NAME}} at {{TIMESTAMP}}
|
||||
Volunteer shift management system
|
||||
109
map/app/templates/email/user-broadcast.html
Normal file
109
map/app/templates/email/user-broadcast.html
Normal file
@@ -0,0 +1,109 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{{EMAIL_SUBJECT}}</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
}
|
||||
.container {
|
||||
background-color: #f9f9f9;
|
||||
border-radius: 8px;
|
||||
padding: 30px;
|
||||
border: 1px solid #e0e0e0;
|
||||
}
|
||||
.header {
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.logo {
|
||||
color: #a02c8d;
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.content {
|
||||
background-color: white;
|
||||
padding: 20px;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.message-content {
|
||||
line-height: 1.6;
|
||||
}
|
||||
.message-content h1,
|
||||
.message-content h2,
|
||||
.message-content h3 {
|
||||
color: #2c3e50;
|
||||
margin-top: 25px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
.message-content h1 {
|
||||
font-size: 24px;
|
||||
border-bottom: 2px solid #e9ecef;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.message-content h2 {
|
||||
font-size: 20px;
|
||||
}
|
||||
.message-content h3 {
|
||||
font-size: 18px;
|
||||
}
|
||||
.message-content ul,
|
||||
.message-content ol {
|
||||
margin: 15px 0;
|
||||
padding-left: 25px;
|
||||
}
|
||||
.message-content li {
|
||||
margin: 8px 0;
|
||||
}
|
||||
.message-content a {
|
||||
color: #a02c8d;
|
||||
text-decoration: none;
|
||||
}
|
||||
.message-content a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.message-content strong {
|
||||
font-weight: 600;
|
||||
color: #2c3e50;
|
||||
}
|
||||
.message-content blockquote {
|
||||
border-left: 4px solid #a02c8d;
|
||||
margin: 20px 0;
|
||||
padding: 10px 20px;
|
||||
background-color: #f8f9fa;
|
||||
font-style: italic;
|
||||
}
|
||||
.footer {
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
margin-top: 30px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<div class="logo">{{APP_NAME}}</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<p>Hello {{USER_NAME}},</p>
|
||||
|
||||
<div class="message-content">
|
||||
{{EMAIL_CONTENT}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<p>This email was sent from {{APP_NAME}} at {{TIMESTAMP}}</p>
|
||||
<p>{{SENDER_NAME}} - System Administrator</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
9
map/app/templates/email/user-broadcast.txt
Normal file
9
map/app/templates/email/user-broadcast.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
{{EMAIL_SUBJECT}}
|
||||
|
||||
Hello {{USER_NAME}},
|
||||
|
||||
{{EMAIL_CONTENT_TEXT}}
|
||||
|
||||
---
|
||||
This email was sent from {{APP_NAME}} at {{TIMESTAMP}}
|
||||
{{SENDER_NAME}} - System Administrator
|
||||
Reference in New Issue
Block a user