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