oficina / fichas Public

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

Plain git — no account needed to clone.

Download

Download this file

1{{define "title"}}New type · Fichas{{end}}
2{{define "content"}}
3<header fichas-appbar>
4 <h1 fichas-appbar-title>New type <span>a new kind of card</span></h1>
5</header>
6<form method="post" action="/types" fichas-form rst-stack>
7 {{template "field" (dict "ID" "label" "Name" "label" "Label" "One of them is called" "Value" (index .Form "label") "Placeholder" "Supplier" "Required" true "Autofocus" true "Error" (errFor .Errors "label"))}}
8 {{template "field" (dict "ID" "plural" "Name" "plural" "Label" "A list of them is called" "Value" (index .Form "plural") "Placeholder" "Suppliers" "Hint" "optional" "Error" (errFor .Errors "plural"))}}
9 <p fichas-meta>It starts with one field, Name. You'll add the rest next.</p>
10 {{template "form-foot" (dict "Submit" "Create type" "CancelHref" "/" "CancelLabel" "Cancel")}}
11</form>
12{{end}}
13