summaryrefslogtreecommitdiff
path: root/lib/mail/templates/rfq-notification.hbs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mail/templates/rfq-notification.hbs')
-rw-r--r--lib/mail/templates/rfq-notification.hbs166
1 files changed, 166 insertions, 0 deletions
diff --git a/lib/mail/templates/rfq-notification.hbs b/lib/mail/templates/rfq-notification.hbs
new file mode 100644
index 00000000..fc510ad0
--- /dev/null
+++ b/lib/mail/templates/rfq-notification.hbs
@@ -0,0 +1,166 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>{{t "email.rfq.title"}}</title>
+ <style>
+ body {
+ font-family: Arial, sans-serif;
+ line-height: 1.6;
+ color: #333;
+ margin: 0;
+ padding: 0;
+ }
+ .container {
+ max-width: 600px;
+ margin: 0 auto;
+ padding: 20px;
+ }
+ .header {
+ background-color: #1a56db;
+ color: #ffffff;
+ padding: 20px;
+ text-align: center;
+ border-radius: 5px 5px 0 0;
+ }
+ .content {
+ padding: 20px;
+ background-color: #ffffff;
+ border: 1px solid #e5e7eb;
+ border-top: none;
+ border-radius: 0 0 5px 5px;
+ }
+ .footer {
+ text-align: center;
+ margin-top: 20px;
+ font-size: 0.8em;
+ color: #6b7280;
+ }
+ table {
+ width: 100%;
+ border-collapse: collapse;
+ margin-bottom: 20px;
+ }
+ th, td {
+ border: 1px solid #e5e7eb;
+ padding: 12px;
+ text-align: left;
+ }
+ th {
+ background-color: #f3f4f6;
+ }
+ .button {
+ display: inline-block;
+ background-color: #1a56db;
+ color: #ffffff;
+ padding: 12px 24px;
+ text-decoration: none;
+ border-radius: 5px;
+ font-weight: bold;
+ margin-top: 20px;
+ }
+ .section-title {
+ margin-top: 25px;
+ margin-bottom: 10px;
+ font-weight: bold;
+ border-bottom: 1px solid #e5e7eb;
+ padding-bottom: 5px;
+ }
+ </style>
+</head>
+<body>
+ <div class="container">
+ <div class="header">
+ <h1>{{t "email.rfq.notification_title"}}</h1>
+ </div>
+ <div class="content">
+ <p>{{t "email.greeting" name=vendor.user.fullName}},</p>
+
+ <p>{{t "email.rfq.introduction"}}</p>
+
+ <div class="section-title">{{t "email.rfq.details_section"}}</div>
+ <table>
+ <tr>
+ <th>{{t "email.rfq.code_label"}}</th>
+ <td>{{rfq.code}}</td>
+ </tr>
+ <tr>
+ <th>{{t "email.rfq.title_label"}}</th>
+ <td>{{rfq.title}}</td>
+ </tr>
+ <tr>
+ <th>{{t "email.rfq.description_label"}}</th>
+ <td>{{rfq.description}}</td>
+ </tr>
+ <tr>
+ <th>{{t "email.rfq.vendor_label"}}</th>
+ <td>{{vendor.name}}</td>
+ </tr>
+ <tr>
+ <th>{{t "email.rfq.quotation_code_label"}}</th>
+ <td>{{quotationCode}}</td>
+ </tr>
+ <tr>
+ <th>{{t "email.rfq.due_date_label"}}</th>
+ <td>{{rfq.dueDate}}</td>
+ </tr>
+ <tr>
+ <th>{{t "email.rfq.delivery_date_label"}}</th>
+ <td>{{rfq.deliveryDate}}</td>
+ </tr>
+ <tr>
+ <th>{{t "email.rfq.currency_label"}}</th>
+ <td>{{details.currency}}</td>
+ </tr>
+ <tr>
+ <th>{{t "email.rfq.payment_terms_label"}}</th>
+ <td>{{details.paymentTerms}}</td>
+ </tr>
+ <tr>
+ <th>{{t "email.rfq.incoterms_label"}}</th>
+ <td>{{details.incoterms}}</td>
+ </tr>
+ </table>
+
+ <div class="section-title">{{t "email.rfq.items_section"}}</div>
+ <table>
+ <thead>
+ <tr>
+ <th>{{t "email.rfq.item_number"}}</th>
+ <th>{{t "email.rfq.item_description"}}</th>
+ <th>{{t "email.rfq.item_quantity"}}</th>
+ <th>{{t "email.rfq.item_uom"}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ {{#each items}}
+ <tr>
+ <td>{{itemNumber}}</td>
+ <td>{{description}}</td>
+ <td>{{quantity}}</td>
+ <td>{{uom}}</td>
+ </tr>
+ {{/each}}
+ </tbody>
+ </table>
+
+ <p>{{t "email.rfq.action_instructions"}}</p>
+
+ <p style="text-align: center;">
+ <a href="{{systemUrl}}/vendor/quotations/{{quotationCode}}" class="button">
+ {{t "email.rfq.view_button"}}
+ </a>
+ </p>
+
+ <p>{{t "email.rfq.closing"}}</p>
+ <p>{{t "email.rfq.sender_signature" name=sender.fullName}}<br>
+ {{sender.email}}</p>
+ </div>
+ <div class="footer">
+ <p>{{t "email.footer.copyright"}} © {{year}} {{t "email.footer.company_name"}}</p>
+ <p>{{t "email.footer.address"}}</p>
+ </div>
+ </div>
+</body>
+</html> \ No newline at end of file