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</span></h1>
5 <div fichas-appbar-actions>
6 <a rst-btn="primary" href="edit.html">{{icon "plus"}} Add a customer</a>
7 </div>
8</header>
9
10<div fichas-toolbar>
11 {{template "viewswitch" .}}
12 <a rst-btn href="card-layout.html">{{icon "layout-grid"}} Arrange cards</a>
13</div>
14{{template "recordbar" .}}
15
16<ul fichas-card-grid>
17{{range .Records}}
18 <li><article rst-card>
19 <h2 fichas-card-title><a href="show.html">{{.Name}}</a>{{template "status-pill" (dict "Label" .Stage "Tone" .Tone)}}</h2>
20 <p fichas-meta>{{.Email}}</p>
21 {{with .Calls}}{{with index . 0}}<p fichas-card-quote>{{.Body}}</p>{{end}}{{end}}
22 <p fichas-meta>{{if .NextAction}}Next action <time title="{{.NextAction}}">{{.NextActionAgo}}</time>{{else if .LastCallAgo}}Last call {{.LastCallAgo}}{{else}}No calls yet{{end}}</p>
23 </article></li>
24{{end}}
25</ul>
26{{end}}
27