feedback tab
This commit is contained in:
117
backend/templates/emails/feedbackConfirmationToUser.html
Normal file
117
backend/templates/emails/feedbackConfirmationToUser.html
Normal file
@@ -0,0 +1,117 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Feedback Received - RentAll</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.container {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
background-color: white;
|
||||
padding: 30px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
.header {
|
||||
text-align: center;
|
||||
border-bottom: 2px solid #e9ecef;
|
||||
padding-bottom: 20px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.logo {
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
}
|
||||
.content {
|
||||
line-height: 1.6;
|
||||
color: #555;
|
||||
}
|
||||
.success-box {
|
||||
background-color: #d4edda;
|
||||
border: 1px solid #c3e6cb;
|
||||
border-radius: 4px;
|
||||
padding: 15px;
|
||||
margin: 20px 0;
|
||||
}
|
||||
.success-box .icon {
|
||||
font-size: 32px;
|
||||
text-align: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.success-box p {
|
||||
margin: 5px 0;
|
||||
color: #155724;
|
||||
}
|
||||
.feedback-preview {
|
||||
background-color: #f8f9fa;
|
||||
border-left: 4px solid #007bff;
|
||||
padding: 15px;
|
||||
margin: 20px 0;
|
||||
font-style: italic;
|
||||
color: #495057;
|
||||
}
|
||||
.footer {
|
||||
margin-top: 30px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid #e9ecef;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
color: #6c757d;
|
||||
}
|
||||
.button {
|
||||
display: inline-block;
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
padding: 12px 24px;
|
||||
text-decoration: none;
|
||||
border-radius: 4px;
|
||||
margin: 20px 0;
|
||||
}
|
||||
h2 {
|
||||
color: #333;
|
||||
margin-top: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<div class="logo">RentAll</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<p>Hi {{userName}},</p>
|
||||
|
||||
<div class="success-box">
|
||||
<div class="icon">✓</div>
|
||||
<p><strong>Thank You for Your Feedback!</strong></p>
|
||||
<p>We've received your feedback and our team will review it carefully.</p>
|
||||
</div>
|
||||
|
||||
<h2>Your Feedback</h2>
|
||||
<div class="feedback-preview">
|
||||
{{feedbackText}}
|
||||
</div>
|
||||
|
||||
<p><strong>Submitted:</strong> {{submittedAt}}</p>
|
||||
|
||||
<p>Your input helps us improve RentAll for everyone. We take all feedback seriously and use it to make the platform better.</p>
|
||||
|
||||
<p>If your feedback requires a response, our team will reach out to you directly at <strong>{{userEmail}}</strong>.</p>
|
||||
|
||||
<p>Want to share more thoughts? Feel free to send us additional feedback anytime through the app.</p>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<p>This email was sent from RentAll. If you have any questions, please contact support.</p>
|
||||
<p>© {{year}} RentAll. All rights reserved.</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
159
backend/templates/emails/feedbackNotificationToAdmin.html
Normal file
159
backend/templates/emails/feedbackNotificationToAdmin.html
Normal file
@@ -0,0 +1,159 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>New Feedback Received - RentAll</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.container {
|
||||
max-width: 700px;
|
||||
margin: 0 auto;
|
||||
background-color: white;
|
||||
padding: 30px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
}
|
||||
.header {
|
||||
text-align: center;
|
||||
border-bottom: 2px solid #e9ecef;
|
||||
padding-bottom: 20px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.logo {
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
}
|
||||
.alert-box {
|
||||
background-color: #fff3cd;
|
||||
border: 1px solid #ffc107;
|
||||
border-radius: 4px;
|
||||
padding: 15px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.alert-box p {
|
||||
margin: 5px 0;
|
||||
color: #856404;
|
||||
}
|
||||
.content {
|
||||
line-height: 1.6;
|
||||
color: #555;
|
||||
}
|
||||
.info-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 20px 0;
|
||||
}
|
||||
.info-table th {
|
||||
background-color: #f8f9fa;
|
||||
padding: 12px;
|
||||
text-align: left;
|
||||
border: 1px solid #dee2e6;
|
||||
font-weight: bold;
|
||||
color: #495057;
|
||||
width: 30%;
|
||||
}
|
||||
.info-table td {
|
||||
padding: 12px;
|
||||
border: 1px solid #dee2e6;
|
||||
color: #212529;
|
||||
word-break: break-word;
|
||||
}
|
||||
.feedback-box {
|
||||
background-color: #e7f3ff;
|
||||
border-left: 4px solid #007bff;
|
||||
padding: 20px;
|
||||
margin: 20px 0;
|
||||
font-size: 14px;
|
||||
line-height: 1.6;
|
||||
color: #004085;
|
||||
}
|
||||
.feedback-box h3 {
|
||||
margin-top: 0;
|
||||
color: #004085;
|
||||
}
|
||||
.footer {
|
||||
margin-top: 30px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid #e9ecef;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
color: #6c757d;
|
||||
}
|
||||
h2 {
|
||||
color: #333;
|
||||
margin-top: 0;
|
||||
}
|
||||
.timestamp {
|
||||
color: #6c757d;
|
||||
font-size: 12px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<div class="logo">RentAll Admin</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="alert-box">
|
||||
<p><strong>New Feedback Received</strong></p>
|
||||
<p class="timestamp">Submitted at: {{submittedAt}}</p>
|
||||
</div>
|
||||
|
||||
<h2>User Information</h2>
|
||||
<table class="info-table">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<td>{{userName}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Email</th>
|
||||
<td>{{userEmail}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>User ID</th>
|
||||
<td style="font-family: monospace; font-size: 12px;">{{userId}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="feedback-box">
|
||||
<h3>Feedback Content</h3>
|
||||
<p>{{feedbackText}}</p>
|
||||
</div>
|
||||
|
||||
<h2>Technical Context</h2>
|
||||
<table class="info-table">
|
||||
<tr>
|
||||
<th>Feedback ID</th>
|
||||
<td style="font-family: monospace; font-size: 12px;">{{feedbackId}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Page URL</th>
|
||||
<td>{{url}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>User Agent</th>
|
||||
<td style="font-size: 12px;">{{userAgent}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Submitted At</th>
|
||||
<td>{{submittedAt}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><strong>Action Required:</strong> Please review this feedback and take appropriate action. If a response is needed, contact the user directly at <strong>{{userEmail}}</strong>.</p>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<p>This is an automated notification from RentAll Feedback System</p>
|
||||
<p>© {{year}} RentAll. All rights reserved.</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user