~deadlight/canonical-identity-provider/password-reset

« back to all changes in this revision

Viewing changes to src/webui/templates/registration/reset_password.html

  • Committer: Karl Williams
  • Date: 2019-07-30 13:29:30 UTC
  • Revision ID: karl@deadlight.net-20190730132930-k6fr03wu8e7hvivg
Convert password reset flow 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 %}
11
11
{% block title %}{% trans "Reset password" %}{% endblock %}
12
12
 
13
13
{% block text_title %}
14
 
    <h1 class="u1-h-main u1-h-pair">{% trans "Reset password" %}</h1>
15
 
    <h2 class="u1-h-med u1-h-pair">{% trans "Step 3 of 3: Choose a new password" %}</h2>
 
14
<h1>{% trans "Reset password" %}</h1>
16
15
{% endblock %}
17
16
 
18
17
{% block content_id %}auth{% endblock %}
19
18
 
20
19
{% block content %}
21
 
    <form id="login-form" class="longfields" method="post" action="{{ action }}">
22
 
    {% csrf_token %}
23
 
    <!-- Refer to LP: #1413665 for more information about this email field. -->
24
 
    <input type="email" name="email" value="{{ email }}" style="display: none;" />
25
 
    {% include "widgets/passwords.html" with edit_account_labels=1 fields=form %}
26
 
        <p class="actions">
27
 
          <button type="submit" name="continue" class="btn cta" data-qa-id="reset_password">
28
 
            <span><span>{% trans "Continue" %}</span></span>
29
 
          </button>
30
 
        </p>
31
 
    </form>
 
20
<section class="p-strip">
 
21
  <div class="row">
 
22
    <div class="col-6">
 
23
      <h2 class="p-heading--three">{% trans "Step 3 of 3: Choose a new password" %}</h2>
 
24
      <form id="login-form" method="post" action="{{ action }}">
 
25
        {% csrf_token %}
 
26
        <!-- Refer to LP: #1413665 for more information about this email field. -->
 
27
        <input type="email" name="email" value="{{ email }}" style="display: none;" />
 
28
        {% include "vanilla/widgets/passwords.html" with edit_account_labels=1 fields=form %}
 
29
        <button type="submit" name="continue" class="p-button--positive" data-qa-id="reset_password">{% trans "Continue" %}</button>
 
30
      </form>
 
31
    </div>
 
32
  </div>
 
33
</section>
32
34
{% endblock %}
33
35
 
34
36
{% block extra_js %}