This repository has been archived by the owner on Jun 6, 2020. It is now read-only.
/
account.jade
81 lines (66 loc) · 2.34 KB
/
account.jade
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
72
73
74
75
76
77
78
79
80
81
extends layout
block content
section#account
script#template(type="text/ractive")
.row
.columns
| {{#info}}
.alert-box.info(data-alert) {{this}}
a.close(on-click="closeBox") ×
| {{/info}}
| {{#error}}
.alert-box.alert(data-alert) {{this}}
a.close(on-click="closeBox") ×
| {{/error}}
.row
.columns
h1= __('User data')
form(on-submit="updateUser")
.errors
.row.listair
.columns.large-2.small-3
label.right ID
.columns.large-10.small-9
#id {{user._id}}
.row
.columns.large-2.small-3
label.right.inline= __('Username')
.columns.large-10.small-9
input#username(type="text" name="username" value="{{user.username}}")
.row
.columns.large-2.small-3
label.right.inline= __('Name')
.columns.large-10.small-9
input#name(type="text" name="name" value="{{user.name}}")
.row
.columns.large-2.small-3
label.right.inline= __('E-mail')
.columns.large-10.small-9
input#email(type="text" name="email" value="{{user.email}}")
.row.listair
.columns.large-2.small-3
label.right= __('Active')
.columns.large-10.small-9
input#is_active(type="checkbox" name="active" checked="{{user.is_active}}" disabled)
.row.listair
.columns.large-2.small-3
label.right= __('Admin')
.columns.large-10.small-9
input#is_admin(type="checkbox" name="admin" checked="{{user.is_admin}}" disabled)
.row.listair
.columns.large-2.small-3
label.right= __('Created')
#created.columns.large-10.small-9 {{user.created}}
.row.listair
.columns.large-10.small-9.large-offset-2.small-offset-3
input#savebtn.button.small(type="submit" value=__("Save"))
h3= __('Google data')
.row.listair
.columns.large-3.small-3
label.right Google ID
#google_id.columns.large-10.small-9 {{user.google_id}}
block javascript
script
| require('s7n').account.accountView(
!= JSON.stringify(active_user)
| );