Code

Trimed length of displayed base in "Appended base to admin dn" <div> tag to 20 charac...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Sep 2007 07:44:18 +0000 (07:44 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Sep 2007 07:44:18 +0000 (07:44 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7222 594d385d-05f5-0310-b6e9-bd551577e9d8

setup/class_setupStep_Ldap.inc
setup/setup_ldap.tpl

index 8bd9076e771af414b8597f568b6c352382149850..229941f77ed9648553b9a9e2ef68ecbb3d2c6322 100644 (file)
@@ -81,6 +81,12 @@ class Step_Ldap extends setup_step
       $smarty->assign("resolved_users_count",count($tmp));
       $smarty->assign("resolve_filter",$this->resolve_filter);
     }
+
+    $base_to_append = $this->base;
+    if(strlen($base_to_append) > 20){
+      $base_to_append = substr($base_to_append,0,17)."...";
+    }
+    $smarty->assign("base_to_append",$base_to_append);
     return($smarty -> fetch (get_template_path("../setup/setup_ldap.tpl")));
   }
 
index 4ac92892a126f7d9ac8bb230ba24f770a674976e..b1ef46ee1c9addc4647550481a96cd5611b9d807 100644 (file)
@@ -74,7 +74,7 @@
                </div>
                <div class='step4_value'>
                        <input type='text' name='admin_given' maxlength='160' size='40' value='{$admin_given}'>
-                       {if $append_base_to_admin_dn},{$base}{/if}
+                       {if $append_base_to_admin_dn},{$base_to_append}{/if}
                        <input type='image' class='center' src='images/folder.png' title='{t}Select user{/t}' name='resolve_user' alt='{t}Select user{/t}'>
                </div>
        </div>