Download this file
| 1 | {{define "content"}} |
| 2 | {{template "banner" .}} |
| 3 | {{with .Record}} |
| 4 | <header fichas-appbar> |
| 5 | <h1 fichas-appbar-title>Edit {{.Name}} <span>Customer</span></h1> |
| 6 | </header> |
| 7 | <form method="post" action="show.html" style="max-inline-size: 40rem"> |
| 8 | {{template "field" (dict "ID" "f_name" "Name" "f_name" "Label" "Name" "Value" .Name "Required" true)}} |
| 9 | {{template "field" (dict "ID" "f_domain" "Name" "f_domain" "Label" "Domain" "Value" .Domain)}} |
| 10 | {{template "field" (dict "ID" "f_email" "Name" "f_email" "Label" "Email" "Type" "email" "Value" .Email)}} |
| 11 | {{template "field" (dict "ID" "f_phone" "Name" "f_phone" "Label" "Phone" "Type" "tel" "Value" .Phone)}} |
| 12 | {{template "field-select" (dict "ID" "f_stage" "Name" "f_stage" "Label" "Stage" "Options" (list |
| 13 | (dict "Value" "Lead" "Label" "Lead") (dict "Value" "Contacted" "Label" "Contacted") |
| 14 | (dict "Value" "Proposal" "Label" "Proposal" "Selected" true) |
| 15 | (dict "Value" "Won" "Label" "Won") (dict "Value" "Lost" "Label" "Lost")))}} |
| 16 | {{template "field-date" (dict "Name" "f_next_action" "Label" "Next action" "Value" "2026-10-02")}} |
| 17 | {{template "field-textarea" (dict "Name" "f_notes" "Label" "Notes" "Value" .Notes "Rows" 4)}} |
| 18 | {{template "form-foot" (dict "Submit" "Save changes" "CancelHref" "show.html" "CancelLabel" "Cancel")}} |
| 19 | </form> |
| 20 | <div fichas-danger-zone> |
| 21 | <a rst-btn="danger" href="#">Delete this customer…</a> |
| 22 | <p fichas-meta>Opens a confirmation page. The change log keeps who deleted it.</p> |
| 23 | </div> |
| 24 | {{end}} |
| 25 | {{end}} |
| 26 | |