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"}}{{.Type.Plural}} fields · Fichas{{end}}
2{{define "content"}}
3<header fichas-appbar>
4 <h1 fichas-appbar-title>Fields <span>on every {{lower .Type.Label}}</span></h1>
5 <div fichas-appbar-actions>
6 <a rst-btn href="/t/{{.TypeKey}}">Back to {{lower .Type.Plural}}</a>
7 <a rst-btn="primary" href="/t/{{.TypeKey}}/fields/new">{{icon "plus"}} Add a field</a>
8 </div>
9</header>
10
11<div fichas-grid-wrap>
12<table fichas-grid>
13 <thead><tr><th scope="col">Field</th><th scope="col">Kind</th><th scope="col">Findable by exact match</th><th scope="col"><span class="rst-sr-only">Actions</span></th></tr></thead>
14 <tbody>
15 {{range .Rows}}
16 <tr>
17 <td>{{.Label}}{{if .Title}} <span fichas-meta>· the card's title</span>{{end}}</td>
18 <td>{{.Kind}}{{with .Options}} <span fichas-meta>· {{len .}} options</span>{{end}}</td>
19 <td>{{if .Findable}}Yes{{else}}<span fichas-empty-cell>No — private</span>{{end}}</td>
20 <td><a rst-btn="sm" href="/fields/{{.Key}}/edit" aria-label="Edit {{.Label}}">{{icon "pencil"}} Edit</a></td>
21 </tr>
22 {{end}}
23 </tbody>
24</table>
25</div>
26<p fichas-meta>Every value is encrypted. "Findable" fields also keep a fingerprint, so Fichas can spot two cards with the same email or phone without opening them.</p>
27{{end}}
28