aboutsummaryrefslogblamecommitdiff
path: root/plugins/carddav/public/address-book.html
blob: e1e735f74cd807ef4a85f7993db3d4fe3bd2d630 (plain) (tree)
1
2
3
4
5
6
                          
 
             

   
                                                                           












                                                       
                           













                                                                 
{{template "head.html" .}}

<h1>alps</h1>

<p>
  <a href="/">Back</a> · <a href="/contacts/create">Create new contact</a>
</p>

<h2>Contacts: {{.AddressBook.Name}}</h2>

<form method="get" action="">
  <input type="search" name="query" value="{{.Query}}">
  <input type="submit" value="Search">
</form>

{{if .AddressObjects}}
  <ul>
    {{range .AddressObjects}}
      <li>
        <a href="{{.URL}}">
          {{.Card.Value "FN"}}
        </a>
        {{$email := .Card.PreferredValue "EMAIL"}}
        {{if $email}}
          &lt;<a href="/compose?to={{$email}}">{{$email}}</a>&gt;
        {{end}}
      </li>
    {{end}}
  </ul>
{{else}}
  <p>No contact.</p>
{{end}}

{{template "foot.html"}}