]> git.sur5r.net Git - contagged/blobdiff - templates/header.tpl
catch a few more LDAP errors and display them in a nicer way
[contagged] / templates / header.tpl
index 4939c97ba313b34770fdec30ffd59557ffdf8819..224538e931c6339189597e502338747b31655c5f 100644 (file)
@@ -28,9 +28,6 @@
     <script src="scripts/gui.js" type="text/javascript"></script>
 
     <script type="text/javascript">
-        {if $LDAPERRORS != ''}
-            window.alert('{$lang.err_ldap}:\n\n{$LDAPERRORS|escape:quotes}');
-        {/if}
         {if $entry.dn}
             DN = '{$entry.dn|escape:javascript}';
         {/if}
 <body>
 
 <div id="ldapab">
+    {if $LDAPERRORS != ''}
+        <div class="ldaperror" onclick="this.style.display = 'none'">
+            <h3>{$lang.err_ldap}</h3>
+            <p>{$LDAPERRORS|escape}</p>
+        </div>
+    {/if}
+
 
     <div id="titlerow">
         <div class="logo">