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

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
{% extends "vanilla/base.html" %}
{% load i18n %}

{% comment %}
Copyright 2012-2019 Canonical Ltd.  This software is licensed under the GNU
Affero General Public License version 3 (see the file LICENSE).
{% endcomment %}

{% block html_extra %}data-qa-id="generate_new_codes"{% endblock %}

{% block title %}
  {% blocktrans %}{{ user }}'s devices{% endblocktrans %}
{% endblock %}


{% block text_title %}
  {% trans "Generate new codes" %}
{% endblock %}

{% block content %}
<div class="row">
  <div class="col-8">
    <div class="p-notification--warning">
      <p class="p-notification__response">
        {% blocktrans %}
        Confirming the new codes will <strong>invalidate</strong> all the previous codes.<br/>
        Please print this new list and <strong>destroy any old lists</strong>.
        {% endblocktrans %}
      </p>
    </div>

    <hr>

    {% include 'device/code-list.html' %}

    <hr>

    <form method="post">
      {% csrf_token %}
      <button class="p-button--positive" type="submit" data-qa-id="confirm_new_codes">{% trans "Confirm new codes" %}</button>
      {% trans "or" %}
      <a href="{% url 'device-print' device_id %}" data-qa-id="cancel_new_codes">{% trans "cancel" %}</a>
    </form>
  </div>
</div>
{% endblock %}