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>Arrange the Customer card <span>what shows on each card in Cards view</span></h1>
5</header>
6
7<form method="post" action="cards.html" fichas-layout-editor>
8 <div>
9 <fieldset fichas-checklist>
10 <legend>Show on the card</legend>
11 {{template "field-check" (dict "Name" "face" "Value" "f_name" "Label" "Name — always the title" "Checked" true "Disabled" true)}}
12 {{template "field-check" (dict "Name" "face" "Value" "f_stage" "Label" "Stage, beside the title" "Checked" true)}}
13 {{template "field-check" (dict "Name" "face" "Value" "f_email" "Label" "Email" "Checked" true)}}
14 {{template "field-check" (dict "Name" "face" "Value" "last_call" "Label" "Latest call, one line" "Checked" true)}}
15 {{template "field-check" (dict "Name" "face" "Value" "f_next_action" "Label" "Next action" "Checked" true)}}
16 {{template "field-check" (dict "Name" "face" "Value" "f_phone" "Label" "Phone")}}
17 {{template "field-check" (dict "Name" "face" "Value" "f_domain" "Label" "Domain")}}
18 {{template "field-check" (dict "Name" "face" "Value" "f_notes" "Label" "Notes, cut to two lines")}}
19 </fieldset>
20 {{template "form-foot" (dict "Submit" "Save card layout" "CancelHref" "cards.html" "CancelLabel" "Cancel")}}
21 </div>
22 <aside>
23 <p fichas-meta>Preview</p>
24 {{with .Record}}
25 <ul fichas-card-grid><li><article rst-card>
26 <h2 fichas-card-title><a href="show.html">{{.Name}}</a>{{template "status-pill" (dict "Label" .Stage "Tone" .Tone)}}</h2>
27 <p fichas-meta>{{.Email}}</p>
28 {{with index .Calls 0}}<p fichas-card-quote>{{.Body}}</p>{{end}}
29 <p fichas-meta>Next action <time title="{{.NextAction}}">{{.NextActionAgo}}</time></p>
30 </article></li></ul>
31 {{end}}
32 </aside>
33</form>
34{{end}}
35