2021-06-14 16:57:51 +00:00
{% extends 'preferences/layout.html' %}
2021-02-28 02:48:10 +00:00
{% load i18n %}
2021-02-28 18:00:36 +00:00
{% block title %}{% trans "Edit Profile" %}{% endblock %}
2021-01-26 17:56:01 +00:00
{% block header %}
2021-02-28 02:48:10 +00:00
{% trans "Edit Profile" %}
2021-01-26 17:56:01 +00:00
{% 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" >
2021-01-26 17:56:01 +00:00
{% csrf_token %}
< div class = "block" >
2021-02-28 02:48:10 +00:00
< label class = "label" for = "id_avatar" > {% trans "Avatar:" %}< / label >
2021-01-26 17:56:01 +00:00
{{ 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 >
2021-01-26 17:56:01 +00:00
{{ 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 >
2021-01-26 17:56:01 +00:00
{{ 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 >
2021-01-26 17:56:01 +00:00
{{ 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 >
2021-03-18 16:05:18 +00:00
< div class = "block" >
< label class = "checkbox label" for = "id_show_goal" >
2021-09-08 17:06:26 +00:00
{% trans "Show reading goal prompt in feed:" %}
2021-03-18 16:05:18 +00:00
{{ form.show_goal }}
< / label >
2021-09-08 17:06:26 +00:00
< label class = "checkbox label" for = "id_show_goal" >
{% trans "Show suggested users:" %}
{{ form.show_suggested_users }}
< / label >
< label class = "checkbox label" for = "id_discoverable" >
{% trans "Show this account in suggested users:" %}
{{ form.discoverable }}
< / label >
{% url 'directory' as path %}
< p class = "help" > {% blocktrans %}Your account will show up in the < a href = "{{ path }}" > directory< / a > , and may be recommended to other BookWyrm users.{% endblocktrans %}< / p >
2021-03-18 16:05:18 +00:00
< / div >
2021-01-26 17:56:01 +00:00
< div class = "block" >
< label class = "checkbox label" for = "id_manually_approves_followers" >
2021-02-28 02:48:10 +00:00
{% trans "Manually approve followers:" %}
2021-01-26 17:56:01 +00:00
{{ form.manually_approves_followers }}
< / label >
2020-10-02 21:42:42 +00:00
< / div >
2021-02-14 01:42:25 +00:00
< div class = "block" >
< label class = "label" for = "id_default_post_privacy" >
2021-06-14 23:47:57 +00:00
{% trans "Default post privacy:" %}
2021-02-14 01:42:25 +00:00
< / label >
2021-08-04 17:49:14 +00:00
< div class = "select" >
{{ form.default_post_privacy }}
< / div >
2021-02-14 01:42:25 +00:00
< / div >
2021-03-29 01:23:32 +00:00
< div class = "block" >
< label class = "label" for = "id_preferred_timezone" > {% trans "Preferred Timezone: " %}< / label >
< div class = "select" >
{{ form.preferred_timezone }}
< / div >
2021-03-28 22:51:40 +00:00
< / div >
2021-03-29 01:23:32 +00:00
< div class = "block" > < button class = "button is-primary" type = "submit" > {% trans "Save" %}< / button > < / div >
2021-01-26 17:56:01 +00:00
< / form >
2020-01-28 19:45:38 +00:00
{% endblock %}