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 %} %}
|
2024-01-01 14:49:15 +13:00
|
|
|
{% from 'bootstrap/form.html' import render_field %}
|
|
|
|
|
|
|
|
{% block app_content %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
{% include 'admin/_nav.html' %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col col-login mx-auto">
|
|
|
|
<h3>{{ _('Edit %(user_name)s (%(display_name)s)', user_name=user.user_name, display_name=user.display_name()) }}</h3>
|
|
|
|
<form method="post" enctype="multipart/form-data" id="add_local_user_form">
|
|
|
|
{{ form.csrf_token() }}
|
|
|
|
{{ render_field(form.about) }}
|
2024-02-19 15:01:53 +13:00
|
|
|
{{ render_field(form.email) }}
|
2024-01-01 14:49:15 +13:00
|
|
|
{{ render_field(form.matrix_user_id) }}
|
|
|
|
{% if user.avatar_id %}
|
|
|
|
<img class="user_icon_big rounded-circle" src="{{ user.avatar_image() }}" width="120" height="120" />
|
|
|
|
{% endif %}
|
|
|
|
{{ render_field(form.profile_file) }}
|
|
|
|
<small class="field_hint">Provide a square image that looks good when small.</small>
|
|
|
|
{% if user.cover_id %}
|
|
|
|
<a href="{{ user.cover_image() }}"><img class="user_icon_big" src="{{ user.cover_image() }}" style="width: 300px; height: auto;" /></a>
|
|
|
|
{% endif %}
|
|
|
|
{{ render_field(form.banner_file) }}
|
|
|
|
<small class="field_hint">Provide a wide image - letterbox orientation.</small>
|
|
|
|
{{ render_field(form.bot) }}
|
2024-02-19 15:01:53 +13:00
|
|
|
{{ render_field(form.verified) }}
|
|
|
|
{{ render_field(form.banned) }}
|
2024-01-01 14:49:15 +13:00
|
|
|
{{ render_field(form.newsletter) }}
|
|
|
|
{{ render_field(form.nsfw) }}
|
|
|
|
{{ render_field(form.nsfl) }}
|
|
|
|
{{ render_field(form.searchable) }}
|
|
|
|
{{ render_field(form.indexable) }}
|
|
|
|
{{ render_field(form.manually_approves_followers) }}
|
2024-02-28 10:27:31 +13:00
|
|
|
{{ render_field(form.role) }}
|
2024-01-01 14:49:15 +13:00
|
|
|
{{ render_field(form.submit) }}
|
|
|
|
</form>
|
|
|
|
<p class="mt-4">
|
|
|
|
{% if not user.is_local() %}
|
|
|
|
<a href="{{ user.profile_id() }}" class="btn btn-primary">View original profile</a>
|
|
|
|
{% endif %}
|
|
|
|
<a href="" class="btn btn-warning confirm_first">Ban</a>
|
|
|
|
<a href="" class="btn btn-warning confirm_first">Ban + Purge</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|