stages/password: make template inherit form_with_user
This commit is contained in:
parent
3114d064ed
commit
37fe637422
|
@ -1,39 +1,10 @@
|
||||||
|
{% extends 'login/form_with_user.html' %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load passbook_utils %}
|
{% load passbook_utils %}
|
||||||
|
|
||||||
<header class="pf-c-login__main-header">
|
{% block beneath_form %}
|
||||||
<h1 class="pf-c-title pf-m-3xl">
|
|
||||||
{% block card_title %}
|
|
||||||
{% trans title %}
|
|
||||||
{% endblock %}
|
|
||||||
</h1>
|
|
||||||
</header>
|
|
||||||
<div class="pf-c-login__main-body">
|
|
||||||
{% block card %}
|
|
||||||
<form method="POST" class="pf-c-form">
|
|
||||||
<div class="pf-c-form__group">
|
|
||||||
<label class="pf-c-form__label" for="{{ field.name }}-{{ forloop.counter0 }}">
|
|
||||||
<span class="pf-c-form__label-text">{% trans "Username" %}</span>
|
|
||||||
</label>
|
|
||||||
<div class="form-control-static">
|
|
||||||
<div class="left">
|
|
||||||
<img class="pf-c-avatar" src="{% gravatar user.email %}" alt="">
|
|
||||||
{{ user.username }}
|
|
||||||
</div>
|
|
||||||
<div class="right">
|
|
||||||
<a href="{% url 'passbook_flows:cancel' %}">{% trans 'Not you?' %}</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% include 'partials/form.html' %}
|
|
||||||
|
|
||||||
{% if recovery_flow %}
|
{% if recovery_flow %}
|
||||||
<a href="{% url 'passbook_flows:flow-executor' flow_slug=recovery_flow.slug %}">{% trans 'Forgot password?' %}</a>
|
<a href="{% url 'passbook_flows:flow-executor' flow_slug=recovery_flow.slug %}">{% trans 'Forgot password?' %}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="pf-c-form__group pf-m-action">
|
|
||||||
<button class="pf-c-button pf-m-primary pf-m-block" type="submit">{% trans primary_action %}</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
|
||||||
|
|
Reference in a new issue