mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
## Description General enhancements for templates. ## Changes Made Added the following changes to the template flow: - Allow adding document meta settings - Allow adding email settings - Allow adding document access & action authentication - Allow adding recipient action authentication - Save the state between template steps similar to how it works for documents Other changes: - Extract common fields between document and template flows - Remove the title field from "Use template" since we now have it as part of the template flow - Add new API endpoint for generating templates ## Testing Performed Added E2E tests for templates and creating documents from templates
35 lines
1.0 KiB
TypeScript
35 lines
1.0 KiB
TypeScript
'use client';
|
|
|
|
import React from 'react';
|
|
|
|
export const DocumentSendEmailMessageHelper = () => {
|
|
return (
|
|
<div>
|
|
<p className="text-muted-foreground text-sm">
|
|
You can use the following variables in your message:
|
|
</p>
|
|
|
|
<ul className="mt-2 flex list-inside list-disc flex-col gap-y-2 text-sm">
|
|
<li className="text-muted-foreground">
|
|
<code className="text-muted-foreground bg-muted-foreground/20 rounded p-1 text-sm">
|
|
{'{signer.name}'}
|
|
</code>{' '}
|
|
- The signer's name
|
|
</li>
|
|
<li className="text-muted-foreground">
|
|
<code className="text-muted-foreground bg-muted-foreground/20 rounded p-1 text-sm">
|
|
{'{signer.email}'}
|
|
</code>{' '}
|
|
- The signer's email
|
|
</li>
|
|
<li className="text-muted-foreground">
|
|
<code className="text-muted-foreground bg-muted-foreground/20 rounded p-1 text-sm">
|
|
{'{document.name}'}
|
|
</code>{' '}
|
|
- The document's name
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
);
|
|
};
|