comparison rhodecode/templates/admin/settings/settings.html @ 547:1e757ac98988

renamed project to rhodecode
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 06 Oct 2010 03:18:16 +0200
parents pylons_app/templates/admin/settings/settings.html@3fc3ce53659b
children b75b77ef649d
comparison
equal deleted inserted replaced
546:7c2f5e4d7bbf 547:1e757ac98988
1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
3
4 <%def name="title()">
5 ${_('Settings administration')}
6 </%def>
7
8 <%def name="breadcrumbs_links()">
9 ${h.link_to(_('Admin'),h.url('admin_home'))} &raquo; ${_('Settings')}
10 </%def>
11
12 <%def name="page_nav()">
13 ${self.menu('admin')}
14 </%def>
15
16 <%def name="main()">
17 <div class="box">
18 <!-- box / title -->
19 <div class="title">
20 ${self.breadcrumbs()}
21 </div>
22 <!-- end box / title -->
23
24 <h3>${_('Remap and rescan repositories')}</h3>
25 ${h.form(url('admin_setting', setting_id='mapping'),method='put')}
26 <div class="form">
27 <!-- fields -->
28
29 <div class="fields">
30 <div class="field">
31 <div class="label label-checkbox">
32 <label for="destroy">${_('rescan option')}:</label>
33 </div>
34 <div class="checkboxes">
35 <div class="checkbox">
36 ${h.checkbox('destroy',True)}
37 <label for="checkbox-1">
38 <span class="tooltip" tooltip_title="${h.tooltip(_('In case a repository was deleted from filesystem and there are leftovers in the database check this option to scan obsolete data in database and remove it.'))}">
39 ${_('destroy old data')}</span> </label>
40 </div>
41 </div>
42 </div>
43
44 <div class="buttons">
45 ${h.submit('rescan','rescan repositories',class_="ui-button ui-widget ui-state-default ui-corner-all")}
46 </div>
47 </div>
48 </div>
49 ${h.end_form()}
50
51 <h3>${_('Whoosh indexing')}</h3>
52 ${h.form(url('admin_setting', setting_id='whoosh'),method='put')}
53 <div class="form">
54 <!-- fields -->
55
56 <div class="fields">
57 <div class="field">
58 <div class="label label-checkbox">
59 <label for="destroy">${_('index build option')}:</label>
60 </div>
61 <div class="checkboxes">
62 <div class="checkbox">
63 ${h.checkbox('full_index',True)}
64 <label for="checkbox-1">${_('build from scratch')}</label>
65 </div>
66 </div>
67 </div>
68
69 <div class="buttons">
70 ${h.submit('reindex','reindex',class_="ui-button ui-widget ui-state-default ui-corner-all")}
71 </div>
72 </div>
73 </div>
74 ${h.end_form()}
75
76 <h3>${_('Global application settings')}</h3>
77 ${h.form(url('admin_setting', setting_id='global'),method='put')}
78 <div class="form">
79 <!-- fields -->
80
81 <div class="fields">
82
83 <div class="field">
84 <div class="label">
85 <label for="hg_app_title">${_('Application name')}:</label>
86 </div>
87 <div class="input">
88 ${h.text('hg_app_title',size=30)}
89 </div>
90 </div>
91
92 <div class="field">
93 <div class="label">
94 <label for="hg_app_realm">${_('Realm text')}:</label>
95 </div>
96 <div class="input">
97 ${h.text('hg_app_realm',size=30)}
98 </div>
99 </div>
100
101 <div class="buttons">
102 ${h.submit('save','save settings',class_="ui-button ui-widget ui-state-default ui-corner-all")}
103 </div>
104 </div>
105 </div>
106 ${h.end_form()}
107
108 <h3>${_('Mercurial settings')}</h3>
109 ${h.form(url('admin_setting', setting_id='mercurial'),method='put')}
110 <div class="form">
111 <!-- fields -->
112
113 <div class="fields">
114
115 <div class="field">
116 <div class="label label-checkbox">
117 <label for="web_push_ssl">${_('Web')}:</label>
118 </div>
119 <div class="checkboxes">
120 <div class="checkbox">
121 ${h.checkbox('web_push_ssl','true')}
122 <label for="web_push_ssl">${_('require ssl for pushing')}</label>
123 </div>
124 </div>
125 </div>
126
127 <div class="field">
128 <div class="label label-checkbox">
129 <label for="web_push_ssl">${_('Hooks')}:</label>
130 </div>
131 <div class="checkboxes">
132 <div class="checkbox">
133 ${h.checkbox('hooks_changegroup_update','True')}
134 <label for="hooks_changegroup_update">${_('Update repository after push (hg update)')}</label>
135 </div>
136 <div class="checkbox">
137 ${h.checkbox('hooks_changegroup_repo_size','True')}
138 <label for="hooks_changegroup_repo_size">${_('Show repository size after push')}</label>
139 </div>
140 </div>
141 </div>
142
143 <div class="field">
144 <div class="label">
145 <label for="paths_root_path">${_('Repositories location')}:</label>
146 </div>
147 <div class="input">
148 ${h.text('paths_root_path',size=30,readonly="readonly")}
149 <span id="path_unlock" class="tooltip"
150 tooltip_title="${h.tooltip(_('This a crucial application setting. If You really sure you need to change this, you must restart application in order to make this settings take effect. Click this label to unlock.'))}">
151 ${_('unlock')}</span>
152 </div>
153 </div>
154
155 <div class="buttons">
156 ${h.submit('save','save settings',class_="ui-button ui-widget ui-state-default ui-corner-all")}
157 </div>
158 </div>
159 </div>
160 ${h.end_form()}
161
162 <script type="text/javascript">
163 YAHOO.util.Event.onDOMReady(function(){
164 YAHOO.util.Event.addListener('path_unlock','click',function(){
165 YAHOO.util.Dom.get('paths_root_path').removeAttribute('readonly');
166 });
167 });
168 </script>
169 </div>
170 </%def>