~maxiberta/canonical-identity-provider/prevent-forgot-password-user-enumeration

« back to all changes in this revision

Viewing changes to src/webui/templates/account/gpg_keys.html

  • Committer: Thomi Richards
  • Date: 2016-11-01 11:13:34 UTC
  • mto: This revision was merged to the branch mainline in revision 1537.
  • Revision ID: thomi.richards@canonical.com-20161101111334-jd0lhwhtls5x3iu0
Remove more gpg-related bits.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{% extends "base.html" %}
2
 
{% load i18n %}
3
 
{% load staticfiles %}
4
 
{% comment %}
5
 
Copyright 2016 Canonical Ltd.  This software is licensed under the
6
 
GNU Affero General Public License version 3 (see the file LICENSE).
7
 
{% endcomment %}
8
 
 
9
 
{% block title %}{% trans "GPG keys" %}{% endblock %}
10
 
 
11
 
{% block text_title %}
12
 
  <h1 class="u1-h-main">{% trans "GPG keys" %}</h1>
13
 
{% endblock %}
14
 
 
15
 
  {% block content %}
16
 
  <div class="gpg-keys">
17
 
    <section class="gpg-key-import">
18
 
      <h3>{% trans "Import an OpenPGP key" %}</h3>
19
 
      <div>
20
 
        {% include "help/help_find_gpg_fingerprint.html"%}
21
 
      </div>
22
 
      <div>
23
 
        {% include "help/help_generate_gpg_keys.html"%}
24
 
      </div>
25
 
      <div>
26
 
        {% include "help/help_sync_gpg_keys.html"%}
27
 
      </div>
28
 
 
29
 
      <form action="" method="POST" class="edit-gpg-keys">
30
 
        <fieldset>
31
 
          {% csrf_token %}
32
 
          {{ claim_form }}
33
 
        </fieldset>
34
 
        <p class="actions">
35
 
          <input class="cta" type="submit" name="claim_gpg" value="{% trans "Import Key" %}">
36
 
        </p>
37
 
      </form>
38
 
      <p>
39
 
        {% blocktrans %}Ubuntu One will send an email to you at
40
 
        <code>{{ preferred_email }}</code> with instructions
41
 
        on finishing the process.{% endblocktrans %}
42
 
      </p>
43
 
    </section>
44
 
    {% if pending_form.fields.tokens.choices %}
45
 
    <section class="gpg-pending-keys">
46
 
      <h3>{% trans "Keys pending validation" %}</h3>
47
 
      <form action="" method="POST">
48
 
        {% csrf_token %}
49
 
        {{ pending_form }}
50
 
        <input class="cta" type="submit" name="cancel_pending" value="{% trans "Cancel Validation for Selected Keys" %}">
51
 
      </form>
52
 
    </section>
53
 
    {% endif %}
54
 
    {% if disable_keys_form.num_choices %}
55
 
    <section class="gpg-disable-keys">
56
 
      <h3>{% trans "Your Enabled Keys" %}</h3>
57
 
      <form action="" method="POST">
58
 
        {% csrf_token %}
59
 
        {{ disable_keys_form }}
60
 
        <input class="cta" type="submit" name="disable_keys" value="{% trans "Disable Selected Keys" %}"/>
61
 
      </form>
62
 
    </section>
63
 
    {% endif %}
64
 
    {% if reenable_keys_form.num_choices %}
65
 
    <section class="gpg-reenable-keys">
66
 
      <h3>{% trans "Disabled Keys" %}</h3>
67
 
      <form action="" method="POST">
68
 
        {% csrf_token %}
69
 
        {{ reenable_keys_form }}
70
 
        <input class="cta" type="submit" name="reenable_keys" value="{% trans "Re-enable Selected Keys" %}">
71
 
      </form>
72
 
    </section>
73
 
  </div>
74
 
{% endif %}
75
 
{% endblock %}
76
 
 
77
 
{% block extra_js %}
78
 
  <script src="{% static 'identityprovider/js/accordion/accordion.js' %}"></script>
79
 
{% endblock %}