-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuser_update.html
More file actions
65 lines (51 loc) · 1.6 KB
/
Copy pathuser_update.html
File metadata and controls
65 lines (51 loc) · 1.6 KB
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
59
60
61
62
63
64
{% extends "./wrapper.html" %}{% load actionkit_tags %}
{% block title %}Update Your Account{% endblock %}
{% block content %}
{% if user %}
<div class="ak-grid-row">
<div class="ak-grid-col-12-of-12">
<p class="area">
You are logged in as {{ user.name }}. <a href="/logout">Log out</a>
</p>
</div>
</div>
{% endif %}
{% if updated %}
<div class="ak-grid-row">
<div class="ak-grid-col-12-of-12">
<p>Thanks! We've updated your information.</p>
</div>
</div>
{% endif %}
<div class="ak-grid-row">
<div class="ak-grid-col-12-of-12">
<h2>Update Your Account</h2>
</div>
</div>
<div class="ak-grid-row">
<div class="ak-grid-col-9-of-12">
<form name="accountupdate" method="POST" class="ak-labels-before ak-styled-fields">
{{ form.non_field_errors }}
{% for field in form.visible_fields %}
<div>
<label for="{{ field.id_for_label }}">
{{ field.label }}
</label>
{{ field }}
{{ field.errors }}
</div>
{% endfor %}
<button type="submit" class="ak-styled-submit-button">Submit</button>
</form>
</div>
<div class="ak-grid-col-3-of-12">
</div>
</div>
<script>
$('ul.errorlist').each( function () {
$( this ).addClass('ak-errors').css('display', 'block').
parent().find('label, :input').addClass('ak-error').
closest('form').addClass('contains-errors');
} );
</script>
{% endblock content %}