rainbox.email/views/account.njk

31 lines
1.0 KiB
Plaintext

{% extends 'layouts/base.njk' %}
{% set title = 'ALDAP - Welcome to the toot.party auth center!' %}
{% block body %}
<div class="container">
<main class="panel">
<h1>My account</h1>
<p>Name: {{ user.name }}</p>
<section class="sub-panel">
<h2>Email addresses</h2>
{% for email in emails %}
{% if email.main %}
<p>Main email: {{ email.email }}</p>
{% else %}
<p>Recovery email: {{ email.email }}</p>
{% endif %}
{% endfor %}
<form action="{{ route('add-recovery-email') }}" method="POST">
{{ macros.field(_locals, 'email', 'email', null, 'Choose a safe email address', 'An email we can use to identify you in case you lose access to your account', 'required') }}
<button type="submit">Add recovery email</button>
</form>
</section>
</main>
</div>
{% endblock %}