contact-forms brings a quote request, a booking request and a mailing list sign-up, and a Contact form section that shows any form beside an email, phone, address and a note. tables shows a table from a spreadsheet saved as CSV (or YAML or JSON) in data/, with a caption, row headings, numbers on the right, and sideways scrolling on phones. changelog gives a page per release, every release on one page, a feed, a What's new section and a latest-release partial; notes grouped under Keep a Changelog headings show as labels. To make them possible: - data/*.csv files load as rows of cells, for the data function and the editor's data picker. - Packs can bring forms (forms/<name>.yaml). A form is copied once and is the site's own from then on: upgrades and removal leave it, and a site's own form of that name is kept. A pack's form must send to a placeholder address (example.org and the other RFC 2606 names) and can't set Turnstile, so a pack can't route a site's submissions or add another site's script. - A new check warning, form-placeholder, for forms that still send to or show a placeholder address (the starter's contact form does until it's set). - A form's success path can no longer start with // or /\, which browsers treat as another site.
22 lines
961 B
YAML
22 lines
961 B
YAML
# A quote request, from the contact-forms pack. It's this site's own form
|
|
# now: change it as you like. Before publishing, set to: and mailto: to your
|
|
# own address.
|
|
title: Request a quote
|
|
to: [email protected]
|
|
subject: "Quote request from {{ .name }}: {{ .service }}"
|
|
reply_to: email
|
|
fields:
|
|
- { name: name, label: Your name, required: true, max: 120 }
|
|
- { name: email, type: email, label: Your email, required: true }
|
|
- { name: phone, type: tel, label: Phone, help: "If you'd rather we called." }
|
|
- name: service
|
|
type: select
|
|
label: What do you need?
|
|
required: true
|
|
options: [Something new, A change or repair, Something else]
|
|
- { name: when, type: text, label: "When do you need it by?", max: 120 }
|
|
- { name: budget, type: text, label: Your budget, help: "If you have one in mind.", max: 120 }
|
|
- { name: details, type: textarea, label: Tell us about it, required: true, max: 5000 }
|
|
submit: Ask for a quote
|
|
mailto: [email protected]
|