comparison pylons_app/templates/admin/users/user_add.html @ 362:558eb7c5028f rhodecode-0.0.0.8.0

version bump to 0.8 hg app 0.8 new template. Add yui flot and graph into summary page. + various tweeks and patches into look of application
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 24 Jul 2010 02:17:48 +0200
parents a55c17874486
children
comparison
equal deleted inserted replaced
361:3581656180b7 362:558eb7c5028f
2 <%inherit file="/base/base.html"/> 2 <%inherit file="/base/base.html"/>
3 3
4 <%def name="title()"> 4 <%def name="title()">
5 ${_('User administration')} 5 ${_('User administration')}
6 </%def> 6 </%def>
7 <%def name="breadcrumbs()"> 7 <%def name="breadcrumbs_links()">
8 ${h.link_to(u'Admin',h.url('admin_home'))} 8 ${h.link_to(_('Admin'),h.url('admin_home'))}
9 / 9 &raquo;
10 ${_('Users')} 10 ${h.link_to(_('Users'),h.url('users'))}
11 &raquo;
12 ${_('add new user')}
11 </%def> 13 </%def>
14
12 <%def name="page_nav()"> 15 <%def name="page_nav()">
13 ${self.menu('admin')} 16 ${self.menu('admin')}
14 ${self.submenu('users')}
15 </%def> 17 </%def>
18
16 <%def name="main()"> 19 <%def name="main()">
17 <div> 20 <div class="box">
18 <h2>${_('User')} - ${_('add new')}</h2> 21 <!-- box / title -->
19 ${h.form(url('users'))} 22 <div class="title">
20 <table> 23 ${self.breadcrumbs()}
21 <tr>
22 <td>${_('Username')}</td>
23 <td>${h.text('username')}</td>
24 <td>${self.get_form_error('username')}</td>
25 </tr>
26 <tr>
27 <td>${_('Password')}</td>
28 <td>${h.password('password')}</td>
29 <td>${self.get_form_error('password')}</td>
30 </tr>
31 <tr>
32 <td>${_('Name')}</td>
33 <td>${h.text('name')}</td>
34 <td>${self.get_form_error('name')}</td>
35 </tr>
36 <tr>
37 <td>${_('Lastname')}</td>
38 <td>${h.text('lastname')}</td>
39 <td>${self.get_form_error('lastname')}</td>
40 </tr>
41 <tr>
42 <td>${_('Email')}</td>
43 <td>${h.text('email')}</td>
44 <td>${self.get_form_error('email')}</td>
45 </tr>
46 <tr>
47 <td>${_('Active')}</td>
48 <td>${h.checkbox('active',value=True)}</td>
49 <td>${self.get_form_error('active')}</td>
50 </tr>
51 <tr>
52 <td></td>
53 <td>${h.submit('save','save')}</td>
54 </tr>
55 </table>
56 ${h.end_form()}
57 </div> 24 </div>
25 <!-- end box / title -->
26 ${h.form(url('users'))}
27 <div class="form">
28 <!-- fields -->
29 <div class="fields">
30 <div class="field">
31 <div class="label">
32 <label for="username">${_('Username')}:</label>
33 </div>
34 <div class="input">
35 ${h.text('username')}
36 </div>
37 </div>
38
39 <div class="field">
40 <div class="label">
41 <label for="password">${_('Password')}:</label>
42 </div>
43 <div class="input">
44 ${h.password('password')}
45 </div>
46 </div>
47
48 <div class="field">
49 <div class="label">
50 <label for="name">${_('Name')}:</label>
51 </div>
52 <div class="input">
53 ${h.text('name')}
54 </div>
55 </div>
56
57 <div class="field">
58 <div class="label">
59 <label for="lastname">${_('Lastname')}:</label>
60 </div>
61 <div class="input">
62 ${h.text('lastname')}
63 </div>
64 </div>
65
66 <div class="field">
67 <div class="label">
68 <label for="email">${_('Email')}:</label>
69 </div>
70 <div class="input">
71 ${h.text('email')}
72 </div>
73 </div>
74
75 <div class="field">
76 <div class="label label-checkbox">
77 <label for="active">${_('Active')}:</label>
78 </div>
79 <div class="checkboxes">
80 ${h.checkbox('active',value=True)}
81 </div>
82 </div>
83
84 <div class="buttons">
85 ${h.submit('save','save',class_="ui-button ui-widget ui-state-default ui-corner-all")}
86 </div>
87 </div>
88 </div>
89 ${h.end_form()}
90 </div>
58 </%def> 91 </%def>