moviewyrm/bookwyrm/templates/edit_user.html

67 lines
2.9 KiB
HTML
Raw Normal View History

2020-01-28 19:45:38 +00:00
{% extends 'layout.html' %}
{% block content %}
2020-10-02 21:42:42 +00:00
<div class="block columns">
<div class="column is-half">
2020-11-09 20:06:44 +00:00
<h1 class="title">Profile</h1>
{% if form.non_field_errors %}
<p class="notification is-danger">{{ form.non_field_errors }}</p>
{% endif %}
2020-11-11 05:34:26 +00:00
<form name="edit-profile" action="/edit-profile/" method="post" enctype="multipart/form-data">
2020-10-02 21:42:42 +00:00
{% csrf_token %}
<p class="block">
<label class="label" for="id_avatar">Avatar:</label>
{{ form.avatar }}
{% for error in form.avatar.errors %}
<p class="help is-danger">{{ error | escape }}</p>
{% endfor %}
2020-10-02 21:42:42 +00:00
</p>
<p class="block">
<label class="label" for="id_name">Display name:</label>
{{ form.name }}
{% for error in form.name.errors %}
<p class="help is-danger">{{ error | escape }}</p>
{% endfor %}
2020-10-02 21:42:42 +00:00
</p>
<p class="block">
<label class="label" for="id_summary">Summary:</label>
{{ form.summary }}
{% for error in form.summary.errors %}
<p class="help is-danger">{{ error | escape }}</p>
{% endfor %}
2020-10-02 21:42:42 +00:00
</p>
<p class="block">
<label class="label" for="id_email">Email address:</label>
{{ form.email }}
{% for error in form.email.errors %}
<p class="help is-danger">{{ error | escape }}</p>
{% endfor %}
</p>
2020-10-02 21:42:42 +00:00
<p class="block">
<label class="checkbox label" for="id_manually_approves_followers">
2020-10-02 21:42:42 +00:00
Manually approve followers:
{{ form.manually_approves_followers }}
</label>
</p>
<button class="button is-primary" type="submit">Save</button>
</form>
</div>
<div class="column is-half">
<div class="block">
<h2 class="title">Change password</h2>
<form name="edit-profile" action="/change-password/" method="post" enctype="multipart/form-data">
{% csrf_token %}
<p class="block">
<label class="label" for="id_password">New password:</label>
<input type="password" name="password" maxlength="128" class="input" required="" id="id_password">
</p>
<p class="block">
<label class="label" for="id_confirm_password">Confirm password:</label>
<input type="password" name="confirm-password" maxlength="128" class="input" required="" id="id_confirm_password">
</p>
<button class="button is-primary" type="submit">Change password</button>
</form>
</div>
</div>
2020-01-28 19:45:38 +00:00
</div>
{% endblock %}