-
Notifications
You must be signed in to change notification settings - Fork 2k
/
edit_user_form.html
72 lines (70 loc) · 2.51 KB
/
edit_user_form.html
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
65
66
67
68
69
70
71
<form
id="user-edit"
action=""
method="post"
class="form-horizontal ${'has-errors' if errors else ''}"
xmlns:i18n="http://genshi.edgewall.org/i18n"
xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude">
<div class="alert alert-error error-explanation" py:if="error_summary">
<h2>Errors in form</h2>
<p>The form contains invalid entries:</p>
<ul>
<li py:for="key, error in error_summary.items()">${"%s: %s" % (key, error)}</li>
</ul>
</div>
<fieldset>
<div class="control-group">
<label for="fullname" class="control-label">Full name</label>
<div class="controls">
<input type="text" name="fullname" value="${data.get('fullname','')}" />
</div>
</div>
<div class="control-group">
<label for="email" class="control-label">E-mail</label>
<div class="controls">
<input type="text" name="email" value="${data.get('email','')}" />
</div>
</div>
<div class="control-group" py:if="g.openid_enabled">
<label for="openid" class="control-label">OpenId</label>
<div class="controls">
<input type="text" name="openid" value="${data.get('openid','')}" />
</div>
</div>
<div class="control-group">
<label for="about" class="control-label">About</label>
<div class="controls">
${h.markdown_editor('about',data.get('about',''),id='about',placeholder=_('A little about you...'))}
</div>
</div>
</fieldset>
<fieldset>
<legend>Change your password</legend>
<div class="control-group">
<label for="password1" class="control-label">Password</label>
<div class="controls">
<input type="password" name="password1" value="" />
</div>
</div>
<div class="control-group">
<label for="password2" class="control-label">Password (repeat)</label>
<div class="controls">
<input type="password" name="password2" value="" />
</div>
</div>
</fieldset>
<fieldset>
<legend>Change your username</legend>
<div class="control-group">
<label for="name" class="control-label">Username</label>
<div class="controls">
<input type="text" name="name" value="${data.get('name','')}" />
</div>
</div>
</fieldset>
<div class="form-actions">
<input id="save" class="btn btn-primary" name="save" type="submit" value="${_('Save Changes')}" />
<input id="cancel" class="btn href-action" name="cancel" type="reset" value="${_('Cancel')}" action="${h.url_for(controller='user', action='me')}" />
</div>
</form>