{{define "content"}} {{template "banner" .}}

Add a field to Customers

{{template "field" (dict "ID" "label" "Name" "label" "Label" "Field name" "Placeholder" "e.g. Contract value" "Required" true "Autofocus" true)}} {{template "choice-field" (dict "Legend" "What kind of value" "Name" "kind" "Options" (list (dict "Value" "text" "Title" "Text" "Desc" "A name, an address, a short note." "Checked" true) (dict "Value" "longtext" "Title" "Long text" "Desc" "Paragraphs.") (dict "Value" "number" "Title" "Number") (dict "Value" "date" "Title" "Date") (dict "Value" "choice" "Title" "Choice" "Desc" "One of a list you set — like Stage.") (dict "Value" "link" "Title" "Link to another card" "Desc" "A contact at this customer, a supplier for this order.")))}} {{template "choice-field" (dict "Legend" "Can fichas check it for duplicates?" "Name" "tier" "Options" (list (dict "Value" "sealed" "Title" "No — keep it private" "Desc" "Encrypted, readable only when a card is open. It can still be searched, sorted and grouped inside fichas. Right for almost everything." "Checked" true) (dict "Value" "print" "Title" "Yes — findable by exact match" "Desc" "fichas can spot two cards with the same value without opening them. For emails, phone numbers and domains — never for a short list of options, where the matches would give the values away.")))}} {{template "callout" (dict "Tone" "neutral" "Title" "This choice is hard to change later" "Body" "Switching it re-encrypts every value already in the field. Adding a field never touches existing cards.")}} {{template "form-foot" (dict "Submit" "Add field" "CancelHref" "database.html" "CancelLabel" "Cancel")}}
{{end}}