summaryrefslogtreecommitdiffstats
path: root/templates/pad_change.html
blob: 5e46d70947f449278226d8640443d779e9d9bbad (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
{% extends "layout.html" %}
{% from "_formhelpers.html" import render_field %}

{% block content %}
<h1>
  <b>{{ group.name }}</b>
</h1>

<div class="panel panel-default">
  <div class="panel-heading">
    <h3 class="panel-title">
      {% if pad %}
        Edit pad
      {% else %}
        Create a pad
      {% endif %}
    </h3>
  </div>

  <div class="panel-body">
    <form class="form-horizontal" role="form" method="POST">
      <!--
      this will prevent chrome from filling the saved login password
      into this form (chrome ignores autocomplete=off)
      -->
      <input type="text" class="hidden" /><input type="password" class="hidden" />

      {% for field in change_form %}
      {{ render_field(field) }}
      {% endfor %}
      <div class="form-group">
        <div class="col-lg-10 col-lg-offset-2">
          <button type="submit" class="btn btn-primary">
            {% if pad %}
              Save pad
            {% else %}
              Create pad
            {% endif %}
          </button>
        </div>
      </div>
    </form>
  </div>
</div>
{% endblock %}