summaryrefslogtreecommitdiff
path: root/src/jwebmail/templates/_bot_nav.html
blob: bd9e05a23afe582d3d621e687b121f1660cea37a (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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<div class="columns">

  <div class=column>
    <nav class="pagination" role="navigation">
      {% if first %}
        <a class="pagination-previous" disabled>&laquo;</a>
      {% else %}
        <a class="pagination-previous"
           href="{{ url_for(
                      'displayheaders',
                      folder=request.view_args.folder,
                      page_bound=page_bound_before,
                      page_after=0,
                      per_page=request.args.get('per_page'),
                      sort=request.args.get('sort'),
                      search=request.args.get('search'),
                    ) }}"
           aria-label="Next">
          &laquo;
        </a>
      {% endif %}

      {% if last %}
        <a class="pagination-next" disabled>&raquo;</a>
      {% else %}
        <a class="pagination-next"
           href="{{ url_for(
                      'displayheaders',
                      folder=request.view_args.folder,
                      page_bound=page_bound_after,
                      page_after=1,
                      per_page=request.args.get('per_page'),
                      sort=request.args.get('sort'),
                      search=request.args.get('search'),
                    ) }}"
           aria-label="Next">
          &raquo;
        </a>
      {% endif %}
    </nav>
  </div>

  <div class="column">

    {% if mail_folders|length > 1 %}
      <form action="{{ url_for('move', folder=folder) }}" id="move-mail" class=is-pulled-left method=POST>
        <input type=hidden name=csrf_token value="{{ csrf_token() }}">
        <input type=hidden name=sort value="{{ request.args.sort }}">
        <input type=hidden name=search value="{{ request.args.search }}">
        <input type=hidden name=per_page value="{{ request.args.per_page }}">
        <input type=hidden name=page_bound value="{{ request.args.page_bound }}">
        <input type=hidden name=after_page value="{{ request.args.after_page }}">
        <div class="field has-addons">
          <div class=control>
            <div class=select>
              <select name=select-folder>
                {% for f in mail_folders if f is ne folder %}
                  <option type=select name="folder" value="{{ f }}">
                    {{ f or gettext('Home') }}
                  </option>
                {% endfor %}
              </select>
            </div>
          </div>
          <div class=control>
            <input id=move type=submit class=button value="{{ gettext('Move') }}">
          </div>
        </div>
      </form>
    {% endif %}

    <form action="{{ url_for('remove', folder=folder) }}" id="remove-mail"
      method=POST class="is-pulled-left ml-2">

      <input type=hidden name=csrf_token value="{{ csrf_token() }}">
      <input type=hidden name=sort value="{{ request.args.sort }}">
      <input type=hidden name=search value="{{ request.args.search }}">
      <input type=hidden name=per_page value="{{ request.args.per_page }}">
      <input type=hidden name=page_bound value="{{ request.args.page_bound }}">
      <input type=hidden name=after_page value="{{ request.args.after_page }}">
      <div class=control>
        <input id=remove type=submit class=button value="{{ gettext('Remove') }}">
      </div>
    </form>

  </div>

  <div class="column is-2 mr-2 has-text-right">
    <div class="field">
      <div class="control">
        <label class=checkbox for=allbox>
          {% trans %}check all{% endtrans %}
          <input name=allbox type=checkbox id=check-all>
        </label>
      </div>
    </div>
  </div>

</div>