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"}}Add a {{lower .Type.Label}} · Fichas{{end}}
2{{define "content"}}
3<header fichas-appbar>
4 <h1 fichas-appbar-title>Add a {{lower .Type.Label}}</h1>
5</header>
6
7<form method="post" action="/cards" fichas-form rst-stack novalidate>
8 <input type="hidden" name="type" value="{{.TypeKey}}">
9 {{range $i, $f := .Fields}}{{template "fichas-input" (dict "F" $f "Error" (errFor $.Errors $f.Def.Key) "Autofocus" (eq $i 0) "L" $.L)}}{{end}}
10 {{template "form-foot" (dict "Submit" (printf "Save this %s" (lower .Type.Label)) "CancelHref" (printf "/t/%s" .TypeKey) "CancelLabel" "Cancel")}}
11</form>
12{{end}}
13