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{{with .Record}}
4<header fichas-appbar>
5 <h1 fichas-appbar-title>{{.Name}} <span>Customer · updated {{.Updated}}</span></h1>
6 <div fichas-appbar-actions>
7 <a rst-btn href="#">{{icon "clock"}} History</a>
8 <a rst-btn="primary" href="edit.html">{{icon "pencil"}} Edit</a>
9 </div>
10</header>
11
12<div fichas-split>
13 <section>
14 <div rst-box>
15 <div rst-box-head><h2>Where this stands</h2></div>
16 <p>Proposal sent; Ana wants the pilot scoped to one department before the board meets.<a fichas-cite href="#call-1">1</a> The need is follow-up tracking — they lose it in a shared spreadsheet.<a fichas-cite href="#call-2">2</a></p>
17 <p fichas-meta>Written by fichas from the call log · every sentence links to the call it came from</p>
18 </div>
19
20 <div rst-box>
21 <div rst-box-head><h2>Call log</h2></div>
22 <form method="post" action="#">
23 {{template "field-textarea" (dict "Name" "f_body" "Label" "Log a call" "Rows" 2)}}
24 {{template "form-foot" (dict "Submit" "Log this call")}}
25 </form>
26 <ol fichas-timeline>
27 {{range $i, $c := .Calls}}
28 <li id="call-{{add1 $i}}"><time title="{{$c.When}}">{{$c.Ago}}</time><p>{{$c.Body}}</p></li>
29 {{end}}
30 </ol>
31 </div>
32 </section>
33
34 <aside>
35 <div rst-box>
36 <div rst-box-head><h2>Details</h2></div>
37 {{template "detail-list" (dict "Items" (list
38 (dict "Label" "Stage" "Value" .Stage)
39 (dict "Label" "Email" "Value" .Email)
40 (dict "Label" "Phone" "Value" .Phone)
41 (dict "Label" "Domain" "Value" .Domain)
42 (dict "Label" "Next action" "Value" .NextAction)
43 (dict "Label" "Owner" "Value" .Owner)))}}
44 </div>
45 <div rst-box>
46 <div rst-box-head><h2>Notes</h2></div>
47 <p>{{.Notes}}</p>
48 </div>
49 <div rst-box>
50 <div rst-box-head><h2>Linked</h2></div>
51 <p fichas-meta>Link a Doc, a Sheet or a Calls meeting to this customer. Only people who can open it will see it here.</p>
52 </div>
53 </aside>
54</div>
55{{end}}
56{{end}}
57