fix: add disclaimer

This commit is contained in:
Ola Malmgren
2026-05-22 22:05:16 +02:00
parent 46916ada41
commit 7e78ace956
5 changed files with 54 additions and 1 deletions

View File

@@ -35,6 +35,8 @@ type EmailStrings = {
orderSummary: string;
pickup: string;
invoiceInfo: string;
responsibilityTitle: string;
responsibilityBody: string;
questions: string;
footer: string;
subtotal: string;
@@ -53,6 +55,9 @@ function getStrings(locale: 'sv' | 'en', event: string): EmailStrings {
orderSummary: 'Beställning',
pickup: 'Upphämtning',
invoiceInfo: 'Faktura skickas till organisationen efter eventet.',
responsibilityTitle: 'Beställarens ansvar',
responsibilityBody:
'Som beställare ansvarar du för att din by/kontingent har tillstånd för den mängd gasol som beställs. Riktlinje: 60 liter per 40 deltagare.',
questions: 'Har du frågor? Svara på detta mejl så hjälper vi dig.',
footer: 'Detta är en automatiserad bekräftelse från Gasol247.',
subtotal: 'Delsumma',
@@ -69,6 +74,9 @@ function getStrings(locale: 'sv' | 'en', event: string): EmailStrings {
orderSummary: 'Order',
pickup: 'Pickup',
invoiceInfo: 'An invoice will be sent to your organization after the event.',
responsibilityTitle: 'Your responsibility',
responsibilityBody:
'As the orderer you are responsible for ensuring your village/contingent has permission for the quantity of LPG ordered. Guideline: 60 litres per 40 participants.',
questions: 'Questions? Reply to this email and we will help you.',
footer: 'This is an automated confirmation from Gasol247.',
subtotal: 'Subtotal',
@@ -166,7 +174,12 @@ export function renderBookingEmail(
${pickupHtml}
<div style="margin-top:24px;padding:16px;background:#f1f5f9;border-radius:8px;font-size:13px;color:#475569;">
<div style="margin-top:24px;padding:16px;background:#fef3c7;border:1px solid #fcd34d;border-radius:8px;font-size:13px;color:#78350f;">
<div style="font-weight:600;color:#7c2d12;margin-bottom:4px;">${escapeHtml(s.responsibilityTitle)}</div>
${escapeHtml(s.responsibilityBody)}
</div>
<div style="margin-top:16px;padding:16px;background:#f1f5f9;border-radius:8px;font-size:13px;color:#475569;">
${escapeHtml(s.invoiceInfo)}
</div>
@@ -202,6 +215,8 @@ export function renderBookingEmail(
`${s.total}: ${fmt(booking.totalOre)}`,
...(slotLabel ? ['', `${s.pickup}: ${slotLabel} ${slotTime}`] : []),
'',
`${s.responsibilityTitle}: ${s.responsibilityBody}`,
'',
s.invoiceInfo,
'',
s.questions,