annotate pylons_app/templates/admin/users/user_edit_my_account.html @ 525:87d80c84df09

added search in specific repository added delete to my page view handled by separate controller for deleting users own repos, added fork draft
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 29 Sep 2010 22:38:54 +0200
parents c3236d7febad
children 6fc59ac322ca
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
371
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
1 ## -*- coding: utf-8 -*-
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
2 <%inherit file="/base/base.html"/>
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
3
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
4 <%def name="title()">
403
0659a891d975 fixed title on my account page
Marcin Kuzminski <marcin@python-works.com>
parents: 371
diff changeset
5 ${c.hg_app_user.username} ${_('account')}
371
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
6 </%def>
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
7
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
8 <%def name="breadcrumbs_links()">
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
9 ${_('My Account')}
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
10 </%def>
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
11
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
12 <%def name="page_nav()">
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
13 ${self.menu('admin')}
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
14 </%def>
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
15
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
16 <%def name="main()">
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
17
446
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
18 <div class="box box-left">
371
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
19 <!-- box / title -->
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
20 <div class="title">
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
21 ${self.breadcrumbs()}
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
22 </div>
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
23 <!-- end box / title -->
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
24 <div class="ui-tabs-panel ui-widget-content ui-corner-bottom">
371
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
25 ${h.form(url('admin_settings_my_account_update'),method='put')}
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
26 <div class="form">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
27 <div class="fields">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
28 <div class="field">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
29 <div class="label">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
30 <label for="username">${_('Username')}:</label>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
31 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
32 <div class="input">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
33 ${h.text('username')}
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
34 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
35 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
36
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
37 <div class="field">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
38 <div class="label">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
39 <label for="new_password">${_('New password')}:</label>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
40 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
41 <div class="input">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
42 ${h.password('new_password')}
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
43 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
44 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
45
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
46 <div class="field">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
47 <div class="label">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
48 <label for="name">${_('Name')}:</label>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
49 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
50 <div class="input">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
51 ${h.text('name')}
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
52 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
53 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
54
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
55 <div class="field">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
56 <div class="label">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
57 <label for="lastname">${_('Lastname')}:</label>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
58 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
59 <div class="input">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
60 ${h.text('lastname')}
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
61 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
62 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
63
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
64 <div class="field">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
65 <div class="label">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
66 <label for="email">${_('Email')}:</label>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
67 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
68 <div class="input">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
69 ${h.text('email')}
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
70 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
71 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
72
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
73 <div class="buttons">
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
74 ${h.submit('save','save',class_="ui-button ui-widget ui-state-default ui-corner-all")}
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
75 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
76 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
77 </div>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
78 ${h.end_form()}
371
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
79 </div>
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
80 </div>
446
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
81
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
82 <div class="box box-right">
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
83 <!-- box / title -->
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
84 <div class="title">
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
85 <h5>${_('My repositories')}</h5>
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
86 </div>
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
87 <!-- end box / title -->
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
88 <div class="table">
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
89 <table>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
90 <tbody>
525
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
91 %if c.user_repos:
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
92 %for repo in c.user_repos:
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
93 <tr>
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
94 <td>
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
95 %if repo.dbrepo.private:
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
96 <img class="icon" alt="${_('private')}" src="/images/icons/lock.png"/>
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
97 %else:
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
98 <img class="icon" alt="${_('public')}" src="/images/icons/lock_open.png"/>
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
99 %endif
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
100
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
101 ${h.link_to(repo.name, h.url('summary_home',repo_name=repo.name))}</td>
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
102 <td>${_('revision')}: ${h.get_changeset_safe(repo,'tip').revision}</td>
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
103 <td>${_('last changed')}: ${h.age(repo.last_change)}</td>
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
104 <td><img class="icon" alt="${_('private')}" src="/images/icons/application_form_edit.png"/> ${h.link_to(_('edit'),h.url('repo_settings_home',repo_name=repo.name))}</td>
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
105 <td>
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
106 ${h.form(url('repo_settings_delete', repo_name=repo.name),method='delete')}
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
107 ${h.submit('remove_%s' % repo.name,'delete',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")}
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
108 ${h.end_form()}
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
109 </td>
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
110 </tr>
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
111 %endfor
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
112 %else:
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
113 ${_('No repositories yet')}
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
114 %if h.HasPermissionAny('hg.admin','hg.create.repository')():
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
115 ${h.link_to(_('create one now'),h.url('admin_settings_create_repository'))}
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
116 %endif
87d80c84df09 added search in specific repository
Marcin Kuzminski <marcin@python-works.com>
parents: 450
diff changeset
117 %endif
447
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
118 </tbody>
70c2750531d3 rewrote sorting on main page, to clickable headers.
Marcin Kuzminski <marcin@python-works.com>
parents: 446
diff changeset
119 </table>
446
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
120 </div>
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
121
a0a93357f954 started my page rewrite
Marcin Kuzminski <marcin@python-works.com>
parents: 403
diff changeset
122 </div>
371
5cd6616b8673 routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
123 </%def>