##// END OF EJS Templates
fixes for #66 renamed name to First Name
marcink -
r697:540545d3 beta
parent child Browse files
Show More
@@ -1,110 +1,110 b''
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.html"/>
3
3
4 <%def name="title()">
4 <%def name="title()">
5 ${_('Edit user')} ${c.user.username} - ${c.rhodecode_name}
5 ${_('Edit user')} ${c.user.username} - ${c.rhodecode_name}
6 </%def>
6 </%def>
7
7
8 <%def name="breadcrumbs_links()">
8 <%def name="breadcrumbs_links()">
9 ${h.link_to(_('Admin'),h.url('admin_home'))}
9 ${h.link_to(_('Admin'),h.url('admin_home'))}
10 &raquo;
10 &raquo;
11 ${h.link_to(_('Users'),h.url('users'))}
11 ${h.link_to(_('Users'),h.url('users'))}
12 &raquo;
12 &raquo;
13 ${_('edit')} "${c.user.username}"
13 ${_('edit')} "${c.user.username}"
14 </%def>
14 </%def>
15
15
16 <%def name="page_nav()">
16 <%def name="page_nav()">
17 ${self.menu('admin')}
17 ${self.menu('admin')}
18 </%def>
18 </%def>
19
19
20 <%def name="main()">
20 <%def name="main()">
21 <div class="box">
21 <div class="box">
22 <!-- box / title -->
22 <!-- box / title -->
23 <div class="title">
23 <div class="title">
24 ${self.breadcrumbs()}
24 ${self.breadcrumbs()}
25 </div>
25 </div>
26 <!-- end box / title -->
26 <!-- end box / title -->
27 ${h.form(url('user', id=c.user.user_id),method='put')}
27 ${h.form(url('user', id=c.user.user_id),method='put')}
28 <div class="form">
28 <div class="form">
29 <!-- fields -->
29 <!-- fields -->
30 <div class="fields">
30 <div class="fields">
31 <div class="field">
31 <div class="field">
32 <div class="gravatar_box">
32 <div class="gravatar_box">
33 <div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(c.user.email)}"/></div>
33 <div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(c.user.email)}"/></div>
34 <p>
34 <p>
35 <strong>Change your avatar at <a href="http://gravatar.com">gravatar.com</a></strong><br/>
35 <strong>Change your avatar at <a href="http://gravatar.com">gravatar.com</a></strong><br/>
36 ${_('Using')} ${c.user.email}
36 ${_('Using')} ${c.user.email}
37 </p>
37 </p>
38 </div>
38 </div>
39 </div>
39 </div>
40
40
41 <div class="field">
41 <div class="field">
42 <div class="label">
42 <div class="label">
43 <label for="username">${_('Username')}:</label>
43 <label for="username">${_('Username')}:</label>
44 </div>
44 </div>
45 <div class="input">
45 <div class="input">
46 ${h.text('username',class_='small')}
46 ${h.text('username',class_='small')}
47 </div>
47 </div>
48 </div>
48 </div>
49
49
50 <div class="field">
50 <div class="field">
51 <div class="label">
51 <div class="label">
52 <label for="new_password">${_('New password')}:</label>
52 <label for="new_password">${_('New password')}:</label>
53 </div>
53 </div>
54 <div class="input">
54 <div class="input">
55 ${h.password('new_password',class_='small')}
55 ${h.password('new_password',class_='small')}
56 </div>
56 </div>
57 </div>
57 </div>
58
58
59 <div class="field">
59 <div class="field">
60 <div class="label">
60 <div class="label">
61 <label for="name">${_('Name')}:</label>
61 <label for="name">${_('First Name')}:</label>
62 </div>
62 </div>
63 <div class="input">
63 <div class="input">
64 ${h.text('name',class_='small')}
64 ${h.text('name',class_='small')}
65 </div>
65 </div>
66 </div>
66 </div>
67
67
68 <div class="field">
68 <div class="field">
69 <div class="label">
69 <div class="label">
70 <label for="lastname">${_('Lastname')}:</label>
70 <label for="lastname">${_('Last Name')}:</label>
71 </div>
71 </div>
72 <div class="input">
72 <div class="input">
73 ${h.text('lastname',class_='small')}
73 ${h.text('lastname',class_='small')}
74 </div>
74 </div>
75 </div>
75 </div>
76
76
77 <div class="field">
77 <div class="field">
78 <div class="label">
78 <div class="label">
79 <label for="email">${_('Email')}:</label>
79 <label for="email">${_('Email')}:</label>
80 </div>
80 </div>
81 <div class="input">
81 <div class="input">
82 ${h.text('email',class_='small')}
82 ${h.text('email',class_='small')}
83 </div>
83 </div>
84 </div>
84 </div>
85
85
86 <div class="field">
86 <div class="field">
87 <div class="label label-checkbox">
87 <div class="label label-checkbox">
88 <label for="active">${_('Active')}:</label>
88 <label for="active">${_('Active')}:</label>
89 </div>
89 </div>
90 <div class="checkboxes">
90 <div class="checkboxes">
91 ${h.checkbox('active',value=True)}
91 ${h.checkbox('active',value=True)}
92 </div>
92 </div>
93 </div>
93 </div>
94
94
95 <div class="field">
95 <div class="field">
96 <div class="label label-checkbox">
96 <div class="label label-checkbox">
97 <label for="admin">${_('Admin')}:</label>
97 <label for="admin">${_('Admin')}:</label>
98 </div>
98 </div>
99 <div class="checkboxes">
99 <div class="checkboxes">
100 ${h.checkbox('admin',value=True)}
100 ${h.checkbox('admin',value=True)}
101 </div>
101 </div>
102 </div>
102 </div>
103 <div class="buttons">
103 <div class="buttons">
104 ${h.submit('save','save',class_="ui-button ui-widget ui-state-default ui-corner-all")}
104 ${h.submit('save','save',class_="ui-button ui-widget ui-state-default ui-corner-all")}
105 </div>
105 </div>
106 </div>
106 </div>
107 </div>
107 </div>
108 ${h.end_form()}
108 ${h.end_form()}
109 </div>
109 </div>
110 </%def> No newline at end of file
110 </%def>
@@ -1,188 +1,188 b''
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.html"/>
3
3
4 <%def name="title()">
4 <%def name="title()">
5 ${_('My account')} ${c.rhodecode_user.username} - ${c.rhodecode_name}
5 ${_('My account')} ${c.rhodecode_user.username} - ${c.rhodecode_name}
6 </%def>
6 </%def>
7
7
8 <%def name="breadcrumbs_links()">
8 <%def name="breadcrumbs_links()">
9 ${_('My Account')}
9 ${_('My Account')}
10 </%def>
10 </%def>
11
11
12 <%def name="page_nav()">
12 <%def name="page_nav()">
13 ${self.menu('admin')}
13 ${self.menu('admin')}
14 </%def>
14 </%def>
15
15
16 <%def name="main()">
16 <%def name="main()">
17
17
18 <div class="box box-left">
18 <div class="box box-left">
19 <!-- box / title -->
19 <!-- box / title -->
20 <div class="title">
20 <div class="title">
21 ${self.breadcrumbs()}
21 ${self.breadcrumbs()}
22 </div>
22 </div>
23 <!-- end box / title -->
23 <!-- end box / title -->
24 <div class="ui-tabs-panel ui-widget-content ui-corner-bottom">
24 <div class="ui-tabs-panel ui-widget-content ui-corner-bottom">
25 ${h.form(url('admin_settings_my_account_update'),method='put')}
25 ${h.form(url('admin_settings_my_account_update'),method='put')}
26 <div class="form">
26 <div class="form">
27 <div class="fields">
27 <div class="fields">
28 <div class="field">
28 <div class="field">
29 <div class="label">
29 <div class="label">
30 <label for="username">${_('Username')}:</label>
30 <label for="username">${_('Username')}:</label>
31 </div>
31 </div>
32 <div class="input">
32 <div class="input">
33 ${h.text('username')}
33 ${h.text('username')}
34 </div>
34 </div>
35 </div>
35 </div>
36
36
37 <div class="field">
37 <div class="field">
38 <div class="label">
38 <div class="label">
39 <label for="new_password">${_('New password')}:</label>
39 <label for="new_password">${_('New password')}:</label>
40 </div>
40 </div>
41 <div class="input">
41 <div class="input">
42 ${h.password('new_password')}
42 ${h.password('new_password')}
43 </div>
43 </div>
44 </div>
44 </div>
45
45
46 <div class="field">
46 <div class="field">
47 <div class="label">
47 <div class="label">
48 <label for="name">${_('Name')}:</label>
48 <label for="name">${_('First Name')}:</label>
49 </div>
49 </div>
50 <div class="input">
50 <div class="input">
51 ${h.text('name')}
51 ${h.text('name')}
52 </div>
52 </div>
53 </div>
53 </div>
54
54
55 <div class="field">
55 <div class="field">
56 <div class="label">
56 <div class="label">
57 <label for="lastname">${_('Lastname')}:</label>
57 <label for="lastname">${_('Last Name')}:</label>
58 </div>
58 </div>
59 <div class="input">
59 <div class="input">
60 ${h.text('lastname')}
60 ${h.text('lastname')}
61 </div>
61 </div>
62 </div>
62 </div>
63
63
64 <div class="field">
64 <div class="field">
65 <div class="label">
65 <div class="label">
66 <label for="email">${_('Email')}:</label>
66 <label for="email">${_('Email')}:</label>
67 </div>
67 </div>
68 <div class="input">
68 <div class="input">
69 ${h.text('email')}
69 ${h.text('email')}
70 </div>
70 </div>
71 </div>
71 </div>
72
72
73 <div class="buttons">
73 <div class="buttons">
74 ${h.submit('save','save',class_="ui-button ui-widget ui-state-default ui-corner-all")}
74 ${h.submit('save','save',class_="ui-button ui-widget ui-state-default ui-corner-all")}
75 </div>
75 </div>
76 </div>
76 </div>
77 </div>
77 </div>
78 ${h.end_form()}
78 ${h.end_form()}
79 </div>
79 </div>
80 </div>
80 </div>
81
81
82 <div class="box box-right">
82 <div class="box box-right">
83 <!-- box / title -->
83 <!-- box / title -->
84 <div class="title">
84 <div class="title">
85 <h5>${_('My repositories')}
85 <h5>${_('My repositories')}
86 <input class="top-right-rounded-corner top-left-rounded-corner bottom-left-rounded-corner bottom-right-rounded-corner" id="q_filter" size="15" type="text" name="filter" value="${_('quick filter...')}"/>
86 <input class="top-right-rounded-corner top-left-rounded-corner bottom-left-rounded-corner bottom-right-rounded-corner" id="q_filter" size="15" type="text" name="filter" value="${_('quick filter...')}"/>
87 </h5>
87 </h5>
88 </div>
88 </div>
89 <!-- end box / title -->
89 <!-- end box / title -->
90 <div class="table">
90 <div class="table">
91 <table>
91 <table>
92 <thead>
92 <thead>
93 <tr>
93 <tr>
94 <th class="left">${_('Name')}</th>
94 <th class="left">${_('Name')}</th>
95 <th class="left">${_('revision')}</th>
95 <th class="left">${_('revision')}</th>
96 <th colspan="2" class="left">${_('action')}</th>
96 <th colspan="2" class="left">${_('action')}</th>
97 </thead>
97 </thead>
98 <tbody>
98 <tbody>
99 %if c.user_repos:
99 %if c.user_repos:
100 %for repo in c.user_repos:
100 %for repo in c.user_repos:
101 <tr>
101 <tr>
102 <td>
102 <td>
103 %if repo['repo'].dbrepo.repo_type =='hg':
103 %if repo['repo'].dbrepo.repo_type =='hg':
104 <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="/images/icons/hgicon.png"/>
104 <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="/images/icons/hgicon.png"/>
105 %elif repo['repo'].dbrepo.repo_type =='git':
105 %elif repo['repo'].dbrepo.repo_type =='git':
106 <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="/images/icons/giticon.png"/>
106 <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="/images/icons/giticon.png"/>
107 %else:
107 %else:
108
108
109 %endif
109 %endif
110 %if repo['repo'].dbrepo.private:
110 %if repo['repo'].dbrepo.private:
111 <img class="icon" alt="${_('private')}" src="/images/icons/lock.png"/>
111 <img class="icon" alt="${_('private')}" src="/images/icons/lock.png"/>
112 %else:
112 %else:
113 <img class="icon" alt="${_('public')}" src="/images/icons/lock_open.png"/>
113 <img class="icon" alt="${_('public')}" src="/images/icons/lock_open.png"/>
114 %endif
114 %endif
115
115
116 ${h.link_to(repo['repo'].name, h.url('summary_home',repo_name=repo['repo'].name),class_="repo_name")}
116 ${h.link_to(repo['repo'].name, h.url('summary_home',repo_name=repo['repo'].name),class_="repo_name")}
117 %if repo['repo'].dbrepo.fork:
117 %if repo['repo'].dbrepo.fork:
118 <a href="${h.url('summary_home',repo_name=repo['repo'].dbrepo.fork.repo_name)}">
118 <a href="${h.url('summary_home',repo_name=repo['repo'].dbrepo.fork.repo_name)}">
119 <img class="icon" alt="${_('public')}"
119 <img class="icon" alt="${_('public')}"
120 title="${_('Fork of')} ${repo['repo'].dbrepo.fork.repo_name}"
120 title="${_('Fork of')} ${repo['repo'].dbrepo.fork.repo_name}"
121 src="/images/icons/arrow_divide.png"/></a>
121 src="/images/icons/arrow_divide.png"/></a>
122 %endif
122 %endif
123 </td>
123 </td>
124 <td><span class="tooltip" tooltip_title="${repo['repo'].last_change}">${("r%s:%s") % (h.get_changeset_safe(repo['repo'],'tip').revision,h.short_id(h.get_changeset_safe(repo['repo'],'tip').raw_id))}</span></td>
124 <td><span class="tooltip" tooltip_title="${repo['repo'].last_change}">${("r%s:%s") % (h.get_changeset_safe(repo['repo'],'tip').revision,h.short_id(h.get_changeset_safe(repo['repo'],'tip').raw_id))}</span></td>
125 <td><a href="${h.url('repo_settings_home',repo_name=repo['repo'].name)}" title="${_('edit')}"><img class="icon" alt="${_('private')}" src="/images/icons/application_form_edit.png"/></a></td>
125 <td><a href="${h.url('repo_settings_home',repo_name=repo['repo'].name)}" title="${_('edit')}"><img class="icon" alt="${_('private')}" src="/images/icons/application_form_edit.png"/></a></td>
126 <td>
126 <td>
127 ${h.form(url('repo_settings_delete', repo_name=repo['repo'].name),method='delete')}
127 ${h.form(url('repo_settings_delete', repo_name=repo['repo'].name),method='delete')}
128 ${h.submit('remove_%s' % repo['repo'].name,'',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")}
128 ${h.submit('remove_%s' % repo['repo'].name,'',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")}
129 ${h.end_form()}
129 ${h.end_form()}
130 </td>
130 </td>
131 </tr>
131 </tr>
132 %endfor
132 %endfor
133 %else:
133 %else:
134 ${_('No repositories yet')}
134 ${_('No repositories yet')}
135 %if h.HasPermissionAny('hg.admin','hg.create.repository')():
135 %if h.HasPermissionAny('hg.admin','hg.create.repository')():
136 ${h.link_to(_('create one now'),h.url('admin_settings_create_repository'))}
136 ${h.link_to(_('create one now'),h.url('admin_settings_create_repository'))}
137 %endif
137 %endif
138 %endif
138 %endif
139 </tbody>
139 </tbody>
140 </table>
140 </table>
141 </div>
141 </div>
142
142
143 </div>
143 </div>
144 <script type="text/javascript">
144 <script type="text/javascript">
145 var D = YAHOO.util.Dom;
145 var D = YAHOO.util.Dom;
146 var E = YAHOO.util.Event;
146 var E = YAHOO.util.Event;
147 var S = YAHOO.util.Selector;
147 var S = YAHOO.util.Selector;
148
148
149 var q_filter = D.get('q_filter');
149 var q_filter = D.get('q_filter');
150 var F = YAHOO.namespace('q_filter');
150 var F = YAHOO.namespace('q_filter');
151
151
152 E.on(q_filter,'click',function(){
152 E.on(q_filter,'click',function(){
153 q_filter.value = '';
153 q_filter.value = '';
154 });
154 });
155
155
156 F.filterTimeout = null;
156 F.filterTimeout = null;
157
157
158 F.updateFilter = function() {
158 F.updateFilter = function() {
159 // Reset timeout
159 // Reset timeout
160 F.filterTimeout = null;
160 F.filterTimeout = null;
161
161
162 var obsolete = [];
162 var obsolete = [];
163 var nodes = S.query('div.table tr td a.repo_name');
163 var nodes = S.query('div.table tr td a.repo_name');
164 var req = D.get('q_filter').value;
164 var req = D.get('q_filter').value;
165 for (n in nodes){
165 for (n in nodes){
166 D.setStyle(nodes[n].parentNode.parentNode,'display','')
166 D.setStyle(nodes[n].parentNode.parentNode,'display','')
167 }
167 }
168 if (req){
168 if (req){
169 for (n in nodes){
169 for (n in nodes){
170 if (nodes[n].innerHTML.toLowerCase().indexOf(req) == -1) {
170 if (nodes[n].innerHTML.toLowerCase().indexOf(req) == -1) {
171 obsolete.push(nodes[n]);
171 obsolete.push(nodes[n]);
172 }
172 }
173 }
173 }
174 if(obsolete){
174 if(obsolete){
175 for (n in obsolete){
175 for (n in obsolete){
176 D.setStyle(obsolete[n].parentNode.parentNode,'display','none');
176 D.setStyle(obsolete[n].parentNode.parentNode,'display','none');
177 }
177 }
178 }
178 }
179 }
179 }
180 }
180 }
181
181
182 E.on(q_filter,'keyup',function(e){
182 E.on(q_filter,'keyup',function(e){
183 clearTimeout(F.filterTimeout);
183 clearTimeout(F.filterTimeout);
184 setTimeout(F.updateFilter,600);
184 setTimeout(F.updateFilter,600);
185 });
185 });
186
186
187 </script>
187 </script>
188 </%def> No newline at end of file
188 </%def>
General Comments 0
You need to be logged in to leave comments. Login now