comparison pylons_app/templates/repos_manage.html @ 47:f6ac79182600

Added rest controllers for repos and users, templating changes + css fixes
author Marcin Kuzminski <marcin@python-blog.com>
date Wed, 07 Apr 2010 20:19:25 +0200
parents d924b931b488
children
comparison
equal deleted inserted replaced
46:9db7782727b3 47:f6ac79182600
5 <%def name="breadcrumbs()"> 5 <%def name="breadcrumbs()">
6 ${h.link_to(u'Home',h.url('/'))} 6 ${h.link_to(u'Home',h.url('/'))}
7 / 7 /
8 ${h.link_to(u'Admin',h.url('admin_home'))} 8 ${h.link_to(u'Admin',h.url('admin_home'))}
9 / 9 /
10 ${h.link_to(u'Repos managment',h.url('admin_repos_manage'))} 10 ${h.link_to(u'Repos managment',h.url('repos'))}
11 </%def> 11 </%def>
12 <%def name="page_nav()"> 12 <%def name="page_nav()">
13 <li>${h.link_to(u'Home',h.url('/'))}</li> 13 <li>${h.link_to(u'Home',h.url('/'))}</li>
14 <li class="current">${_('Admin')}</li> 14 <li class="current">${_('Admin')}</li>
15 </%def> 15 </%def>
16 <%def name="main()"> 16 <%def name="main()">
17 17 <ul class="submenu">
18 18 <li class="current_submenu">
19 <div class="twocol-form"> 19 ${h.link_to(u'Repos',h.url('repos'))}
20 <h2>Create new repository</h2> 20 </li>
21 <form method="post" action="/repo/create/"> 21 <li>
22 <table> 22 ${h.link_to(u'Users',h.url('users'))}
23 <tbody><tr><th><label for="id_name">Name:</label></th><td><input type="text" maxlength="255" name="name" id="id_name"></td></tr> 23 </li>
24 <tr><th><label for="id_description">Description:</label></th><td><textarea name="description" cols="40" rows="10" id="id_description"></textarea></td></tr> 24 </ul>
25 <tr><th><label for="id_website">Website:</label></th><td><input type="text" maxlength="128" name="website" id="id_website"></td></tr> 25 <div>
26 <tr><th><label for="id_is_private">Private:</label></th><td><input type="checkbox" id="id_is_private" name="is_private"></td></tr> 26 <h2>${_('Mercurial repos')}</h2>
27 <tr><th><label for="id_has_issues">Issue tracking:</label></th><td><input type="checkbox" id="id_has_issues" name="has_issues" checked="checked"></td></tr>
28 <tr><th><label for="id_has_wiki">Wiki:</label></th><td><input type="checkbox" id="id_has_wiki" name="has_wiki" checked="checked"></td></tr>
29
30
31 <tr><td colspan="2">&nbsp;</td></tr>
32 <tr>
33 <td colspan="2">
34 <input type="submit" class="primary-button" value="Create repository"> <input type="reset" onclick="document.location='http://bitbucket.org/';" class="secondary-button secondary-button-darkbg" value="Cancel">
35 </td>
36 </tr>
37 </tbody></table>
38 </form>
39 </div> 27 </div>
40 </%def> 28 </%def>