2024-02-07 17:31:12 +13:00
|
|
|
{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %}
|
|
|
|
{% extends 'themes/' + theme() + '/base.html' %}
|
|
|
|
{% else %}
|
|
|
|
{% extends "base.html" %}
|
|
|
|
{% endif %} %}
|
2023-12-14 20:24:08 +13:00
|
|
|
{% from 'bootstrap/form.html' import render_field %}
|
2023-10-07 21:32:19 +13:00
|
|
|
|
|
|
|
{% block app_content %}
|
|
|
|
<div class="row">
|
2023-11-09 21:32:29 +13:00
|
|
|
<div class="col main_pane">
|
2023-10-07 21:32:19 +13:00
|
|
|
<nav aria-label="breadcrumb" id="breadcrumb_nav" title="Navigation">
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li class="breadcrumb-item"><a href="/">{{ _('Home') }}</a></li>
|
2024-01-09 20:44:08 +13:00
|
|
|
<li class="breadcrumb-item"><a href="/u/{{ user.link() }}">{{ user.display_name() }}</a></li>
|
2023-10-07 21:32:19 +13:00
|
|
|
<li class="breadcrumb-item active">{{ _('Edit profile') }}</li>
|
|
|
|
</ol>
|
|
|
|
</nav>
|
2023-12-14 20:24:08 +13:00
|
|
|
<h1 class="mt-2">{{ _('Edit profile of %(name)s', name=user.user_name) }}</h1>
|
2024-02-02 15:30:03 +13:00
|
|
|
<form method='post' enctype="multipart/form-data" role="form" autocomplete="off">
|
2023-12-14 20:24:08 +13:00
|
|
|
{{ form.csrf_token() }}
|
2024-01-01 14:49:15 +13:00
|
|
|
{{ render_field(form.title) }}
|
2023-12-14 20:24:08 +13:00
|
|
|
{{ render_field(form.email) }}
|
|
|
|
{{ render_field(form.password_field) }}
|
|
|
|
<hr />
|
|
|
|
{{ render_field(form.about) }}
|
2024-02-02 15:30:03 +13:00
|
|
|
{{ render_field(form.matrixuserid) }}
|
2023-12-28 21:00:26 +13:00
|
|
|
<small class="field_hint">e.g. @something:matrix.org. Include leading @ and use : before server</small>
|
2023-12-14 20:24:08 +13:00
|
|
|
{{ render_field(form.profile_file) }}
|
2024-01-09 20:44:08 +13:00
|
|
|
<small class="field_hint">Provide a square image that looks good when small.</small>
|
2023-12-14 20:24:08 +13:00
|
|
|
{{ render_field(form.banner_file) }}
|
2024-01-09 20:44:08 +13:00
|
|
|
<small class="field_hint">Provide a wide image - letterbox orientation.</small>
|
2023-12-14 20:24:08 +13:00
|
|
|
<hr />
|
|
|
|
{{ render_field(form.bot) }}
|
|
|
|
{{ render_field(form.submit) }}
|
2023-10-07 21:32:19 +13:00
|
|
|
</form>
|
2023-12-29 17:32:35 +13:00
|
|
|
<p class="mt-4 pt-4">
|
|
|
|
<a class="btn btn-warning" href="{{ url_for('user.delete_account') }}">{{ _('Delete account') }}</a>
|
|
|
|
</p>
|
2023-10-07 21:32:19 +13:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|