aboutsummaryrefslogtreecommitdiff
path: root/themes/sourcehut/compose.html
blob: 7538a366eea2ca64d33c3688e10840332d36f1e7 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{{template "head.html"}}
{{template "nav.html" .Global}}

<div class="container-fluid">
  <div class="row">
    <div class="col-md-12 header-tabbed">
      <h2>Compose</h2>
      <ul class="nav nav-tabs">
        <li class="nav-item">
          <a class="nav-link" href="/mailbox/INBOX" >Messages</a>
        </li>
        <li class="nav-item">
          <a class="nav-link active" href="/compose">Compose</a>
        </li>
      </ul>
    </div>
  </div>
</div>
<div class="container">
  <form method="post" class="col-md-12" enctype="multipart/form-data">
    <input type="hidden" name="in_reply_to" value="{{.Message.InReplyTo}}">
    <div class="row">
      <div class="form-group col-md-6">
        <label for="from">From</label>
        <input
          type="email"
          name="from"
          id="from"
          class="form-control"
          value="{{.Message.From}}" />
      </div>
      <div class="form-group col-md-6">
        <label for="to">To</label>
        <input
          type="email"
          name="to"
          id="to"
          class="form-control"
          value="{{.Message.ToString}}"
          list="emails"
          multiple
          {{ if not .Message.To }}
          autofocus
          {{ end }} />
      </div>
    </div>
    <div class="form-group">
      <label for="subject">Subject</label>
      <input
        type="text"
        name="subject"
        id="subject"
        class="form-control"
        value="{{.Message.Subject}}"
        {{ if .Message.To }}
        autofocus
        {{ end }} />
    </div>
    <div class="form-group">
      <textarea
        name="text"
        class="form-control"
        cols="80"
        rows="20"
      >{{.Message.Text}}</textarea>
    </div>
    <div class="pull-right">
      <a
        href="/mailbox/INBOX"
        class="btn btn-default"
      >Cancel</a>
      <button
        type="submit"
        name="save_as_draft"
        class="btn btn-default"
      >Save as draft</button>
      <button
        type="submit"
        class="btn btn-primary"
      >Send email</button>
    </div>

    <datalist id="emails">
      {{range .Extra.EmailSuggestions}}
        <option value="{{.}}">
      {{end}}
    </datalist>
  </form>
</div>

{{template "foot.html"}}