|
1 | | -<div class="ldap dldap field {{if not (or (eq .type 2) (eq .type 5))}}hide{{end}}"> |
| 1 | +<div class="ldap dldap field {{if not (or (eq .type 2) (eq .type 5))}}gt-hidden{{end}}"> |
2 | 2 | <div class="inline required field {{if .Err_SecurityProtocol}}error{{end}}"> |
3 | 3 | <label>{{.locale.Tr "admin.auths.security_protocol"}}</label> |
4 | 4 | <div class="ui selection security-protocol dropdown"> |
|
20 | 20 | <label for="port">{{.locale.Tr "admin.auths.port"}}</label> |
21 | 21 | <input id="port" name="port" value="{{.port}}" placeholder="e.g. 636"> |
22 | 22 | </div> |
23 | | - <div class="has-tls inline field {{if not .HasTLS}}hide{{end}}"> |
| 23 | + <div class="has-tls inline field {{if not .HasTLS}}gt-hidden{{end}}"> |
24 | 24 | <div class="ui checkbox"> |
25 | 25 | <label><strong>{{.locale.Tr "admin.auths.skip_tls_verify"}}</strong></label> |
26 | 26 | <input name="skip_verify" type="checkbox" {{if .skip_verify}}checked{{end}}> |
27 | 27 | </div> |
28 | 28 | </div> |
29 | | - <div class="ldap field {{if not (eq .type 2)}}hide{{end}}"> |
| 29 | + <div class="ldap field {{if not (eq .type 2)}}gt-hidden{{end}}"> |
30 | 30 | <label for="bind_dn">{{.locale.Tr "admin.auths.bind_dn"}}</label> |
31 | 31 | <input id="bind_dn" name="bind_dn" value="{{.bind_dn}}" placeholder="e.g. cn=Search,dc=mydomain,dc=com"> |
32 | 32 | </div> |
33 | | - <div class="ldap field {{if not (eq .type 2)}}hide{{end}}"> |
| 33 | + <div class="ldap field {{if not (eq .type 2)}}gt-hidden{{end}}"> |
34 | 34 | <label for="bind_password">{{.locale.Tr "admin.auths.bind_password"}}</label> |
35 | 35 | <input id="bind_password" name="bind_password" type="password" autocomplete="off" value="{{.bind_password}}"> |
36 | 36 | </div> |
37 | 37 | <div class="binddnrequired {{if (eq .type 2)}}required{{end}} field"> |
38 | 38 | <label for="user_base">{{.locale.Tr "admin.auths.user_base"}}</label> |
39 | 39 | <input id="user_base" name="user_base" value="{{.user_base}}" placeholder="e.g. ou=Users,dc=mydomain,dc=com"> |
40 | 40 | </div> |
41 | | - <div class="dldap required field {{if not (eq .type 5)}}hide{{end}}"> |
| 41 | + <div class="dldap required field {{if not (eq .type 5)}}gt-hidden{{end}}"> |
42 | 42 | <label for="user_dn">{{.locale.Tr "admin.auths.user_dn"}}</label> |
43 | 43 | <input id="user_dn" name="user_dn" value="{{.user_dn}}" placeholder="e.g. uid=%s,ou=Users,dc=mydomain,dc=com"> |
44 | 44 | </div> |
|
115 | 115 | </div> |
116 | 116 | <!-- ldap group end --> |
117 | 117 |
|
118 | | - <div class="ldap inline field {{if not (eq .type 2)}}hide{{end}}"> |
| 118 | + <div class="ldap inline field {{if not (eq .type 2)}}gt-hidden{{end}}"> |
119 | 119 | <div class="ui checkbox"> |
120 | 120 | <label for="use_paged_search"><strong>{{.locale.Tr "admin.auths.use_paged_search"}}</strong></label> |
121 | 121 | <input id="use_paged_search" name="use_paged_search" class="use-paged-search" type="checkbox" {{if .use_paged_search}}checked{{end}}> |
122 | 122 | </div> |
123 | 123 | </div> |
124 | | - <div class="ldap field search-page-size required {{if or (not (eq .type 2)) (not .use_paged_search)}}hide{{end}}"> |
| 124 | + <div class="ldap field search-page-size required {{if or (not (eq .type 2)) (not .use_paged_search)}}gt-hidden{{end}}"> |
125 | 125 | <label for="search_page_size">{{.locale.Tr "admin.auths.search_page_size"}}</label> |
126 | 126 | <input id="search_page_size" name="search_page_size" value="{{.search_page_size}}"> |
127 | 127 | </div> |
|
0 commit comments