WIP: reference site — File field on the quote form, mail sink smoke test
Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
b7fb1b0e31
commit
387debc88c
@@ -84,6 +84,18 @@ export async function seedForms(seed: Seeder, notifyTo: string) {
|
||||
required: true,
|
||||
},
|
||||
{ blockType: 'date', label: tx('Planowany start', 'Planned start'), name: 'start' },
|
||||
// @starter:if demo
|
||||
// A File field (forms: { attachments: true }): sent with the notification to the studio, never stored on the site.
|
||||
{
|
||||
allowedTypes: ['pdf', 'jpg', 'png'],
|
||||
blockType: 'file',
|
||||
help: tx('Rzuty, zdjęcia lub mapa: PDF, JPG lub PNG, razem do 10 MB.', 'Floor plans, photos or a map: PDF, JPG or PNG, up to 10 MB together.'),
|
||||
label: tx('Załączniki (opcjonalnie)', 'Attachments (optional)'),
|
||||
maxFiles: 3,
|
||||
maxSizeMB: 10,
|
||||
name: 'attachment',
|
||||
},
|
||||
// @starter:endif
|
||||
{ blockType: 'message', message: rich(tx('Dane przetwarzamy wyłącznie w celu przygotowania wyceny.', 'We use your data only to prepare the quote.')) },
|
||||
consent,
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user