diff options
author | Drew DeVault <sir@cmpwn.com> | 2020-05-13 14:47:56 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-05-13 20:52:06 +0200 |
commit | 7456c9574cfe5cffb26aa2c8abe72682308d5fd5 (patch) | |
tree | abe68459e0bda13d8eb8bef2210a659afddb80de /themes/alps/address-book.html | |
parent | dfb381058bca883561af4053074db560d34822d8 (diff) | |
download | alps-7456c9574cfe5cffb26aa2c8abe72682308d5fd5.tar.gz alps-7456c9574cfe5cffb26aa2c8abe72682308d5fd5.zip |
alps: theme contact list page
Diffstat (limited to 'themes/alps/address-book.html')
-rw-r--r-- | themes/alps/address-book.html | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/themes/alps/address-book.html b/themes/alps/address-book.html new file mode 100644 index 0000000..60292bf --- /dev/null +++ b/themes/alps/address-book.html @@ -0,0 +1,47 @@ +{{template "head.html" .}} +{{template "nav.html" .}} + +<div class="page-wrap"> + <aside> + <a href="/contacts/create" class="new">New contact</a> + <!-- TODO: fetch list of address books --> + <a href="#" class="active">{{.AddressBook.Name}}</a> + <a href="#">Personal</a> + </aside> + + <div class="container"> + <form id="address-book-form" method="post"></form> + <main class="contact-list"> + <section class="actions"> + {{ template "contacts-header.html" . }} + </section> + + <section class="contacts"> + <div class="contact-grid"> + {{range .AddressObjects}} + <div class="contact-list-checkbox"> + <input type="checkbox" name="paths" value="{{.Path}}" form="address-book-form"> + </div> + <div class="contact-list-name"> + <a href="{{.URL}}"> + {{.Card.Value "FN"}} + </a> + </div> + <div class="contact-list-email"> + {{$email := .Card.PreferredValue "EMAIL"}} + {{if $email}} + <a href="/compose?to={{$email}}">{{$email}}</a> + {{end}} + </div> + {{end}} + </div> + </section> + + <section class="actions"> + {{ template "contacts-header.html" . }} + </section> + </main> + </div> +</div> + +{{template "foot.html"}} |