Email config, email template and more!
This commit is contained in:
104
templates/emails/submission_confirmation.html
Normal file
104
templates/emails/submission_confirmation.html
Normal file
@@ -0,0 +1,104 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.header {
|
||||
background-color: #0066cc;
|
||||
color: white;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
border-radius: 5px 5px 0 0;
|
||||
}
|
||||
|
||||
.content {
|
||||
background-color: #f9f9f9;
|
||||
padding: 20px;
|
||||
border: 1px solid #ddd;
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
.info-box {
|
||||
background-color: white;
|
||||
padding: 15px;
|
||||
margin: 15px 0;
|
||||
border-left: 4px solid #0066cc;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.file-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.file-list li {
|
||||
padding: 8px;
|
||||
background-color: #f0f0f0;
|
||||
margin: 5px 0;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.footer {
|
||||
text-align: center;
|
||||
color: #666;
|
||||
font-size: 12px;
|
||||
margin-top: 20px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid #ddd;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="header">
|
||||
<h1>Quote Request Received</h1>
|
||||
</div>
|
||||
<div class="content">
|
||||
<p>Thank you for your quote request! We have received your submission and will review it shortly.</p>
|
||||
|
||||
<div class="info-box">
|
||||
<strong>Submission Details:</strong><br>
|
||||
<strong>Submission ID:</strong> #{{ submission.id }}<br>
|
||||
<strong>Submitted at:</strong> {{ submission.submitted_at|date:"F d, Y g:i A" }}
|
||||
</div>
|
||||
|
||||
{% if submission.description %}
|
||||
<div class="info-box">
|
||||
<strong>Your Notes:</strong><br>
|
||||
{{ submission.description|linebreaks }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if files %}
|
||||
<div class="info-box">
|
||||
<strong>Files You Uploaded ({{ files|length }}):</strong>
|
||||
<ul class="file-list">
|
||||
{% for file in files %}
|
||||
<li>{{ file.original_filename }} ({{ file.file_size|filesizeformat }})</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<p>We will contact you at <strong>{{ submission.email }}</strong> regarding your quote request.</p>
|
||||
|
||||
<p><em>This submission will be kept on file until {{ submission.expiration_time|date:"F d, Y" }}.</em></p>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<p>Sedutto Machineworks</p>
|
||||
<p>Thank you for your interest in our services!</p>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
102
templates/emails/submission_notification_owner.html
Normal file
102
templates/emails/submission_notification_owner.html
Normal file
@@ -0,0 +1,102 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.header {
|
||||
background-color: #0066cc;
|
||||
color: white;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
border-radius: 5px 5px 0 0;
|
||||
}
|
||||
|
||||
.content {
|
||||
background-color: #f9f9f9;
|
||||
padding: 20px;
|
||||
border: 1px solid #ddd;
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
.info-box {
|
||||
background-color: white;
|
||||
padding: 15px;
|
||||
margin: 15px 0;
|
||||
border-left: 4px solid #0066cc;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.file-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.file-list li {
|
||||
padding: 8px;
|
||||
background-color: #f0f0f0;
|
||||
margin: 5px 0;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.footer {
|
||||
text-align: center;
|
||||
color: #666;
|
||||
font-size: 12px;
|
||||
margin-top: 20px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid #ddd;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="header">
|
||||
<h1>New Quote Request Submission</h1>
|
||||
</div>
|
||||
<div class="content">
|
||||
<p>HUZZAHH! A new quote request has been submitted!</p>
|
||||
|
||||
<div class="info-box">
|
||||
<strong>Submitted by:</strong> {{ submission.email }}<br>
|
||||
<strong>Submitted at:</strong> {{ submission.submitted_at|date:"F d, Y g:i A" }}<br>
|
||||
<strong>Submission ID:</strong> #{{ submission.id }}
|
||||
</div>
|
||||
|
||||
{% if submission.description %}
|
||||
<div class="info-box">
|
||||
<strong>Description/Notes:</strong><br>
|
||||
{{ submission.description|linebreaks }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if files %}
|
||||
<div class="info-box">
|
||||
<strong>Uploaded Files ({{ files|length }}):</strong>
|
||||
<ul class="file-list">
|
||||
{% for file in files %}
|
||||
<li>{{ file.original_filename }} ({{ file.file_size|filesizeformat }})</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<p><strong>Note:</strong> This submission will expire on {{ submission.expiration_time|date:"F d, Y g:i A" }}.
|
||||
(But who knows when joe will actually delete it)</p>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<p>Sedutto Machineworks - Joe is tottally awesome</p>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user