oficina / fichas Public

Clone
git clone https://amadan.net/oficina/fichas

Plain git — no account needed to clone.

Download

Download this file

1{{define "content"}}
2{{template "banner" .}}
3<header fichas-appbar>
4 <h1 fichas-appbar-title>Add a field <span>to Customers</span></h1>
5</header>
6<form method="post" action="database.html" style="max-inline-size: 40rem">
7 {{template "field" (dict "ID" "label" "Name" "label" "Label" "Field name" "Placeholder" "e.g. Contract value" "Required" true "Autofocus" true)}}
8 {{template "choice-field" (dict "Legend" "What kind of value" "Name" "kind" "Options" (list
9 (dict "Value" "text" "Title" "Text" "Desc" "A name, an address, a short note." "Checked" true)
10 (dict "Value" "longtext" "Title" "Long text" "Desc" "Paragraphs.")
11 (dict "Value" "number" "Title" "Number")
12 (dict "Value" "date" "Title" "Date")
13 (dict "Value" "choice" "Title" "Choice" "Desc" "One of a list you set — like Stage.")
14 (dict "Value" "link" "Title" "Link to another card" "Desc" "A contact at this customer, a supplier for this order.")))}}
15 {{template "choice-field" (dict "Legend" "Can fichas check it for duplicates?" "Name" "tier" "Options" (list
16 (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)
17 (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.")))}}
18 {{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.")}}
19 {{template "form-foot" (dict "Submit" "Add field" "CancelHref" "database.html" "CancelLabel" "Cancel")}}
20</form>
21{{end}}
22