Code

Cut length of displayed base in "Append base to admin dn" to 20 characters
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Sep 2007 07:45:44 +0000 (07:45 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Sep 2007 07:45:44 +0000 (07:45 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7223 594d385d-05f5-0310-b6e9-bd551577e9d8

setup/class_setupStep_Ldap.inc
setup/setup_ldap.tpl

index b2c467ef646c48fa7c29bb9057e78ad79382c149..9b5f670eafdfbaf412ef674874fdbb70b750eff5 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 b54c7a6747361d21a2ca2c99ad48ba798b33807e..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>