recipes/backend/templates/profile.html
2024-12-21 23:13:06 +01:00

43 lines
No EOL
1.2 KiB
HTML

{% extends "base_with_header.html" %}
{% block main_container %}
{% match user %}
{% when Some with (user) %}
<div class="content" id="user-edit">
<h1>Profile</h1>
<form action="/user/edit" method="post">
<label for="input-name">Name</label>
<input
id="input-name"
type="text"
name="name"
value="{{ username }}"
autocapitalize="none"
autocomplete="title"
autofocus="autofocus" />
<label for="input-email">Email (need to be revalidated if changed)</label>
<input id="input-email" type="email" name="email" value="{{ email }}" autocapitalize="none" autocomplete="email" autofocus="autofocus" />
{{ message_email }}
<label for="input-password-1">New password (minimum 8 characters)</label>
<input id="input-password-1" type="password" name="password_1" autocomplete="new-password" />
<label for="input-password-2">Re-enter password</label>
<input id="input-password-2" type="password" name="password_2" autocomplete="new-password" />
{{ message_password }}
<input type="submit" name="commit" value="Save" />
</form>
{{ message }}
</div>
{% when None %}
{% endmatch %}
{% endblock %}