~roadmr/canonical-identity-provider/u2f-db-fields-separate-dev-type

« back to all changes in this revision

Viewing changes to src/webui/templates/device/generate-codes.html

  • Committer: Daniel Manrique
  • Date: 2020-02-21 21:19:46 UTC
  • mfrom: (1697.2.28 work)
  • Revision ID: roadmr@ubuntu.com-20200221211946-k3pds3i97yxy5zwg
MergedĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{% extends "base.html" %}
 
1
{% extends "vanilla/base.html" %}
2
2
{% load i18n %}
3
3
 
4
4
{% comment %}
5
 
Copyright 2012 Canonical Ltd.  This software is licensed under the GNU
 
5
Copyright 2012-2019 Canonical Ltd.  This software is licensed under the GNU
6
6
Affero General Public License version 3 (see the file LICENSE).
7
7
{% endcomment %}
8
8
 
14
14
 
15
15
 
16
16
{% block text_title %}
17
 
<h1 class="main">{% trans "Generate new codes" %}</h1>
 
17
  {% trans "Generate new codes" %}
18
18
{% endblock %}
19
19
 
20
20
{% block content %}
21
 
 
22
 
<h3>{% blocktrans %}
23
 
Confirming the new codes will <strong>invalidate</strong> all the previous codes.<br/>
24
 
Please print this new list and <strong>destroy any old lists</strong>.
25
 
{% endblocktrans %}</h3>
26
 
 
27
 
{% include 'device/code-list.html' %}
28
 
 
29
 
<form method="post">
30
 
  {% csrf_token %}
31
 
  <p>
32
 
    <button class="btn" type="submit" data-qa-id="confirm_new_codes">
33
 
      <span><span>{% trans "Confirm new codes" %}</span></span>
34
 
    </button>
35
 
    {% trans "or" %}
36
 
    <a href="{% url 'device-print' device_id %}" data-qa-id="cancel_new_codes">{% trans "cancel" %}</a>
37
 
  </p>
38
 
</form>
 
21
<div class="row">
 
22
  <div class="col-8">
 
23
    <div class="p-notification--warning">
 
24
      <p class="p-notification__response">
 
25
        {% blocktrans %}
 
26
        Confirming the new codes will <strong>invalidate</strong> all the previous codes.<br/>
 
27
        Please print this new list and <strong>destroy any old lists</strong>.
 
28
        {% endblocktrans %}
 
29
      </p>
 
30
    </div>
 
31
 
 
32
    <hr>
 
33
 
 
34
    {% include 'device/code-list.html' %}
 
35
 
 
36
    <hr>
 
37
 
 
38
    <form method="post">
 
39
      {% csrf_token %}
 
40
      <button class="p-button--positive" type="submit" data-qa-id="confirm_new_codes">{% trans "Confirm new codes" %}</button>
 
41
      {% trans "or" %}
 
42
      <a href="{% url 'device-print' device_id %}" data-qa-id="cancel_new_codes">{% trans "cancel" %}</a>
 
43
    </form>
 
44
  </div>
 
45
</div>
39
46
{% endblock %}