Dénote

Dénote Git Source Tree

Root/denote/templates/edit_user.html

1{% extends "base.html" %}
2
3{% block content %}
4<div id="edit_profile">Edit your profile<br/><br/></div>
5{% if edited %}
6<p class="edited">User successfuly updated</p>
7{% endif %}
8<form action="/user/edit" method="post">
9{% csrf_token %}
10{{ form.as_p }}
11<p>
12 <label for="id_default_template">Default template:</label>
13 <select id="id_default_template" name="default_template">
14 <option value="-1">None</option>
15 {% for template in templates_by_name %}
16 {% if template.id == user.default_template.id %}
17 <option value="{{ template.id }}" selected="1">{{ template.name }}</option>
18 {% else %}
19 <option value="{{ template.id }}">{{ template.name }}</option>
20 {% endif %}
21 {% endfor %}
22 </select>
23</p>
24
25<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 ?')"/>
26</form>
27{% endblock %}

Archive Download this file

Branches

Tags