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>Customers <span>4 records · 7 fields</span></h1>
5 <div fichas-appbar-actions><a rst-btn="primary" href="edit.html">{{icon "plus"}} Add a customer</a></div>
6</header>
7
8<div fichas-toolbar>
9 {{template "viewswitch" .}}
10 <a rst-btn href="field.html">{{icon "plus"}} Add field</a>
11</div>
12{{template "recordbar" .}}
13
14<div fichas-grid-wrap>
15<table fichas-grid>
16 <thead><tr>
17 {{range .Fields}}{{if ne .Key "f_notes"}}<th scope="col">{{.Label}}<small>{{.Kind}}{{if eq .Tier "Findable"}} · findable{{end}}</small></th>{{end}}{{end}}
18 <th scope="col">Last call<small>from Call log</small></th>
19 </tr></thead>
20 <tbody>
21 {{range .Records}}
22 <tr>
23 <td><a href="show.html">{{.Name}}</a></td>
24 <td>{{or .Domain "—"}}</td>
25 <td>{{.Email}}</td>
26 <td>{{if .Phone}}{{.Phone}}{{else}}<span fichas-empty-cell>—</span>{{end}}</td>
27 <td>{{template "status-pill" (dict "Label" .Stage "Tone" .Tone)}}</td>
28 <td>{{if .NextAction}}<time title="{{.NextAction}}">{{.NextActionAgo}}</time>{{else}}<span fichas-empty-cell>—</span>{{end}}</td>
29 <td>{{if .LastCallAgo}}{{.LastCallAgo}}{{else}}<span fichas-empty-cell>never</span>{{end}}</td>
30 </tr>
31 {{end}}
32 </tbody>
33</table>
34</div>
35<p rst-count-line>4 customers</p>
36{{end}}
37