Show More
@@ -1,77 +1,125 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%inherit file="/base/base.html"/> |
|
3 | 3 | |
|
4 | 4 | <%def name="title()"> |
|
5 | 5 | ${_('Permissions administration')} - ${c.rhodecode_name} |
|
6 | 6 | </%def> |
|
7 | 7 | |
|
8 | 8 | <%def name="breadcrumbs_links()"> |
|
9 | 9 | ${h.link_to(_('Admin'),h.url('admin_home'))} |
|
10 | 10 | » |
|
11 | 11 | ${_('Permissions')} |
|
12 | 12 | </%def> |
|
13 | 13 | |
|
14 | 14 | <%def name="page_nav()"> |
|
15 | 15 | ${self.menu('admin')} |
|
16 | 16 | </%def> |
|
17 | 17 | |
|
18 | 18 | <%def name="main()"> |
|
19 | 19 | <div class="box"> |
|
20 | 20 | <!-- box / title --> |
|
21 | 21 | <div class="title"> |
|
22 | 22 | ${self.breadcrumbs()} |
|
23 | 23 | </div> |
|
24 | 24 | <h3>${_('Default permissions')}</h3> |
|
25 | 25 | ${h.form(url('permission', id='default'),method='put')} |
|
26 | 26 | <div class="form"> |
|
27 | 27 | <!-- fields --> |
|
28 | 28 | <div class="fields"> |
|
29 | 29 | <div class="field"> |
|
30 | 30 | <div class="label label-checkbox"> |
|
31 | 31 | <label for="anonymous">${_('Anonymous access')}:</label> |
|
32 | 32 | </div> |
|
33 | 33 | <div class="checkboxes"> |
|
34 | 34 | <div class="checkbox"> |
|
35 | 35 | ${h.checkbox('anonymous',True)} |
|
36 | 36 | </div> |
|
37 | 37 | </div> |
|
38 | 38 | </div> |
|
39 | 39 | <div class="field"> |
|
40 | <div class="label"> | |
|
40 | <div class="label label-select"> | |
|
41 | 41 | <label for="default_perm">${_('Repository permission')}:</label> |
|
42 | 42 | </div> |
|
43 | 43 | <div class="select"> |
|
44 | 44 | ${h.select('default_perm','',c.perms_choices)} |
|
45 | 45 | |
|
46 | 46 | ${h.checkbox('overwrite_default','true')} |
|
47 | 47 | <label for="overwrite_default"> |
|
48 | 48 | <span class="tooltip" |
|
49 | 49 | tooltip_title="${h.tooltip(_('All default permissions on each repository will be reset to choosen permission, note that all custom default permission on repositories will be lost'))}"> |
|
50 | 50 | ${_('overwrite existing settings')}</span> </label> |
|
51 | 51 | </div> |
|
52 | 52 | </div> |
|
53 | 53 | <div class="field"> |
|
54 | 54 | <div class="label"> |
|
55 | 55 | <label for="default_register">${_('Registration')}:</label> |
|
56 | 56 | </div> |
|
57 | 57 | <div class="select"> |
|
58 | 58 | ${h.select('default_register','',c.register_choices)} |
|
59 | 59 | </div> |
|
60 | 60 | </div> |
|
61 | 61 | <div class="field"> |
|
62 | 62 | <div class="label"> |
|
63 | 63 | <label for="default_create">${_('Repository creation')}:</label> |
|
64 | 64 | </div> |
|
65 | 65 | <div class="select"> |
|
66 | 66 | ${h.select('default_create','',c.create_choices)} |
|
67 | 67 | </div> |
|
68 | 68 | </div> |
|
69 | 69 | |
|
70 | 70 | <div class="buttons"> |
|
71 | 71 | ${h.submit('set','set',class_="ui-button ui-widget ui-state-default ui-corner-all")} |
|
72 | 72 | </div> |
|
73 | 73 | </div> |
|
74 | 74 | </div> |
|
75 | 75 | ${h.end_form()} |
|
76 | ##LDAP | |
|
77 | <h3>${_('LDAP settings')}</h3> | |
|
78 | ${h.form(url('permissions_ldap',id_iser='default'),method='put')} | |
|
79 | <div class="form"> | |
|
80 | <div class="fields"> | |
|
81 | ||
|
82 | <div class="field"> | |
|
83 | <div class="label label-checkbox"><label for="ldap_active">${_('Enable ldap')}</label></div> | |
|
84 | <div class="checkboxes"><div class="checkbox">${h.checkbox('ldap_active',True,class_='small')}</div></div> | |
|
85 | </div> | |
|
86 | <div class="field"> | |
|
87 | <div class="label"><label for="ldap_host">${_('Host')}</label></div> | |
|
88 | <div class="input">${h.text('ldap_host',class_='small')}</div> | |
|
89 | </div> | |
|
90 | <div class="field"> | |
|
91 | <div class="label"><label for="ldap_port">${_('Port')}</label></div> | |
|
92 | <div class="input">${h.text('ldap_port',class_='small')}</div> | |
|
93 | </div> | |
|
94 | <div class="field"> | |
|
95 | <div class="label label-checkbox"><label for="ldap_ldaps">${_('LDAPS')}</label></div> | |
|
96 | <div class="checkboxes"><div class="checkbox">${h.checkbox('ldap_ldaps',True,class_='small')}</div></div> | |
|
97 | </div> | |
|
98 | <div class="field"> | |
|
99 | <div class="label"><label for="ldap_dn_user">${_('Account')}</label></div> | |
|
100 | <div class="input">${h.text('ldap_dn_user',class_='small')}</div> | |
|
101 | </div> | |
|
102 | <div class="field"> | |
|
103 | <div class="label"><label for="ldap_dn_pass">${_('Password')}</label></div> | |
|
104 | <div class="input">${h.password('ldap_dn_pass',class_='small')}</div> | |
|
105 | </div> | |
|
106 | <div class="field"> | |
|
107 | <div class="label"><label for="ldap_base_dn">${_('Base DN')}</label></div> | |
|
108 | <div class="input">${h.text('ldap_base_dn',class_='small')}</div> | |
|
109 | </div> | |
|
110 | ||
|
111 | <div class="buttons"> | |
|
112 | ${h.submit('save','Save',class_="ui-button ui-widget ui-state-default ui-corner-all")} | |
|
113 | </div> | |
|
114 | </div> | |
|
115 | </div> | |
|
116 | ${h.end_form()} | |
|
76 | 117 | </div> |
|
77 | 118 | </%def> |
|
119 | ||
|
120 | ||
|
121 | ||
|
122 | ||
|
123 | ||
|
124 | ||
|
125 |
General Comments 0
You need to be logged in to leave comments.
Login now