aboutsummaryrefslogtreecommitdiff
path: root/themes/alps/address-object.html
blob: 25fa0c4ecfb71c0c95681ac5223e23ceb8f0d1ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{{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">
    <main class="contact">
      <section class="actions">
        <div class="actions-wrap">
          <div class="actions-message">
            <div class="action-group">
              <a href="/contacts" class="button-link">« Back</a>
            </div>
            <div class="action-group">
              <a href="{{.AddressObject.URL}}/edit" class="button-link">
                Edit
              </a>
            </div>
            <form
              class="action-group"
              action="{{.AddressObject.URL}}/delete"
              method="post"
            >
              <button type="submit">Delete</button>
            </form>
          </div>
        </div>
      </section>

      <section class="details">
        {{$fn := .AddressObject.Card.Value "FN"}}
        <h1>{{$fn}}</h1>
        <dl>
          {{range .AddressObject.Card.Values "EMAIL"}}
          <dt>Email address</dt>
          <dd><a href="/compose?to={{.}}">{{.}}</a></dd>
          {{end}}
        </dl>
      </section>
    </main>
  </div>
</div>

{{template "foot.html"}}