##// END OF EJS Templates
Added css elipsing for API keys
marcink -
r4034:6903296e default
parent child Browse files
Show More
@@ -1,94 +1,95
1 <div>
1 <div>
2 ${h.form(url('admin_settings_my_account_update'),method='put')}
2 ${h.form(url('admin_settings_my_account_update'),method='put')}
3 <div class="form">
3 <div class="form">
4
4
5 <div class="field">
5 <div class="field">
6 <div class="gravatar_box">
6 <div class="gravatar_box">
7 <div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(c.user.email)}"/></div>
7 <div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(c.user.email)}"/></div>
8 <p>
8 <p>
9 %if c.use_gravatar:
9 %if c.use_gravatar:
10 <strong>${_('Change your avatar at')} <a href="http://gravatar.com">gravatar.com</a></strong>
10 <strong>${_('Change your avatar at')} <a href="http://gravatar.com">gravatar.com</a></strong>
11 <br/>${_('Using')} ${c.user.email}
11 <br/>${_('Using')} ${c.user.email}
12 %else:
12 %else:
13 <br/>${c.user.email}
13 <br/>${c.user.email}
14 %endif
14 %endif
15 </p>
15 </p>
16 </div>
16 </div>
17 </div>
17 </div>
18 <div class="field">
18 <div class="field">
19 <div class="label">
19 <div class="field">
20 <label>${_('API key')}</label> ${c.user.api_key}
20 <div class="label">
21 <label>${_('Current IP')}:</label> ${c.perm_user.ip_addr or "?"}
22 </div>
21 </div>
23 </div>
22 </div>
23 <div class="field">
24 <div class="label">
24 <div class="label">
25 <label>${_('Current IP')}:</label> ${c.perm_user.ip_addr or "?"}
25 <label>${_('API key - keep this in secret, change your password to generate new key')}</label>
26 <div class="truncate autoexpand" style="width:120px;font-size:16px;font-family: monospace">${c.user.api_key}</div>
26 </div>
27 </div>
27 </div>
28 </div>
28 <div class="fields">
29 <div class="fields">
29 <div class="field">
30 <div class="field">
30 <div class="label">
31 <div class="label">
31 <label for="username">${_('Username')}:</label>
32 <label for="username">${_('Username')}:</label>
32 </div>
33 </div>
33 <div class="input">
34 <div class="input">
34 %if c.ldap_dn:
35 %if c.ldap_dn:
35 ${h.text('username',class_='medium disabled', readonly="readonly")}
36 ${h.text('username',class_='medium disabled', readonly="readonly")}
36 %else:
37 %else:
37 ${h.text('username',class_='medium')}
38 ${h.text('username',class_='medium')}
38 %endif:
39 %endif:
39 </div>
40 </div>
40 </div>
41 </div>
41
42
42 <div class="field">
43 <div class="field">
43 <div class="label">
44 <div class="label">
44 <label for="new_password">${_('New password')}:</label>
45 <label for="new_password">${_('New password')}:</label>
45 </div>
46 </div>
46 <div class="input">
47 <div class="input">
47 ${h.password('new_password',class_="medium",autocomplete="off")}
48 ${h.password('new_password',class_="medium",autocomplete="off")}
48 </div>
49 </div>
49 </div>
50 </div>
50
51
51 <div class="field">
52 <div class="field">
52 <div class="label">
53 <div class="label">
53 <label for="password_confirmation">${_('New password confirmation')}:</label>
54 <label for="password_confirmation">${_('New password confirmation')}:</label>
54 </div>
55 </div>
55 <div class="input">
56 <div class="input">
56 ${h.password('password_confirmation',class_="medium",autocomplete="off")}
57 ${h.password('password_confirmation',class_="medium",autocomplete="off")}
57 </div>
58 </div>
58 </div>
59 </div>
59
60
60 <div class="field">
61 <div class="field">
61 <div class="label">
62 <div class="label">
62 <label for="name">${_('First Name')}:</label>
63 <label for="name">${_('First Name')}:</label>
63 </div>
64 </div>
64 <div class="input">
65 <div class="input">
65 ${h.text('firstname',class_="medium")}
66 ${h.text('firstname',class_="medium")}
66 </div>
67 </div>
67 </div>
68 </div>
68
69
69 <div class="field">
70 <div class="field">
70 <div class="label">
71 <div class="label">
71 <label for="lastname">${_('Last Name')}:</label>
72 <label for="lastname">${_('Last Name')}:</label>
72 </div>
73 </div>
73 <div class="input">
74 <div class="input">
74 ${h.text('lastname',class_="medium")}
75 ${h.text('lastname',class_="medium")}
75 </div>
76 </div>
76 </div>
77 </div>
77
78
78 <div class="field">
79 <div class="field">
79 <div class="label">
80 <div class="label">
80 <label for="email">${_('Email')}:</label>
81 <label for="email">${_('Email')}:</label>
81 </div>
82 </div>
82 <div class="input">
83 <div class="input">
83 ${h.text('email',class_="medium")}
84 ${h.text('email',class_="medium")}
84 </div>
85 </div>
85 </div>
86 </div>
86
87
87 <div class="buttons">
88 <div class="buttons">
88 ${h.submit('save',_('Save'),class_="ui-btn large")}
89 ${h.submit('save',_('Save'),class_="ui-btn large")}
89 ${h.reset('reset',_('Reset'),class_="ui-btn large")}
90 ${h.reset('reset',_('Reset'),class_="ui-btn large")}
90 </div>
91 </div>
91 </div>
92 </div>
92 </div>
93 </div>
93 ${h.end_form()}
94 ${h.end_form()}
94 </div>
95 </div>
General Comments 0
You need to be logged in to leave comments. Login now