feat: support user-related placeholders in submission templates and standardize display time to Asia/Bangkok timezone

This commit is contained in:
2026-06-29 20:30:06 +07:00 Unverified
parent 56eaf61cef
commit f9b423eded
4 changed files with 14 additions and 7 deletions
+2 -2
View File
@@ -73,7 +73,7 @@ export default function FormExtraClient({ form }: FormExtraClientProps) {
className="min-h-24"
/>
<p className="text-sm text-muted-foreground">
Use <code>{`{1}`}</code>, <code>{`{2}`}</code> to insert answers according to question order. Example: <code>{`{1}`}</code> for the first question.
Use <code>{`{1}`}</code>, <code>{`{2}`}</code> to insert answers according to question order, and <code>{`{username}`}</code>, <code>{`{displayname}`}</code>, <code>{`{id}`}</code> for user info.
</p>
</div>
<div className="space-y-2">
@@ -86,7 +86,7 @@ export default function FormExtraClient({ form }: FormExtraClientProps) {
className="min-h-24"
/>
<p className="text-sm text-muted-foreground">
Used when a user updates their existing submission. Use <code>{`{1}`}</code>, <code>{`{2}`}</code> to insert answers.
Used when a user updates their existing submission. Use <code>{`{1}`}</code>, <code>{`{2}`}</code> for answers, and <code>{`{username}`}</code>, <code>{`{displayname}`}</code>, <code>{`{id}`}</code> for user info.
</p>
</div>
<div className="flex justify-end pt-2">