~deadlight/canonical-identity-provider/misc-account

« back to all changes in this revision

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

  • Committer: Karl Williams
  • Date: 2019-09-04 16:27:41 UTC
  • Revision ID: karl@deadlight.net-20190904162741-nli4p6r411k2k7bs
Convert remaining accont templates and template fragments to vanilla

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 2010 Canonical Ltd.  This software is licensed under the
 
5
Copyright 2010-2019 Canonical Ltd.  This software is licensed under the
6
6
GNU Affero General Public License version 3 (see the file  LICENSE).
7
7
{% endcomment %}
8
8
 
9
9
{% block title %}{% trans "Add an email" %}{% endblock %}
10
10
 
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 %}
12
12
 
13
13
{% block content_id %}auth{% endblock %}
14
14
 
15
15
{% block content %}
 
16
<div class="row">
 
17
  <div class="col-8">
16
18
    <p>{% blocktrans %}Enter your email address, and we will send you instructions on how to confirm your account.{% endblocktrans %}</p>
17
 
 
18
19
    <form action="{% url 'new_email' %}" method="post" name="newemailform">
19
 
        {% csrf_token %}
20
 
        <p class="input-row{% if form.newemail.errors %} haserrors{% endif %}">
21
 
            <label for="id_newemail">{% trans "Email address" %}</label>
22
 
            {{ form.newemail }}
23
 
            {% if form.newemail.errors %}
24
 
                <span class="error">{{ form.newemail.errors|first }}</span>
25
 
            {% endif %}
26
 
        </p>
27
 
        <p class="actions">
28
 
            <button type="submit" class="btn cta" name="continue" data-qa-id="send_instructions_confirm_email">
29
 
                <span>{% trans "Send instructions" %}</span>
30
 
            </button>
31
 
            <a class="cta secondary" href=".">{% trans "Cancel" %}</a>
32
 
        </p>
 
20
      {% csrf_token %}
 
21
      <p class="input-row{% if form.newemail.errors %} haserrors{% endif %}">
 
22
        <label for="id_newemail">{% trans "Email address" %}</label>
 
23
        {{ form.newemail }}
 
24
        {% if form.newemail.errors %}
 
25
        <span class="error">{{ form.newemail.errors|first }}</span>
 
26
        {% endif %}
 
27
      </p>
 
28
      <a class="p-button--base" href="/">{% trans "Cancel" %}</a>
 
29
      <button type="submit" class="p-button--primary" name="continue" data-qa-id="send_instructions_confirm_email">{% trans "Send instructions" %}</button>
33
30
    </form>
34
 
    <script type="text/javascript">
35
 
    document.newemailform.newemail.focus();
36
 
    </script>
 
31
  </div>
 
32
</div>
 
33
 
 
34
<script type="text/javascript">
 
35
  document.newemailform.newemail.focus();
 
36
</script>
37
37
{% endblock %}