summaryrefslogtreecommitdiff
path: root/lib/mail/templates
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-09-01 09:12:09 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-09-01 09:12:09 +0000
commit18954df6565108a469fb1608ea3715dd9bb1b02d (patch)
tree2675d254c547861a903a32459d89283a324e0e0d /lib/mail/templates
parentf91cd16a872d9cda04aeb5c4e31538e3e2bd1895 (diff)
(대표님) 구매 기본계약, gtc 개발
Diffstat (limited to 'lib/mail/templates')
-rw-r--r--lib/mail/templates/contract-reminder-en.hbs118
-rw-r--r--lib/mail/templates/contract-reminder-kr.hbs118
2 files changed, 236 insertions, 0 deletions
diff --git a/lib/mail/templates/contract-reminder-en.hbs b/lib/mail/templates/contract-reminder-en.hbs
new file mode 100644
index 00000000..ffaadb4b
--- /dev/null
+++ b/lib/mail/templates/contract-reminder-en.hbs
@@ -0,0 +1,118 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Contract Signature Reminder</title>
+</head>
+<body style="margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background-color: #f5f5f5;">
+ <table width="100%" cellpadding="0" cellspacing="0" style="background-color: #f5f5f5; padding: 40px 0;">
+ <tr>
+ <td align="center">
+ <table width="600" cellpadding="0" cellspacing="0" style="background-color: #ffffff; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
+ <!-- Header -->
+ <tr>
+ <td style="background-color: #2563eb; padding: 30px; border-radius: 8px 8px 0 0;">
+ <h1 style="color: #ffffff; margin: 0; font-size: 24px; text-align: center;">
+ SHI Contract Signature Reminder
+ </h1>
+ </td>
+ </tr>
+
+ <!-- Body -->
+ <tr>
+ <td style="padding: 40px 30px;">
+ <p style="color: #333333; font-size: 16px; line-height: 1.6; margin-bottom: 20px;">
+ Dear {{recipientName}},
+ </p>
+
+ <p style="color: #333333; font-size: 16px; line-height: 1.6; margin-bottom: 20px;">
+ We would like to remind you that the contract sent to <strong>{{vendorName}}</strong> (Vendor Code: {{vendorCode}}) is still pending your signature.
+ </p>
+
+ <!-- Contract Info Box -->
+ <table width="100%" cellpadding="0" cellspacing="0" style="background-color: #f8f9fa; border-radius: 6px; padding: 20px; margin: 20px 0;">
+ <tr>
+ <td>
+ <h3 style="color: #2563eb; margin: 0 0 15px 0; font-size: 18px;">Contract Details</h3>
+ <p style="color: #666666; margin: 8px 0; font-size: 14px;">
+ <strong>Contract Name:</strong> {{contractFileName}}
+ </p>
+ <p style="color: #666666; margin: 8px 0; font-size: 14px;">
+ <strong>Deadline:</strong> {{deadline}}
+ </p>
+ {{#if daysRemaining}}
+ <p style="margin: 15px 0 0 0;">
+ {{#if (eq daysRemaining 0)}}
+ <span style="color: #dc2626; font-weight: bold; font-size: 16px;">
+ ⚠️ Today is the deadline!
+ </span>
+ {{else if (lt daysRemaining 0)}}
+ <span style="color: #dc2626; font-weight: bold; font-size: 16px;">
+ ⚠️ The deadline has passed by {{Math.abs daysRemaining}} day(s)!
+ </span>
+ {{else if (lte daysRemaining 3)}}
+ <span style="color: #f59e0b; font-weight: bold; font-size: 16px;">
+ ⏰ {{daysRemaining}} day(s) remaining until deadline
+ </span>
+ {{else}}
+ <span style="color: #059669; font-weight: bold; font-size: 16px;">
+ {{daysRemaining}} day(s) remaining until deadline
+ </span>
+ {{/if}}
+ </p>
+ {{/if}}
+ </td>
+ </tr>
+ </table>
+
+ <p style="color: #333333; font-size: 16px; line-height: 1.6; margin: 20px 0;">
+ Please click the button below to review and sign the contract.
+ </p>
+
+ <!-- CTA Button -->
+ <table width="100%" cellpadding="0" cellspacing="0" style="margin: 30px 0;">
+ <tr>
+ <td align="center">
+ <a href="{{contractLink}}" style="display: inline-block; padding: 14px 32px; background-color: #2563eb; color: #ffffff; text-decoration: none; border-radius: 6px; font-size: 16px; font-weight: bold;">
+ Review and Sign Contract
+ </a>
+ </td>
+ </tr>
+ </table>
+
+ <p style="color: #666666; font-size: 14px; line-height: 1.6; margin-top: 30px;">
+ If the button doesn't work, please copy and paste the following link into your browser:<br>
+ <a href="{{contractLink}}" style="color: #2563eb; word-break: break-all;">{{contractLink}}</a>
+ </p>
+
+ <hr style="border: none; border-top: 1px solid #e5e7eb; margin: 30px 0;">
+
+ <p style="color: #666666; font-size: 14px; line-height: 1.6;">
+ If you have any questions or concerns, please don't hesitate to contact us.
+ </p>
+
+ <p style="color: #666666; font-size: 14px; line-height: 1.6; margin-top: 20px;">
+ Best regards,<br><br>
+ {{senderName}}<br>
+ {{senderEmail}}<br>
+ SHI Procurement Team
+ </p>
+ </td>
+ </tr>
+
+ <!-- Footer -->
+ <tr>
+ <td style="background-color: #f8f9fa; padding: 20px 30px; border-radius: 0 0 8px 8px; text-align: center;">
+ <p style="color: #999999; font-size: 12px; margin: 0;">
+ This email was automatically sent from the EVCP Contract Management System.<br>
+ © 2024 EVCP. All rights reserved.
+ </p>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+</body>
+</html> \ No newline at end of file
diff --git a/lib/mail/templates/contract-reminder-kr.hbs b/lib/mail/templates/contract-reminder-kr.hbs
new file mode 100644
index 00000000..acd704a9
--- /dev/null
+++ b/lib/mail/templates/contract-reminder-kr.hbs
@@ -0,0 +1,118 @@
+<!DOCTYPE html>
+<html lang="ko">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>계약서 서명 요청 리마인더</title>
+</head>
+<body style="margin: 0; padding: 0; font-family: 'Malgun Gothic', '맑은 고딕', sans-serif; background-color: #f5f5f5;">
+ <table width="100%" cellpadding="0" cellspacing="0" style="background-color: #f5f5f5; padding: 40px 0;">
+ <tr>
+ <td align="center">
+ <table width="600" cellpadding="0" cellspacing="0" style="background-color: #ffffff; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
+ <!-- 헤더 -->
+ <tr>
+ <td style="background-color: #2563eb; padding: 30px; border-radius: 8px 8px 0 0;">
+ <h1 style="color: #ffffff; margin: 0; font-size: 24px; text-align: center;">
+ 삼성중공업 계약서 서명 요청 리마인더
+ </h1>
+ </td>
+ </tr>
+
+ <!-- 본문 -->
+ <tr>
+ <td style="padding: 40px 30px;">
+ <p style="color: #333333; font-size: 16px; line-height: 1.6; margin-bottom: 20px;">
+ 안녕하세요, {{recipientName}}님
+ </p>
+
+ <p style="color: #333333; font-size: 16px; line-height: 1.6; margin-bottom: 20px;">
+ <strong>{{vendorName}}</strong> (업체코드: {{vendorCode}})로 발송된 계약서의 서명이 아직 완료되지 않았습니다.
+ </p>
+
+ <!-- 계약서 정보 박스 -->
+ <table width="100%" cellpadding="0" cellspacing="0" style="background-color: #f8f9fa; border-radius: 6px; padding: 20px; margin: 20px 0;">
+ <tr>
+ <td>
+ <h3 style="color: #2563eb; margin: 0 0 15px 0; font-size: 18px;">계약서 정보</h3>
+ <p style="color: #666666; margin: 8px 0; font-size: 14px;">
+ <strong>계약서명:</strong> {{contractFileName}}
+ </p>
+ <p style="color: #666666; margin: 8px 0; font-size: 14px;">
+ <strong>마감일:</strong> {{deadline}}
+ </p>
+ {{#if daysRemaining}}
+ <p style="margin: 15px 0 0 0;">
+ {{#if (eq daysRemaining 0)}}
+ <span style="color: #dc2626; font-weight: bold; font-size: 16px;">
+ ⚠️ 오늘이 마감일입니다!
+ </span>
+ {{else if (lt daysRemaining 0)}}
+ <span style="color: #dc2626; font-weight: bold; font-size: 16px;">
+ ⚠️ 마감일이 {{Math.abs daysRemaining}}일 지났습니다!
+ </span>
+ {{else if (lte daysRemaining 3)}}
+ <span style="color: #f59e0b; font-weight: bold; font-size: 16px;">
+ ⏰ 마감까지 {{daysRemaining}}일 남았습니다
+ </span>
+ {{else}}
+ <span style="color: #059669; font-weight: bold; font-size: 16px;">
+ 마감까지 {{daysRemaining}}일 남았습니다
+ </span>
+ {{/if}}
+ </p>
+ {{/if}}
+ </td>
+ </tr>
+ </table>
+
+ <p style="color: #333333; font-size: 16px; line-height: 1.6; margin: 20px 0;">
+ 계약서 검토 및 서명을 위해 아래 버튼을 클릭해 주시기 바랍니다.
+ </p>
+
+ <!-- CTA 버튼 -->
+ <table width="100%" cellpadding="0" cellspacing="0" style="margin: 30px 0;">
+ <tr>
+ <td align="center">
+ <a href="{{contractLink}}" style="display: inline-block; padding: 14px 32px; background-color: #2563eb; color: #ffffff; text-decoration: none; border-radius: 6px; font-size: 16px; font-weight: bold;">
+ 계약서 확인 및 서명하기
+ </a>
+ </td>
+ </tr>
+ </table>
+
+ <p style="color: #666666; font-size: 14px; line-height: 1.6; margin-top: 30px;">
+ 버튼이 작동하지 않는 경우, 아래 링크를 복사하여 브라우저에 붙여넣기 해주세요:<br>
+ <a href="{{contractLink}}" style="color: #2563eb; word-break: break-all;">{{contractLink}}</a>
+ </p>
+
+ <hr style="border: none; border-top: 1px solid #e5e7eb; margin: 30px 0;">
+
+ <p style="color: #666666; font-size: 14px; line-height: 1.6;">
+ 궁금하신 사항이 있으시면 언제든지 문의해 주시기 바랍니다.
+ </p>
+
+ <p style="color: #666666; font-size: 14px; line-height: 1.6; margin-top: 20px;">
+ 감사합니다.<br><br>
+ {{senderName}}<br>
+ {{senderEmail}}<br>
+ SHI 구매팀
+ </p>
+ </td>
+ </tr>
+
+ <!-- 푸터 -->
+ <tr>
+ <td style="background-color: #f8f9fa; padding: 20px 30px; border-radius: 0 0 8px 8px; text-align: center;">
+ <p style="color: #999999; font-size: 12px; margin: 0;">
+ 이 이메일은 EVCP 계약 관리 시스템에서 자동으로 발송되었습니다.<br>
+ © 2024 EVCP. All rights reserved.
+ </p>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+</body>
+</html> \ No newline at end of file