You've already forked snikket-web-portal
33 lines
1.3 KiB
HTML
33 lines
1.3 KiB
HTML
{% extends "app.html" %}
|
|
{% from "library.j2" import standard_button, form_button, avatar with context %}
|
|
{% block content %}
|
|
<h1>{% trans %}Update your profile{% endtrans %}</h1>
|
|
<div class="form layout-expanded"><form method="POST" enctype="multipart/form-data">
|
|
<h2 class="form-title">{% trans %}Profile{% endtrans %}</h2>
|
|
{{ form.csrf_token }}
|
|
<div class="f-ebox">
|
|
{{ form.nickname.label }}
|
|
{{ form.nickname(placeholder=user_info.username) }}
|
|
</div>
|
|
<div class="f-ebox">
|
|
{{ form.avatar.label }}
|
|
<div class="avatar-wrap">
|
|
{%- call avatar(user_info.address, user_info.avatar_hash ) %}{% endcall -%}
|
|
{{ form.avatar }}
|
|
</div>
|
|
</div>
|
|
<h3 class="form-title">{% trans %}Visibility{% endtrans %}</h3>
|
|
<p class="form-descr weak">{% trans %}This section allows you to control who can see your profile information, like avatar and nickname.{% endtrans %}</p>
|
|
<div class="f-ebox">
|
|
<fieldset>{#- -#}
|
|
<legend>{{ form.profile_access_model.label.text }}</legend>
|
|
{{- form.profile_access_model -}}
|
|
</fieldset>
|
|
</div>
|
|
<div class="f-bbox">
|
|
{%- call standard_button("back", url_for('.index'), class="secondary") %}{% trans %}Back{% endtrans %}{% endcall -%}
|
|
{%- call form_button("done", form.action_save, class="primary") %}{% endcall -%}
|
|
</div>
|
|
</form></div>
|
|
{% endblock %}
|