]> source.dussan.org Git - nextcloud-server.git/commitdiff
add checkbox for experienced users to server tab
authorArthur Schiwon <blizzz@owncloud.com>
Tue, 7 Oct 2014 14:29:06 +0000 (16:29 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Tue, 7 Oct 2014 14:43:58 +0000 (16:43 +0200)
apps/user_ldap/css/settings.css
apps/user_ldap/lib/configuration.php
apps/user_ldap/templates/part.wizard-server.php

index 3051cc8058e1e8c5576b4777e7ac198c25cbd52a..48a8626ea9aedca8c031424b7d15fbe817f88a6b 100644 (file)
@@ -6,6 +6,7 @@
 .tablerow {
        display: table-row;
        white-space: nowrap;
+       text-align: left;
 }
 
 .tablerow input, .tablerow textarea {
        height: 15px;
 }
 
+#ldap .tablerow label {
+       margin-left: 3px;
+}
+
 .invisible {
        visibility: hidden;
 }
        vertical-align: bottom;
 }
 
+#ldap input[type=checkbox] {
+       width: 15px !important;
+}
+
 select[multiple=multiple] + button {
        height: 28px;
        padding-top: 6px !important;
index 4cb00561b3f32469e94316247e2a670394c9aa0d..75d3d5ea04d6eb2a899e02b0a88da3084fc103ce 100644 (file)
@@ -69,6 +69,7 @@ class Configuration {
                'ldapConfigurationActive' => false,
                'ldapAttributesForUserSearch' => null,
                'ldapAttributesForGroupSearch' => null,
+               'ldapExperiencedAdmin' => false,
                'homeFolderNamingRule' => null,
                'hasPagedResultSupport' => false,
                'hasMemberOfFilterSupport' => false,
@@ -391,6 +392,7 @@ class Configuration {
                        'last_jpegPhoto_lookup'                         => 0,
                        'ldap_nested_groups'                    => 0,
                        'ldap_paging_size'                                      => 500,
+                       'ldap_experienced_admin'            => 0,
                );
        }
 
@@ -444,6 +446,7 @@ class Configuration {
                        'last_jpegPhoto_lookup'                         => 'lastJpegPhotoLookup',
                        'ldap_nested_groups'                => 'ldapNestedGroups',
                        'ldap_paging_size'                  => 'ldapPagingSize',
+                       'ldap_experienced_admin'            => 'ldapExperiencedAdmin'
                );
                return $array;
        }
index 422faad028b0679b401e76439603c85ac35d4983..b829c775ad0d963f036f3b3bb21bc14969143f9b 100644 (file)
                                </textarea>
                        </div>
 
+                       <div class="tablerow left">
+                               <label for="ldap_experienced_admin" class="tablecell">
+                                       <?php p($l->t('I am familiar with LDAP?'));?>
+                               </label>
+
+                               <input type="checkbox" id="ldap_experienced_admin" value="1"
+                                       name="ldap_experienced_admin" class="tablecell lwautosave"
+                                       title="<?php p($l->t('Avoids automatic LDAP requests. Better for bigger setups, but requires some LDAP knowledge.'));?>"
+                                       />
+                       </div>
+
                        <div class="tablerow">
                                <div class="tablecell ldapWizardInfo invisible">&nbsp;
                                </div>