Show More
@@ -1,82 +1,84 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 | <%inherit file="/base/base.html"/> |
|
2 | <%inherit file="/base/base.html"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Settings administration')} |
|
5 | ${_('Settings administration')} | |
6 | </%def> |
|
6 | </%def> | |
7 |
|
7 | |||
8 | <%def name="breadcrumbs_links()"> |
|
8 | <%def name="breadcrumbs_links()"> | |
9 | ${h.link_to(_('Admin'),h.url('admin_home'))} » ${_('Settings')} |
|
9 | ${h.link_to(_('Admin'),h.url('admin_home'))} » ${_('Settings')} | |
10 | </%def> |
|
10 | </%def> | |
11 |
|
11 | |||
12 | <%def name="page_nav()"> |
|
12 | <%def name="page_nav()"> | |
13 | ${self.menu('admin')} |
|
13 | ${self.menu('admin')} | |
14 | </%def> |
|
14 | </%def> | |
15 |
|
15 | |||
16 | <%def name="main()"> |
|
16 | <%def name="main()"> | |
17 | <div class="box"> |
|
17 | <div class="box"> | |
18 | <!-- box / title --> |
|
18 | <!-- box / title --> | |
19 | <div class="title"> |
|
19 | <div class="title"> | |
20 | ${self.breadcrumbs()} |
|
20 | ${self.breadcrumbs()} | |
21 | </div> |
|
21 | </div> | |
22 | <!-- end box / title --> |
|
22 | <!-- end box / title --> | |
23 |
|
23 | |||
|
24 | <h3>${_('Remap and rescan repositories')}</h3> | |||
24 | ${h.form(url('admin_setting', setting_id='mapping'),method='put')} |
|
25 | ${h.form(url('admin_setting', setting_id='mapping'),method='put')} | |
25 | <div class="form"> |
|
26 | <div class="form"> | |
26 | <!-- fields --> |
|
27 | <!-- fields --> | |
27 | <h3>${_('Remap and rescan repositories')}</h3> |
|
28 | ||
28 | <div class="fields"> |
|
29 | <div class="fields"> | |
29 | <div class="field"> |
|
30 | <div class="field"> | |
30 | <div class="label label-checkbox"> |
|
31 | <div class="label label-checkbox"> | |
31 | <label for="destroy">${_('rescan option')}:</label> |
|
32 | <label for="destroy">${_('rescan option')}:</label> | |
32 | </div> |
|
33 | </div> | |
33 | <div class="checkboxes"> |
|
34 | <div class="checkboxes"> | |
34 | <div class="checkbox"> |
|
35 | <div class="checkbox"> | |
35 | ${h.checkbox('destroy',True)} |
|
36 | ${h.checkbox('destroy',True)} | |
36 | <label for="checkbox-1"> |
|
37 | <label for="checkbox-1"> | |
37 | <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.'))}"> |
|
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.'))}"> | |
38 | ${_('destroy old data')}</span> </label> |
|
39 | ${_('destroy old data')}</span> </label> | |
39 | </div> |
|
40 | </div> | |
40 | </div> |
|
41 | </div> | |
41 | </div> |
|
42 | </div> | |
42 |
|
43 | |||
43 | <div class="buttons"> |
|
44 | <div class="buttons"> | |
44 | ${h.submit('rescan','rescan repositories',class_="ui-button ui-widget ui-state-default ui-corner-all")} |
|
45 | ${h.submit('rescan','rescan repositories',class_="ui-button ui-widget ui-state-default ui-corner-all")} | |
45 | </div> |
|
46 | </div> | |
46 | </div> |
|
47 | </div> | |
47 | </div> |
|
48 | </div> | |
48 | ${h.end_form()} |
|
49 | ${h.end_form()} | |
49 |
|
50 | |||
|
51 | <h3>${_('Global application settings')}</h3> | |||
50 | ${h.form(url('admin_setting', setting_id='global'),method='put')} |
|
52 | ${h.form(url('admin_setting', setting_id='global'),method='put')} | |
51 | <div class="form"> |
|
53 | <div class="form"> | |
52 | <!-- fields --> |
|
54 | <!-- fields --> | |
53 | <h3>${_('Global application settings')}</h3> |
|
55 | ||
54 | <div class="fields"> |
|
56 | <div class="fields"> | |
55 |
|
57 | |||
56 | <div class="field"> |
|
58 | <div class="field"> | |
57 | <div class="label"> |
|
59 | <div class="label"> | |
58 | <label for="input-small">${_('Application name')}:</label> |
|
60 | <label for="input-small">${_('Application name')}:</label> | |
59 | </div> |
|
61 | </div> | |
60 | <div class="input"> |
|
62 | <div class="input"> | |
61 | ${h.text('hg_app_title',size=30)} |
|
63 | ${h.text('hg_app_title',size=30)} | |
62 | </div> |
|
64 | </div> | |
63 | </div> |
|
65 | </div> | |
64 |
|
66 | |||
65 | <div class="field"> |
|
67 | <div class="field"> | |
66 | <div class="label"> |
|
68 | <div class="label"> | |
67 | <label for="input-small">${_('Realm text')}:</label> |
|
69 | <label for="input-small">${_('Realm text')}:</label> | |
68 | </div> |
|
70 | </div> | |
69 | <div class="input"> |
|
71 | <div class="input"> | |
70 | ${h.text('hg_app_realm',size=30)} |
|
72 | ${h.text('hg_app_realm',size=30)} | |
71 | </div> |
|
73 | </div> | |
72 | </div> |
|
74 | </div> | |
73 |
|
75 | |||
74 | <div class="buttons"> |
|
76 | <div class="buttons"> | |
75 | ${h.submit('save','save settings',class_="ui-button ui-widget ui-state-default ui-corner-all")} |
|
77 | ${h.submit('save','save settings',class_="ui-button ui-widget ui-state-default ui-corner-all")} | |
76 | </div> |
|
78 | </div> | |
77 | </div> |
|
79 | </div> | |
78 | </div> |
|
80 | </div> | |
79 | ${h.end_form()} |
|
81 | ${h.end_form()} | |
80 |
|
82 | |||
81 | </div> |
|
83 | </div> | |
82 | </%def> |
|
84 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now