blob: 1661ae81f459cbca1af18b1dab6155f9dbcfebd9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{% extends "base.html" %}
{% load i18n %}
{% comment %}
gitrefinery-web - profile page template
Copyright (C) 2013 Intel Corporation
Licensed under the MIT license, see COPYING.MIT for details
{% endcomment %}
<!--
{% autoescape on %}
{% block title_append %} - profile{% endblock %}
{% endautoescape %}
-->
{% block content %}
{% autoescape on %}
<form method="post" action=".">
{% for hidden in form.hidden_fields %}
{{ hidden }}
{% endfor %}
{% if form.non_field_errors %}
<div class="form-group alert alert-danger">
{{ form.non_field_errors }}
</div>
{% endif %}
{% for field in form.visible_fields %}
{% if field.name in error_fields %}
<div class="form-group alert alert-danger">
{{ field.errors }}
{% else %}
<div class="form-group">
{% endif %}
<div class="control-label {% if field.required %}requiredlabel{% endif %}">
{{ field.label_tag }}
</div>
<div class="controls">
{{ field }}
</div>
</div>
{% endfor %}
<input type="submit" class="btn btn-default" value="{% trans 'Save' %}" />
<a class="btn btn-default" href="{{ return_url }}">{% trans 'Cancel' %}</a>
<a class="btn btn-danger" href="{% url 'delete_account' %}">{% trans 'Delete account' %}</a>
{% csrf_token %}
</form>
{% endautoescape %}
{% endblock %}
|