Plume/templates/users/edit.html.tera

35 lines
1.1 KiB
Text
Raw Normal View History

2018-05-12 15:30:14 +00:00
{% extends "base" %}
{% block title %}
2018-06-17 15:26:15 +00:00
{{ "Edit your account" | _ }}
2018-05-12 15:30:14 +00:00
{% endblock title %}
{% block content %}
2018-06-17 15:26:15 +00:00
<h1>{{ "Your Profile" | _ }}</h1>
2018-05-12 15:30:14 +00:00
<form method="post">
<!-- Rocket hack to use various HTTP methods -->
2018-09-09 19:49:24 +00:00
<input type=hidden name="_method" value="put">
2018-05-12 15:30:14 +00:00
2018-06-17 15:26:15 +00:00
<label for="display_name">{{ "Display Name" | _ }}</label>
2018-05-12 15:30:14 +00:00
<input name="display_name" value="{{ account.display_name }}">
2018-06-17 15:26:15 +00:00
<label for="email">{{ "Email" | _ }}</label>
2018-05-12 15:30:14 +00:00
<input name="email" value="{{ account.email }}">
2018-06-17 15:26:15 +00:00
<label for="summary">{{ "Summary" | _ }}</label>
2018-05-12 15:30:14 +00:00
<input name="summary" value="{{ account.summary }}">
<input type="submit" value="{{ "Update account" | _ }}"/>
2018-05-12 15:30:14 +00:00
</form>
2018-09-09 19:49:24 +00:00
<h2>{{ "Danger zone" | _ }}</h2>
<p>{{ "Be very careful, any action taken here can't be cancelled." | _ }}
{% if not account.is_admin %}
<form method="post" action="/@/{{ account.fqn }}/delete">
<input type="submit" class="inline-block button destructive" value="{{ 'Delete your account' | _ }}">
</form>
2018-09-09 19:49:24 +00:00
{% else %}
<p>{{ "Sorry, but as an admin, you can't leave your instance." | _ }}</p>
{% endif %}
2018-05-12 15:30:14 +00:00
{% endblock content %}