summaryrefslogtreecommitdiff
path: root/src/jwebmail/templates/writemail.html
blob: a94508174d6ce8c8ed25ccd0d89325cfc5cd1fbc (plain)
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
{% extends 'mainlayout.html' %}

{% block content %}
  <div class="section container">

    <h1 class=title>Write Message</h1>

    {% if warning is defined %}
      <p class=message> {{ warning }} </p>
    {% endif %}

    <form method=post enctype="multipart/form-data">

      <div class=field>
        {{ form.send_to.label(class='label') }}
        <div class=control>
          {{ form.send_to(class='input') }}
        </div>
      </div>

      <div class=field>
        {{ form.subject.label(class='label') }}
        <div class=control>
          {{ form.subject(class='input') }}
        </div>
      </div>

      <div class=field>
        {{ form.cc.label(class='label') }}
        <div class=control>
          {{ form.cc(class='input') }}
        </div>
      </div>

      <div class=field>
        {{ form.bcc.label(class='label') }}
        <div class=control>
          {{ form.bcc(class='input') }}
        </div>
      </div>

      <div class=field>
        {{ form.answer_to.label(class='label') }}
        <div class=control>
          {{ form.answer_to(class='input') }}
        </div>
      </div>

      <div class=field>
        {{ form.content.label(class='label') }}
        <div class=control>
          {{ form.content(class='textarea', rows=10) }}
        </div>
      </div>

      <div class=field>
        <div class=file>
          <label class=file-label>
            {{ form.attachments(class='file-input') }}
            <span class=file-cta>
              <span class=file-label>
                {% trans %}attach file{% endtrans %}
              </span>
            </span>
          </label>
        </div>
      </div>

      {{ form.csrf_token }}

      <div class=field>
        <div class=control>
          <input type=submit class=button value="{{ gettext('Send') }}">
        </div>
      </div>

    </form>

    <nav>
      <a href="javascript:history.back()" class=button>{% trans %}back{% endtrans %}</a>
    </nav>

  </div>
{% endblock %}