##// END OF EJS Templates
templates for ldap settings
marcink -
r706:4b354421 beta
parent child Browse files
Show More
@@ -1,77 +1,125 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 ${_('Permissions administration')} - ${c.rhodecode_name}
5 ${_('Permissions administration')} - ${c.rhodecode_name}
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'))}
9 ${h.link_to(_('Admin'),h.url('admin_home'))}
10 &raquo;
10 &raquo;
11 ${_('Permissions')}
11 ${_('Permissions')}
12 </%def>
12 </%def>
13
13
14 <%def name="page_nav()">
14 <%def name="page_nav()">
15 ${self.menu('admin')}
15 ${self.menu('admin')}
16 </%def>
16 </%def>
17
17
18 <%def name="main()">
18 <%def name="main()">
19 <div class="box">
19 <div class="box">
20 <!-- box / title -->
20 <!-- box / title -->
21 <div class="title">
21 <div class="title">
22 ${self.breadcrumbs()}
22 ${self.breadcrumbs()}
23 </div>
23 </div>
24 <h3>${_('Default permissions')}</h3>
24 <h3>${_('Default permissions')}</h3>
25 ${h.form(url('permission', id='default'),method='put')}
25 ${h.form(url('permission', id='default'),method='put')}
26 <div class="form">
26 <div class="form">
27 <!-- fields -->
27 <!-- fields -->
28 <div class="fields">
28 <div class="fields">
29 <div class="field">
29 <div class="field">
30 <div class="label label-checkbox">
30 <div class="label label-checkbox">
31 <label for="anonymous">${_('Anonymous access')}:</label>
31 <label for="anonymous">${_('Anonymous access')}:</label>
32 </div>
32 </div>
33 <div class="checkboxes">
33 <div class="checkboxes">
34 <div class="checkbox">
34 <div class="checkbox">
35 ${h.checkbox('anonymous',True)}
35 ${h.checkbox('anonymous',True)}
36 </div>
36 </div>
37 </div>
37 </div>
38 </div>
38 </div>
39 <div class="field">
39 <div class="field">
40 <div class="label">
40 <div class="label label-select">
41 <label for="default_perm">${_('Repository permission')}:</label>
41 <label for="default_perm">${_('Repository permission')}:</label>
42 </div>
42 </div>
43 <div class="select">
43 <div class="select">
44 ${h.select('default_perm','',c.perms_choices)}
44 ${h.select('default_perm','',c.perms_choices)}
45
45
46 ${h.checkbox('overwrite_default','true')}
46 ${h.checkbox('overwrite_default','true')}
47 <label for="overwrite_default">
47 <label for="overwrite_default">
48 <span class="tooltip"
48 <span class="tooltip"
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'))}">
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 ${_('overwrite existing settings')}</span> </label>
50 ${_('overwrite existing settings')}</span> </label>
51 </div>
51 </div>
52 </div>
52 </div>
53 <div class="field">
53 <div class="field">
54 <div class="label">
54 <div class="label">
55 <label for="default_register">${_('Registration')}:</label>
55 <label for="default_register">${_('Registration')}:</label>
56 </div>
56 </div>
57 <div class="select">
57 <div class="select">
58 ${h.select('default_register','',c.register_choices)}
58 ${h.select('default_register','',c.register_choices)}
59 </div>
59 </div>
60 </div>
60 </div>
61 <div class="field">
61 <div class="field">
62 <div class="label">
62 <div class="label">
63 <label for="default_create">${_('Repository creation')}:</label>
63 <label for="default_create">${_('Repository creation')}:</label>
64 </div>
64 </div>
65 <div class="select">
65 <div class="select">
66 ${h.select('default_create','',c.create_choices)}
66 ${h.select('default_create','',c.create_choices)}
67 </div>
67 </div>
68 </div>
68 </div>
69
69
70 <div class="buttons">
70 <div class="buttons">
71 ${h.submit('set','set',class_="ui-button ui-widget ui-state-default ui-corner-all")}
71 ${h.submit('set','set',class_="ui-button ui-widget ui-state-default ui-corner-all")}
72 </div>
72 </div>
73 </div>
73 </div>
74 </div>
74 </div>
75 ${h.end_form()}
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 </div>
117 </div>
77 </%def>
118 </%def>
119
120
121
122
123
124
125
General Comments 0
You need to be logged in to leave comments. Login now