1
{% extends "base.html" %}
1
{% extends "vanilla/base.html" %}
3
3
{% load static_url %}
4
4
{% load gargoyle_tags %}
7
Copyright 2012 Canonical Ltd. This software is licensed under the GNU
7
Copyright 2012-2019 Canonical Ltd. This software is licensed under the GNU
8
8
Affero General Public License version 3 (see the file LICENSE).
11
11
{% block html_extra %}data-qa-id="device_addition"{% endblock %}
14
{% blocktrans %}{{ user }}'s devices{% endblocktrans %}
14
{% trans "Add a new authentication device" %}
18
{% block text_title %}<h1 class="u1-h-main">{% trans "Add a new authentication device" %}</h1>{% endblock %}
18
{% block text_title %}{% trans "My account" %}{% endblock %}
20
20
{% block content %}
22
<form method="post" action="">
25
<dl class="device-types">
28
<input type="radio" name="type" value="google" id="type_google" checked="checked"> {% trans "Smartphone or Tablet" %}
31
<p><label for="type_google">{% blocktrans %}Android, Apple, or Blackberry mobile device with the Google Authenticator app;
32
or Windows phone with the Auth7 app{% endblocktrans %}</label></p>
36
<input type="radio" name="type" value="yubi" id="type_yubi"> {% trans "YubiKey" %}
39
<p><label for="type_yubi">{% blocktrans %}USB YubiKey one time password generator{% endblocktrans %}</label></p>
43
<input type="radio" name="type" value="generic" id="type_generic"> {% trans "Generic HOTP/TOTP device" %}
46
<p><label for="type_generic">{% blocktrans %}Any other OATH HOTP/TOTP compatible device{% endblocktrans %}</label></p>
50
<input type="radio" name="type" value="paper" id="type_paper"> {% trans "Printable Backup Codes" %}
53
<p><label for="type_paper">{% blocktrans %}A list of backup codes to
54
print.{% endblocktrans %}</label></p>
60
<button class="btn cta" type="submit" data-qa-id="add_device_from_type">
61
<span>{% trans "Add device" %}</span>
63
<a class="cta secondary" data-qa-id="cancel_add_device_from_type" href="{{ device_list_path }}">{% trans "Cancel" %}</a>
66
{% blocktrans with "twofactor_faq"|static_url as 2FFAQ %}
67
The <a href="{{2FFAQ}}#Devices">2-Factor Auth FAQ</a>
68
has details on compatible devices.
21
<h2>{% trans "Add a new authentication device" %}</h2>
22
<form method="post" action="">
26
<li class="p-list__item">
29
<input type="radio" name="type" value="google" id="type_google" checked="checked">
30
<label for="type_google">{% trans "Smartphone or Tablet" %}</label>
33
<p>{% blocktrans %}Android, Apple, or Blackberry mobile device with the Google Authenticator app; or Windows phone with the Auth7 app{% endblocktrans %}</p>
37
<li class="p-list__item">
39
<div class="col-3 col-medium-3">
40
<input type="radio" name="type" value="yubi" id="type_yubi">
41
<label for="type_yubi">{% trans "YubiKey" %}</label>
43
<div class="col-5 col-medium-3">
44
<p>{% blocktrans %}USB YubiKey one time password generator{% endblocktrans %}</p>
48
<li class="p-list__item">
50
<div class="col-3 col-medium-3">
51
<input type="radio" name="type" value="generic" id="type_generic">
52
<label for="type_generic">{% trans "Generic HOTP/TOTP device" %}</label>
54
<div class="col-5 col-medium-3">
55
<p>{% blocktrans %}Any other OATH HOTP/TOTP compatible device{% endblocktrans %}</p>
59
<li class="p-list__item">
61
<div class="col-3 col-medium-3">
62
<input type="radio" name="type" value="paper" id="type_paper">
63
<label for="type_paper">{% trans "Printable Backup Codes" %}</label>
65
<div class="col-5 col-medium-3">
66
<p>{% blocktrans %}A list of backup codes to
67
print.{% endblocktrans %}</p>
73
<button class="p-button--positive" type="submit" data-qa-id="add_device_from_type">{% trans "Add device" %}</button>
74
<a class="p-button--neutral" data-qa-id="cancel_add_device_from_type" href="{{ device_list_path }}">{% trans "Cancel" %}</a>
76
{% blocktrans with "twofactor_faq"|static_url as 2FFAQ %}
77
The <a href="{{2FFAQ}}#Devices">2-Factor Auth FAQ</a>
78
has details on compatible devices.