Mercurial > kallithea
comparison rhodecode/templates/admin/defaults/defaults.html @ 3056:6104dfd35b16 beta
Implemented #379 defaults settings page for creation of repositories
- locking
- statistics, downloads
- repository type
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 03 Dec 2012 02:55:08 +0100 |
parents | |
children | 79c5967a1e5c |
comparison
equal
deleted
inserted
replaced
3055:301268606429 | 3056:6104dfd35b16 |
---|---|
1 ## -*- coding: utf-8 -*- | |
2 <%inherit file="/base/base.html"/> | |
3 | |
4 <%def name="title()"> | |
5 ${_('Repositories defaults')} - ${c.rhodecode_name} | |
6 </%def> | |
7 | |
8 <%def name="breadcrumbs_links()"> | |
9 ${h.link_to(_('Admin'),h.url('admin_home'))} | |
10 » | |
11 ${_('Defaults')} | |
12 </%def> | |
13 | |
14 <%def name="page_nav()"> | |
15 ${self.menu('admin')} | |
16 </%def> | |
17 | |
18 <%def name="main()"> | |
19 <div class="box"> | |
20 <!-- box / title --> | |
21 <div class="title"> | |
22 ${self.breadcrumbs()} | |
23 </div> | |
24 | |
25 <h3>${_('Repositories defaults')}</h3> | |
26 | |
27 ${h.form(url('default', id='defaults'),method='put')} | |
28 <div class="form"> | |
29 <!-- fields --> | |
30 | |
31 <div class="fields"> | |
32 | |
33 <div class="field"> | |
34 <div class="label"> | |
35 <label for="default_repo_type">${_('Type')}:</label> | |
36 </div> | |
37 <div class="input"> | |
38 ${h.select('default_repo_type','hg',c.backends,class_="medium")} | |
39 </div> | |
40 </div> | |
41 | |
42 <div class="field"> | |
43 <div class="label label-checkbox"> | |
44 <label for="default_repo_private">${_('Private repository')}:</label> | |
45 </div> | |
46 <div class="checkboxes"> | |
47 ${h.checkbox('default_repo_private',value="True")} | |
48 <span class="help-block">${_('Private repositories are only visible to people explicitly added as collaborators.')}</span> | |
49 </div> | |
50 </div> | |
51 | |
52 | |
53 <div class="field"> | |
54 <div class="label label-checkbox"> | |
55 <label for="default_repo_enable_statistics">${_('Enable statistics')}:</label> | |
56 </div> | |
57 <div class="checkboxes"> | |
58 ${h.checkbox('default_repo_enable_statistics',value="True")} | |
59 <span class="help-block">${_('Enable statistics window on summary page.')}</span> | |
60 </div> | |
61 </div> | |
62 | |
63 <div class="field"> | |
64 <div class="label label-checkbox"> | |
65 <label for="default_repo_enable_downloads">${_('Enable downloads')}:</label> | |
66 </div> | |
67 <div class="checkboxes"> | |
68 ${h.checkbox('default_repo_enable_downloads',value="True")} | |
69 <span class="help-block">${_('Enable download menu on summary page.')}</span> | |
70 </div> | |
71 </div> | |
72 | |
73 <div class="field"> | |
74 <div class="label label-checkbox"> | |
75 <label for="default_repo_enable_locking">${_('Enable locking')}:</label> | |
76 </div> | |
77 <div class="checkboxes"> | |
78 ${h.checkbox('default_repo_enable_locking',value="True")} | |
79 <span class="help-block">${_('Enable lock-by-pulling on repository.')}</span> | |
80 </div> | |
81 </div> | |
82 | |
83 <div class="buttons"> | |
84 ${h.submit('save',_('Save'),class_="ui-btn large")} | |
85 </div> | |
86 </div> | |
87 </div> | |
88 ${h.end_form()} | |
89 | |
90 ##<h3>${_('Groups defaults')}</h3> | |
91 | |
92 </div> | |
93 </%def> |