summaryrefslogtreecommitdiff
path: root/lib/mail/templates/contract-approval-request.hbs
blob: eef09fb8118fcecc1a329eefa78e5db95614e8b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<!-- contract-approval-request.hbs -->
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>계약 승인 요청</title>
    <style>
        body {
            font-family: 'Malgun Gothic', '맑은 고딕', Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f5f5f5;
        }
        .container {
            background-color: #ffffff;
            border-radius: 8px;
            padding: 30px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        .header {
            text-align: center;
            border-bottom: 2px solid #e9ecef;
            padding-bottom: 20px;
            margin-bottom: 30px;
        }
        .header h1 {
            color: #2563eb;
            font-size: 24px;
            margin: 0;
        }
        .content {
            margin-bottom: 30px;
        }
        .info-box {
            background-color: #f8f9fa;
            border-left: 4px solid #2563eb;
            padding: 15px;
            margin: 20px 0;
            border-radius: 4px;
        }
        .contract-details {
            background-color: #f8f9fa;
            border-radius: 6px;
            padding: 15px;
            margin: 15px 0;
        }
        .detail-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid #e9ecef;
        }
        .detail-row:last-child {
            border-bottom: none;
        }
        .detail-label {
            font-weight: bold;
            color: #495057;
        }
        .detail-value {
            color: #212529;
        }
        .button {
            display: inline-block;
            background-color: #2563eb;
            color: white;
            padding: 12px 24px;
            text-decoration: none;
            border-radius: 6px;
            font-weight: bold;
            text-align: center;
            margin: 20px auto;
        }
        .button:hover {
            background-color: #1d4ed8;
        }
        .message-box {
            background-color: #fef3c7;
            border: 1px solid #f59e0b;
            border-radius: 6px;
            padding: 15px;
            margin: 20px 0;
        }
        .footer {
            border-top: 1px solid #e9ecef;
            padding-top: 20px;
            margin-top: 30px;
            text-align: center;
            color: #6b7280;
            font-size: 14px;
        }
        .urgent-notice {
            background-color: #fef2f2;
            border: 1px solid #fca5a5;
            border-radius: 6px;
            padding: 15px;
            margin: 20px 0;
            text-align: center;
        }
        .urgent-notice strong {
            color: #dc2626;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>📋 계약 승인 요청</h1>
        </div>

        <div class="content">
            <p>안녕하세요, {{vendorName}}님</p>

            <p>새로운 계약이 생성되어 승인을 요청드립니다.</p>

            <div class="info-box">
                <p><strong>📄 계약 정보</strong></p>
                <ul style="margin: 10px 0;">
                    <li>계약 ID: {{contractId}}</li>
                    <li>요청 일시: {{requestDate}}</li>
                </ul>
            </div>

            {{#if contractDetails}}
            <div class="contract-details">
                <p><strong>📋 상세 정보:</strong></p>
                {{#each contractDetails}}
                <div class="detail-row">
                    <span class="detail-label">{{@key}}:</span>
                    <span class="detail-value">{{this}}</span>
                </div>
                {{/each}}
            </div>
            {{/if}}

            {{#if message}}
            <div class="message-box">
                <p><strong>💬 요청자 메시지:</strong></p>
                <p style="margin: 8px 0; white-space: pre-line;">{{message}}</p>
            </div>
            {{/if}}

            <div class="urgent-notice">
                <p><strong>⚡ 긴급 안내</strong></p>
                <p>계약 승인은 7일 이내에 완료되어야 합니다. 기한 내에 승인하지 않으시면 계약이 자동 취소될 수 있습니다.</p>
            </div>

            <div style="text-align: center;">
                <a href="{{loginUrl}}" class="button">
                    🔗 계약 승인 페이지로 이동
                </a>
            </div>

            <div class="info-box">
                <p><strong>💡 승인 절차 안내:</strong></p>
                <ul style="margin: 10px 0;">
                    <li>위 링크를 클릭하여 계약 시스템에 로그인해주세요.</li>
                    <li>계약 내용을 자세히 확인하신 후 승인 또는 거부 버튼을 클릭해주세요.</li>
                    <li>거부하실 경우 반드시 거부 사유를 기재해주세요.</li>
                    <li>문의사항이 있으시면 계약 담당자에게 직접 연락해주세요.</li>
                </ul>
            </div>
        </div>

        <div class="footer">
            <p>이 메일은 계약 관리 시스템에서 자동으로 발송되었습니다.</p>
            <p>문의사항이 있으시면 시스템 관리자에게 연락해주세요.</p>
        </div>
    </div>
</body>
</html>