Merge lp:~deadlight/canonical-identity-provider/misc-account into lp:~deadlight/canonical-identity-provider/vanilla

Proposed by Karl Williams
Status: Merged
Merged at revision: 1721
Proposed branch: lp:~deadlight/canonical-identity-provider/misc-account
Merge into: lp:~deadlight/canonical-identity-provider/vanilla
Diff against target: 530 lines (+170/-153)
11 files modified
src/webui/templates/account/account_deleted.html (+21/-19)
src/webui/templates/account/confirm_email_invalidation.html (+18/-19)
src/webui/templates/account/confirm_new_email.html (+14/-23)
src/webui/templates/account/deactivated.html (+10/-6)
src/webui/templates/account/delete_email.html (+14/-19)
src/webui/templates/account/edit.html (+4/-2)
src/webui/templates/account/invalidate_email.html (+16/-9)
src/webui/templates/account/new_email.html (+23/-21)
src/webui/templates/account/suspended.html (+10/-6)
src/webui/templates/account/user_logged_out_no_valid_emails.html (+12/-8)
src/webui/templates/device/generate-codes.html (+28/-21)
To merge this branch: bzr merge lp:~deadlight/canonical-identity-provider/misc-account
Reviewer Review Type Date Requested Status
Anthony Dillon (community) Approve
Review via email: mp+372325@code.launchpad.net

Description of the change

Updated the following small templates:
 src/webui/templates/account/invalidate_email.html
src/webui/templates/account/delete_email.html
src/webui/templates/account/new_email.html
src/webui/templates/account/account_deleted.html
src/webui/templates/account/user_logged_out_no_valid_emails.html
src/webui/templates/account/suspended.html
src/webui/templates/account/deactivated.html
src/webui/templates/account/confirm_new_email.html
src/webui/templates/account/confirm_email_invalidation.html
src/webui/templates/device/generate-codes.html

Also fixed the radio buttons on the main user details page.

To post a comment you must log in.
Revision history for this message
Anthony Dillon (ya-bo-ng) wrote :

Few comments in the code

review: Needs Fixing
1720. By Karl Williams

Update notifcation and validation markup

Revision history for this message
Anthony Dillon (ya-bo-ng) wrote :

Looks good, thanks +1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/webui/templates/account/account_deleted.html'
--- src/webui/templates/account/account_deleted.html 2013-11-05 14:09:37 +0000
+++ src/webui/templates/account/account_deleted.html 2019-09-05 13:35:58 +0000
@@ -1,33 +1,35 @@
1{% extends "base.html" %}1{% extends "vanilla/base.html" %}
2{% load i18n %}2{% load i18n %}
33
4{% comment %}4{% comment %}
5Copyright 2013 Canonical Ltd. This software is licensed under the5Copyright 2013-2019 Canonical Ltd. This software is licensed under the
6GNU Affero General Public License version 3 (see the file LICENSE).6GNU Affero General Public License version 3 (see the file LICENSE).
7{% endcomment %}7{% endcomment %}
88
9{% block title %}9{% block title %}
10 {% blocktrans %}Account Deleted{% endblocktrans %}10 {% blocktrans %}Account Deleted{% endblocktrans %}
11{% endblock %}11{% endblock %}
1212
13{% block text_title %}13{% block text_title %}
14 <h1 class="main">{% trans "Account Deleted" %}</h1>14 <h1>{% trans "Account Deleted" %}</h1>
15{% endblock %}15{% endblock %}
1616
17{% block content %}17{% block content %}
18<p>{% blocktrans %}Your Ubuntu One account has now been deleted.18 <div class="row">
19All emails associated with the account have been removed. 19 <div class="col-8">
20You can sign up for a new account with any of those emails if you want.20 <p>{% blocktrans %}Your Ubuntu One account has now been deleted.
21{% endblocktrans %}</p>21 All emails associated with the account have been removed.
2222 You can sign up for a new account with any of those emails if you want.
23<p>{% blocktrans %}All authentication tokens associated with the account have23 {% endblocktrans %}</p>
24also been deleted. That means any apps using that account will have to login24 <p>{% blocktrans %}All authentication tokens associated with the account have
25again with a different account.25 also been deleted. That means any apps using that account will have to login
26{% endblocktrans %}</p>26 again with a different account.
2727 {% endblocktrans %}</p>
28<p>{% blocktrans %}The openid identifier associated with the account has28 <p>{% blocktrans %}The openid identifier associated with the account has
29been reserved so that it cannot be given out to anyone else. This is so that29 been reserved so that it cannot be given out to anyone else. This is so that
30no-one can impersonate you using openid. If you sign up for a new account30 no-one can impersonate you using openid. If you sign up for a new account
31you will have a different openid identifier.31 you will have a different openid identifier.
32{% endblocktrans %}</p>32 {% endblocktrans %}</p>
33 </div>
34 </div>
33{% endblock %}35{% endblock %}
3436
=== modified file 'src/webui/templates/account/confirm_email_invalidation.html'
--- src/webui/templates/account/confirm_email_invalidation.html 2018-09-07 16:32:46 +0000
+++ src/webui/templates/account/confirm_email_invalidation.html 2019-09-05 13:35:58 +0000
@@ -1,32 +1,31 @@
1{% extends "base.html" %}1{% extends "vanilla/base.html" %}
2{% load i18n %}2{% load i18n %}
33
4{% comment %}4{% comment %}
5Copyright 2010-2013 Canonical Ltd. This software is licensed under the5Copyright 2010-2019 Canonical Ltd. This software is licensed under the
6GNU Affero General Public License version 3 (see the file LICENSE).6GNU Affero General Public License version 3 (see the file LICENSE).
7{% endcomment %}7{% endcomment %}
88
9{% block title %}{% trans "Email invalidation" %}{% endblock %}9{% block title %}{% trans "Email invalidation" %}{% endblock %}
1010
11{% block text_title %}<h1 class="u1-h-main">{% trans "Email invalidation" %}</h1>{% endblock %}11{% block text_title %}<h1>{% trans "Email invalidation" %}</h1>{% endblock %}
1212
13{% block content %}13{% block content %}
1414<div class="row">
15<div class="info">15 <div class="col-8">
16 <p>{% blocktrans %}<strong>WARNING:</strong> Invalidating an e-mail address will prevent logging in to Ubuntu One using that address.{% endblocktrans %}</p>16 <div class="p-notification--caution">
17 <p>{% blocktrans %}If you intended to <em>validate</em> the address instead, please check the confirmation e-mail you received and click on the first URL to confirm the address.{% endblocktrans %}</p>17 <p class="p-notification__response">
18 <p>{% blocktrans %}Are you sure you want to <strong>invalidate</strong> the email address {{ email }}?{% endblocktrans %}</p>18 {% blocktrans %}<span class="p-notification__status">WARNING:</span> Invalidating an e-mail address will prevent logging in to Ubuntu One using that address.{% endblocktrans %}
19</div>19 </p>
20<div class="actions">20 </div>
21 <form action="" method="POST">21 <p>{% blocktrans %}If you intended to <em>validate</em> the address instead, please check the confirmation e-mail you received and click on the first URL to confirm the address.{% endblocktrans %}</p>
22 {% csrf_token %}22 <p>{% blocktrans %}Are you sure you want to <strong>invalidate</strong> the email address {{ email }}?{% endblocktrans %}</p>
23 <p>23 <form action="" method="POST">
24 <button type="submit" class="btn cta" name="invalidate" data-qa-id="confirm_email_invalidation">24 {% csrf_token %}
25 <span>{% trans "Yes, invalidate" %}</span>25 <button type="submit" class="p-button--negative" name="invalidate" data-qa-id="confirm_email_invalidation">{% trans "Yes, invalidate" %}</button>
26 </button>26 {% include "common/cancel_link.html" %}
27 {% include "common/cancel_link.html" %}27 </form>
28</p>28 </div>
29</form>
30</div>29</div>
3130
32{% endblock %}31{% endblock %}
3332
=== modified file 'src/webui/templates/account/confirm_new_email.html'
--- src/webui/templates/account/confirm_new_email.html 2016-12-02 21:16:07 +0000
+++ src/webui/templates/account/confirm_new_email.html 2019-09-05 13:35:58 +0000
@@ -1,8 +1,8 @@
1{% extends "base.html" %}1{% extends "vanilla/base.html" %}
2{% load i18n %}2{% load i18n %}
33
4{% comment %}4{% comment %}
5Copyright 2010 Canonical Ltd. This software is licensed under the5Copyright 2010-2019 Canonical Ltd. This software is licensed under the
6GNU Affero General Public License version 3 (see the file LICENSE).6GNU Affero General Public License version 3 (see the file LICENSE).
7{% endcomment %}7{% endcomment %}
88
@@ -10,37 +10,28 @@
1010
11{% block title %}{% trans "Complete email address validation" %}{% endblock %}11{% block title %}{% trans "Complete email address validation" %}{% endblock %}
1212
13{% block text_title %}<h1 class="u1-h-main">{% blocktrans %}Validate {{ email }}?{% endblocktrans %}</h1>{% endblock %}13{% block text_title %}<h1>{% blocktrans %}Validate {{ email }}?{% endblocktrans %}</h1>{% endblock %}
1414
15{% block content_id %}auth{% endblock %}15{% block content_id %}auth{% endblock %}
1616
17{% block content %}17{% block content %}
18<p>{% blocktrans %}Are you sure you want to confirm and validate this email address?{% endblocktrans %}</p>18<div class="row">
1919 <p>{% blocktrans %}Are you sure you want to confirm and validate this email address?{% endblocktrans %}</p>
20<div class="actions">
21 <form action="" method="post">20 <form action="" method="post">
22 {% csrf_token %}21 {% csrf_token %}
23
24 {% if captcha_required %}22 {% if captcha_required %}
25 <p class="captcha" id="captcha">23 <p class="captcha" id="captcha">
26 {% if captcha_error_message %}24 {% if captcha_error_message %}
27 <span class="error">25 <span class="error">
28 {{ captcha_error_message }}26 {{ captcha_error_message }}
29 </span>27 </span>
30 {% endif %}28 {% endif %}
31 {% include "widgets/recaptcha-v2.html" %}29 {% include "widgets/recaptcha-v2.html" %}
32 </p>30 </p>
33 {% endif %}31 {% endif %}
3432 <input type="hidden" name="post" value="yes" />
35 <p>33 <a class="p-button--base" href="{% if token %}/{{ token }}{% endif %}/" data-qa-id="cancel_email_validation">{% trans "Cancel" %}</a>
36 <input type="hidden" name="post" value="yes" />34 <button type="submit" name="continue" class="p-button--positive" data-qa-id="confirm_email_validation">{% trans "Yes, I'm sure" %}</button>
37 <button type="submit" name="continue" class="btn cta" data-qa-id="confirm_email_validation">
38 <span>{% trans "Yes, I'm sure" %}</span>
39 </button>
40 <a class="cta secondary" href="{% if token %}/{{ token }}{% endif %}/" data-qa-id="cancel_email_validation">{% trans "Cancel" %}</a>
41 </p>
42 </form>35 </form>
43</div>36</div>
44
45<br style="clear: both" />
46{% endblock %}37{% endblock %}
4738
=== modified file 'src/webui/templates/account/deactivated.html'
--- src/webui/templates/account/deactivated.html 2014-12-09 21:41:56 +0000
+++ src/webui/templates/account/deactivated.html 2019-09-05 13:35:58 +0000
@@ -2,18 +2,22 @@
2{% load i18n %}2{% load i18n %}
33
4{% comment %}4{% comment %}
5Copyright 2010 Canonical Ltd. This software is licensed under the5Copyright 2010-2019 Canonical Ltd. This software is licensed under the
6GNU Affero General Public License version 3 (see the file LICENSE).6GNU Affero General Public License version 3 (see the file LICENSE).
7{% endcomment %}7{% endcomment %}
88
9{% block title %}{% trans "Account deactivated" %}{% endblock %}9{% block title %}{% trans "Account deactivated" %}{% endblock %}
1010
11{% block text_title %}<h1 class="u1-h-main">{% trans "Account deactivated" %}</h1>{% endblock %}11{% block text_title %}<h1>{% trans "Account deactivated" %}</h1>{% endblock %}
1212
13{% block content %}13{% block content %}
14<div>14<div class="row">
15 <p>15 <div class="col-8">
16 {% blocktrans %}Your account has been deactivated.{% endblocktrans %}16 <div class="p-notification--negative">
17 </p>17 <p class="p-notification__response">
18 {% blocktrans %}Your account has been deactivated.{% endblocktrans %}
19 </p>
20 </div>
21 </div>
18</div>22</div>
19{% endblock %}23{% endblock %}
2024
=== modified file 'src/webui/templates/account/delete_email.html'
--- src/webui/templates/account/delete_email.html 2014-12-09 21:41:56 +0000
+++ src/webui/templates/account/delete_email.html 2019-09-05 13:35:58 +0000
@@ -1,35 +1,30 @@
1{% extends "base.html" %}1{% extends "vanilla/base.html" %}
2{% load i18n %}2{% load i18n %}
33
4{% comment %}4{% comment %}
5Copyright 2013 Canonical Ltd. This software is licensed under the5Copyright 2013-2019 Canonical Ltd. This software is licensed under the
6GNU Affero General Public License version 3 (see the file LICENSE).6GNU Affero General Public License version 3 (see the file LICENSE).
7{% endcomment %}7{% endcomment %}
88
9{% block html_extra %}data-qa-id="delete_email"{% endblock %}9{% block html_extra %}data-qa-id="delete_email"{% endblock %}
1010
11{% block title %}11{% block title %}
12 {% trans "Delete unverified email" %}12 {% trans "Delete unverified email" %}
13{% endblock %}13{% endblock %}
1414
15{% block text_title %}<h1 class="u1-h-main">{% blocktrans %}Delete {{ email }}?{% endblocktrans %}</h1>{% endblock %}15{% block text_title %}<h1>{% blocktrans %}Delete {{ email }}?{% endblocktrans %}</h1>{% endblock %}
1616
17{% block content_id %}auth{% endblock %}17{% block content_id %}auth{% endblock %}
1818
19{% block content %}19{% block content %}
20 <div class="info">20 <div class="row">
21 <p>{% blocktrans %}Are you sure you want to delete this email address?{% endblocktrans %}</p>21 <div class="col-8">
22 </div>22 <p>{% blocktrans %}Are you sure you want to delete this email address?{% endblocktrans %}</p>
23 <div class="actions">23 <form action="" method="POST">
24 <form action="" method="POST">24 {% csrf_token %}
25 {% csrf_token %}25 <button type="submit" class="p-button--negative" name="delete" data-qa-id="confirm_delete_email">{% trans "Yes, delete" %}</button>
26 <p>26 {% include "common/cancel_link.html" %}
27 <button type="submit" class="btn cta" name="delete" data-qa-id="confirm_delete_email">27 </form>
28 <span>{% trans "Yes, delete" %}</span>28 </div>
29 </button>29 </div>
30 {% include "common/cancel_link.html" %}
31 </p>
32 </form>
33 </div>
34 <br style="clear: both" />
35{% endblock %}30{% endblock %}
3631
=== modified file 'src/webui/templates/account/edit.html'
--- src/webui/templates/account/edit.html 2019-08-21 16:06:42 +0000
+++ src/webui/templates/account/edit.html 2019-09-05 13:35:58 +0000
@@ -107,9 +107,11 @@
107 <div class="p-strip is-shallow">107 <div class="p-strip is-shallow">
108 <hr>108 <hr>
109 </div>109 </div>
110 <h4 class="legend" data-qa-id="authentication_devices">{% trans "Authentication devices" %}</h4>110
111 <div class="p-form-validation{% if form.twofactor_required.errors %} is-errors{% endif %}">111 <div class="p-form-validation{% if form.twofactor_required.errors %} is-errors{% endif %}">
112 {{ form.twofactor_required }}112 <h4 class="legend" data-qa-id="authentication_devices">{% trans "Authentication devices" %}</h4>
113 <input type="radio" name="twofactor_required" value="True" {% if form.twofactor_required.value == True %}checked{% endif %} id="id_twofactor_required_0"><label for="id_twofactor_required_0">Always require an authentication device</label>
114 <input type="radio" name="twofactor_required" value="False" id="id_twofactor_required_1" {% if form.twofactor_required.value == False %}checked{% endif %}><label for="id_twofactor_required_1">Require only when logging in to sites that request it</label>
113 {% if form.twofactor_required.errors %}115 {% if form.twofactor_required.errors %}
114 <p class="p-form-validation__message">116 <p class="p-form-validation__message">
115 <strong>Error:</strong> {{ form.twofactor_required.errors|first }}117 <strong>Error:</strong> {{ form.twofactor_required.errors|first }}
116118
=== modified file 'src/webui/templates/account/invalidate_email.html'
--- src/webui/templates/account/invalidate_email.html 2014-12-09 21:41:56 +0000
+++ src/webui/templates/account/invalidate_email.html 2019-09-05 13:35:58 +0000
@@ -1,20 +1,27 @@
1{% extends "base.html" %}1{% extends "vanilla/base.html" %}
2{% load i18n %}2{% load i18n %}
33
4{% comment %}4{% comment %}
5Copyright 2010-2013 Canonical Ltd. This software is licensed under the5Copyright 2010-2019 Canonical Ltd. This software is licensed under the
6GNU Affero General Public License version 3 (see the file LICENSE).6GNU Affero General Public License version 3 (see the file LICENSE).
7{% endcomment %}7{% endcomment %}
88
9{% block title %}{% trans "Email invalidated" %}{% endblock %}9{% block title %}{% trans "Email invalidated" %}{% endblock %}
1010
11{% block text_title %}<h1 class="u1-h-main">{% trans "Email invalidated" %}</h1>{% endblock %}11{% block text_title %}<h1>{% trans "Email invalidated" %}</h1>{% endblock %}
1212
13{% block content %}13{% block content %}
14<p>{% blocktrans %}14 <div class="row">
15The email {{ email }} was successfully invalidated in our system.15 <div class="p-notification" id="notification">
16{% endblocktrans %}</p>16 <p class="p-notification__response">
17<p>{% blocktrans %}17 {% blocktrans %}
18Thank you for helping us provide a better service!18 The email {{ email }} was successfully invalidated in our system.
19{% endblocktrans %}</p>19 {% endblocktrans %}
20 </p>
21 <button class="p-icon--close" aria-label="Close notification" onclick="closeNotification('notification')">Close</button>
22 </div>
23 <p>{% blocktrans %}
24 Thank you for helping us provide a better service!
25 {% endblocktrans %}</p>
26 </div>
20{% endblock %}27{% endblock %}
2128
=== modified file 'src/webui/templates/account/new_email.html'
--- src/webui/templates/account/new_email.html 2014-12-09 21:41:56 +0000
+++ src/webui/templates/account/new_email.html 2019-09-05 13:35:58 +0000
@@ -1,37 +1,39 @@
1{% extends "base.html" %}1{% extends "vanilla/base.html" %}
2{% load i18n %}2{% load i18n %}
33
4{% comment %}4{% comment %}
5Copyright 2010 Canonical Ltd. This software is licensed under the5Copyright 2010-2019 Canonical Ltd. This software is licensed under the
6GNU Affero General Public License version 3 (see the file LICENSE).6GNU Affero General Public License version 3 (see the file LICENSE).
7{% endcomment %}7{% endcomment %}
88
9{% block title %}{% trans "Add an email" %}{% endblock %}9{% block title %}{% trans "Add an email" %}{% endblock %}
1010
11{% block text_title %}<h1 class="u1-h-main">{% trans "Add an email address to your account" %}</h1>{% endblock %}11{% block text_title %}<h1>{% trans "Add an email address to your account" %}</h1>{% endblock %}
1212
13{% block content_id %}auth{% endblock %}13{% block content_id %}auth{% endblock %}
1414
15{% block content %}15{% block content %}
16<div class="row">
17 <div class="col-8">
16 <p>{% blocktrans %}Enter your email address, and we will send you instructions on how to confirm your account.{% endblocktrans %}</p>18 <p>{% blocktrans %}Enter your email address, and we will send you instructions on how to confirm your account.{% endblocktrans %}</p>
17
18 <form action="{% url 'new_email' %}" method="post" name="newemailform">19 <form action="{% url 'new_email' %}" method="post" name="newemailform">
19 {% csrf_token %}20 {% csrf_token %}
20 <p class="input-row{% if form.newemail.errors %} haserrors{% endif %}">21 <div class="p-form-validation{% if form.newemail.errors %} is-error{% endif %}">
21 <label for="id_newemail">{% trans "Email address" %}</label>22 <label for="id_newemail">{% trans "Email address" %}</label>
22 {{ form.newemail }}23 {{ form.newemail }}
23 {% if form.newemail.errors %}24 {% if form.newemail.errors %}
24 <span class="error">{{ form.newemail.errors|first }}</span>25 <p class="p-form-validation__message" id="input-error-message-inline" role="alert">
25 {% endif %}26 <strong>Error:</strong> {{ form.newemail.errors|first }}
26 </p>27 </p>
27 <p class="actions">28 {% endif %}
28 <button type="submit" class="btn cta" name="continue" data-qa-id="send_instructions_confirm_email">29 </div>
29 <span>{% trans "Send instructions" %}</span>30 <a class="p-button--base" href="/">{% trans "Cancel" %}</a>
30 </button>31 <button type="submit" class="p-button--positive" name="continue" data-qa-id="send_instructions_confirm_email">{% trans "Send instructions" %}</button>
31 <a class="cta secondary" href=".">{% trans "Cancel" %}</a>
32 </p>
33 </form>32 </form>
34 <script type="text/javascript">33 </div>
35 document.newemailform.newemail.focus();34</div>
36 </script>35
36<script type="text/javascript">
37 document.newemailform.newemail.focus();
38</script>
37{% endblock %}39{% endblock %}
3840
=== modified file 'src/webui/templates/account/suspended.html'
--- src/webui/templates/account/suspended.html 2014-12-09 21:41:56 +0000
+++ src/webui/templates/account/suspended.html 2019-09-05 13:35:58 +0000
@@ -2,7 +2,7 @@
2{% load i18n %}2{% load i18n %}
33
4{% comment %}4{% comment %}
5Copyright 2010 Canonical Ltd. This software is licensed under the5Copyright 2010-2019 Canonical Ltd. This software is licensed under the
6GNU Affero General Public License version 3 (see the file LICENSE).6GNU Affero General Public License version 3 (see the file LICENSE).
7{% endcomment %}7{% endcomment %}
88
@@ -10,12 +10,16 @@
1010
11{% block title %}{% trans "Account suspended" %}{% endblock %}11{% block title %}{% trans "Account suspended" %}{% endblock %}
1212
13{% block text_title %}<h1 class="u1-h-main">{% trans "Account suspended" %}</h1>{% endblock %}13{% block text_title %}<h1>{% trans "Account suspended" %}</h1>{% endblock %}
1414
15{% block content %}15{% block content %}
16<div>16<div class="row">
17 <p>17 <div class="col-8">
18 {% blocktrans %}Your account has been suspended.{% endblocktrans %}18 <div class="p-notification--negative">
19 </p>19 <p class="p-notification__response">
20 {% blocktrans %}Your account has been suspended.{% endblocktrans %}
21 </p>
22 </div>
23 </div>
20</div>24</div>
21{% endblock %}25{% endblock %}
2226
=== modified file 'src/webui/templates/account/user_logged_out_no_valid_emails.html'
--- src/webui/templates/account/user_logged_out_no_valid_emails.html 2014-12-09 21:41:56 +0000
+++ src/webui/templates/account/user_logged_out_no_valid_emails.html 2019-09-05 13:35:58 +0000
@@ -1,21 +1,25 @@
1{% extends "base.html" %}1{% extends "vanilla/base.html" %}
2{% load i18n %}2{% load i18n %}
3{% load static_url %}3{% load static_url %}
44
5{% comment %}5{% comment %}
6Copyright 2010-2013 Canonical Ltd. This software is licensed under the6Copyright 2010-2019 Canonical Ltd. This software is licensed under the
7GNU Affero General Public License version 3 (see the file LICENSE).7GNU Affero General Public License version 3 (see the file LICENSE).
8{% endcomment %}8{% endcomment %}
99
10{% block title %}{% trans "Your account does not have a valid email address" %}{% endblock %}10{% block title %}{% trans "Your account does not have a valid email address" %}{% endblock %}
1111
12{% block text_title %}<h1 class="u1-h-main">{% trans "Your account does not have a valid email address" %}</h1>{% endblock %}12{% block text_title %}<h1>{% trans "Your account does not have a valid email address" %}</h1>{% endblock %}
1313
14{% block content %}14{% block content %}
15<p>{% blocktrans %}15<div class="row">
16You have no valid email addresses linked to your account, so it was deactivated.16 <div class="col-8">
17To reactivate the account please contact our support team at:{% endblocktrans %}17 <p>{% blocktrans %}
18<a href="{{ 'support_form'|static_url }}">{{ 'support_form'|static_url }}</a>18 You have no valid email addresses linked to your account, so it was deactivated.
19</p>19 To reactivate the account please contact our support team at:{% endblocktrans %}
20 <a href="{{ 'support_form'|static_url }}">{{ 'support_form'|static_url }}</a>
21 </p>
22 </div>
23</div>
2024
21{% endblock %}25{% endblock %}
2226
=== modified file 'src/webui/templates/device/generate-codes.html'
--- src/webui/templates/device/generate-codes.html 2013-06-12 16:20:01 +0000
+++ src/webui/templates/device/generate-codes.html 2019-09-05 13:35:58 +0000
@@ -1,8 +1,8 @@
1{% extends "base.html" %}1{% extends "vanilla/base.html" %}
2{% load i18n %}2{% load i18n %}
33
4{% comment %}4{% comment %}
5Copyright 2012 Canonical Ltd. This software is licensed under the GNU5Copyright 2012-2019 Canonical Ltd. This software is licensed under the GNU
6Affero General Public License version 3 (see the file LICENSE).6Affero General Public License version 3 (see the file LICENSE).
7{% endcomment %}7{% endcomment %}
88
@@ -14,26 +14,33 @@
1414
1515
16{% block text_title %}16{% block text_title %}
17<h1 class="main">{% trans "Generate new codes" %}</h1>17<h1>{% trans "Generate new codes" %}</h1>
18{% endblock %}18{% endblock %}
1919
20{% block content %}20{% block content %}
2121<div class="row">
22<h3>{% blocktrans %}22 <div class="col-8">
23Confirming the new codes will <strong>invalidate</strong> all the previous codes.<br/>23 <div class="p-notification--warning">
24Please print this new list and <strong>destroy any old lists</strong>.24 <p class="p-notification__response">
25{% endblocktrans %}</h3>25 {% blocktrans %}
2626 Confirming the new codes will <strong>invalidate</strong> all the previous codes.<br/>
27{% include 'device/code-list.html' %}27 Please print this new list and <strong>destroy any old lists</strong>.
2828 {% endblocktrans %}
29<form method="post">29 </p>
30 {% csrf_token %}30 </div>
31 <p>31
32 <button class="btn" type="submit" data-qa-id="confirm_new_codes">32 <hr>
33 <span><span>{% trans "Confirm new codes" %}</span></span>33
34 </button>34 {% include 'device/code-list.html' %}
35 {% trans "or" %}35
36 <a href="{% url 'device-print' device_id %}" data-qa-id="cancel_new_codes">{% trans "cancel" %}</a>36 <hr>
37 </p>37
38</form>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{% endblock %}46{% endblock %}

Subscribers

People subscribed via source and target branches

to all changes: