2023-10-07 21:32:19 +13:00
{% extends "base.html" %}
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-01 14:49:15 +13:00
< li class = "breadcrumb-item" > < a href = "/u/{{ user.user_name }}" > {{ 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 >
< form method = 'post' enctype = "multipart/form-data" >
{{ 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) }}
2023-12-28 21:00:26 +13:00
{{ render_field(form.matrix_user_id) }}
< 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-07 14:36:55 +13:00
< small class = "field_hint" > Provide a square image that looks good when small. < strong > Bug: file extension must be lower case< / strong > , for some reason< / small >
2023-12-14 20:24:08 +13:00
{{ render_field(form.banner_file) }}
2024-01-07 14:36:55 +13:00
< small class = "field_hint" > Provide a wide image - letterbox orientation. < strong > Bug: file extension must be lower case< / strong > < / 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 %}