28 lines
973 B
HTML
28 lines
973 B
HTML
{% 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 }}
|
|
<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>
|
|
|
|
<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 %}
|