moviewyrm/bookwyrm/templates/preferences/edit_user.html

53 lines
1.8 KiB
HTML
Raw Normal View History

2021-01-29 17:28:00 +00:00
{% extends 'preferences/preferences_layout.html' %}
2021-02-28 02:48:10 +00:00
{% load i18n %}
{% block title %}{% trans "Edit Profile" %}{% endblock %}
{% block header %}
2021-02-28 02:48:10 +00:00
{% trans "Edit Profile" %}
{% endblock %}
{% block panel %}
{% if form.non_field_errors %}
<p class="notification is-danger">{{ form.non_field_errors }}</p>
{% endif %}
2021-02-01 19:34:08 +00:00
<form name="edit-profile" action="{% url 'prefs-profile' %}" method="post" enctype="multipart/form-data">
{% csrf_token %}
<div class="block">
2021-02-28 02:48:10 +00:00
<label class="label" for="id_avatar">{% trans "Avatar:" %}</label>
{{ form.avatar }}
{% for error in form.avatar.errors %}
<p class="help is-danger">{{ error | escape }}</p>
{% endfor %}
</div>
<div class="block">
2021-02-28 02:48:10 +00:00
<label class="label" for="id_name">{% trans "Display name:" %}</label>
{{ form.name }}
{% for error in form.name.errors %}
<p class="help is-danger">{{ error | escape }}</p>
{% endfor %}
</div>
<div class="block">
2021-02-28 02:48:10 +00:00
<label class="label" for="id_summary">{% trans "Summary:" %}</label>
{{ form.summary }}
{% for error in form.summary.errors %}
<p class="help is-danger">{{ error | escape }}</p>
{% endfor %}
</div>
<div class="block">
2021-02-28 02:48:10 +00:00
<label class="label" for="id_email">{% trans "Email address:" %}</label>
{{ form.email }}
{% for error in form.email.errors %}
<p class="help is-danger">{{ error | escape }}</p>
{% endfor %}
2020-10-02 21:42:42 +00:00
</div>
<div class="block">
<label class="checkbox label" for="id_manually_approves_followers">
2021-02-28 02:48:10 +00:00
{% trans "Manually approve followers:" %}
{{ form.manually_approves_followers }}
</label>
2020-10-02 21:42:42 +00:00
</div>
2021-02-28 02:48:10 +00:00
<button class="button is-primary" type="submit">{% trans "Save" %}</button>
</form>
2020-01-28 19:45:38 +00:00
{% endblock %}