Denote/denote/templates/edit_user.html

28 lines
973 B
HTML
Raw Normal View History

2015-09-24 18:31:03 +02:00
{% extends "base.html" %}
{% block content %}
<div id="edit_profile">Edit your profile<br/><br/></div>
{% if edited %}
<p class="edited">User successfuly updated</p>
{% endif %}
<form action="/user/edit" method="post">
{% csrf_token %}
{{ form.as_p }}
2016-06-30 20:13:15 +02:00
<p>
<label for="id_default_template">Default template:</label>
<select id="id_default_template" name="default_template">
<option value="-1">None</option>
{% for template in templates_by_name %}
{% if template.id == user.default_template.id %}
<option value="{{ template.id }}" selected="1">{{ template.name }}</option>
{% else %}
<option value="{{ template.id }}">{{ template.name }}</option>
{% endif %}
{% endfor %}
</select>
</p>
2015-09-24 18:31:03 +02:00
<input type="submit" name="edit" value="Edit" /><input type="submit" name="cancel" value="Cancel" /><input type="submit" name="delete" value="Delete" onclick="return confirm('Do you really want to delete your account ?')"/>
</form>
{% endblock %}