Code

Fixed department creation with already existing ou's
[gosa.git] / plugins / admin / departments / headpage.tpl
index d39f627a9461671f0525c8de59c43f721bd5ade7..48e89ab02229475087d5edf02c1f110960ad2d51 100644 (file)
@@ -1,36 +1,28 @@
 <table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=4>
 <tr>
-  <td style="vertical-align:top;">
+  <td style="vertical-align:top;width:600px">
   <div class="contentboxh">
     <p class="contentboxh">
      {t}List of departments{/t} {$hint}
     </p>
   </div>
   <div class="contentboxb">
-    <p class="contentboxb">
-     <select style="width:500px; height:450px;" name="deplist" size=15 ondblclick="this.form.edit_helper.value='1'; this.form.submit()">
-      {html_options options=$departments}
-       <option disabled>&nbsp;</option> 
-       </select>
-    <br>
-    <input type=submit value="{t}New{/t}..." name="new_department">&nbsp;
-    <input type=submit value="{t}Edit{/t}" name="select_department">&nbsp;
-    <input type=submit value="{t}Delete{/t}" name="delete_department">&nbsp;
+      {$departmentshead}
+  </div>
+  <div style='height:4px;'></div>
+  <div class="contentboxb" style="border-top:1px solid #B0B0B0;">
+      {$departments}
     <input type=hidden name="edit_helper">
-   </p>
   </div>
   </td>
   <td style="vertical-align:top;">
-   <div class="contentboxh">
+   <div class="contentboxh" style="border-bottom:1px solid #B0B0B0;">
     <p class="contentboxh"><img src="{$infoimage}" align="right" alt="[i]">{t}Information{/t}</p>
    </div>
    <div class="contentboxb">
    <p class="contentboxb">
      {t}This menu allows you to create, delete and edit selected departments. Having a large size of departments, you might prefer the range selectors on top of the department list.{/t}
    </p>
-   <p class="contentboxb">
-     {t}-Edit- and -New...- will provide an assistant to aid you when performing changes on your departments. -Delete- will ask for confirmation before deleting departments.{/t}
-   </p>
    </div>
    <br>
    <div class="contentboxh">
      <table summary="" style="width:100%;border-top:1px solid #B0B0B0;">
       {$alphabet}
      </table>
-    <table summary=""  style="width:100%;border-top:1px solid #B0B0B0;">
-                       <tr>
-                                       <td width="50%"><img alt="" src="{$tree_image}" align=middle>&nbsp;{t}Display subdepartments of{/t}</td>
-                                   <td>
-                                               <select name="depselect" size=1 onChange="mainform.submit()" title="{t}Choose the department the search will be based on{/t}">
-                                                     {html_options options=$deplist selected=$depselect}
-                                           </select>
-                                       </td>
-                       </tr>
-       </table>
-    <table summary=""  style="width:100%;border-top:1px solid #B0B0B0;">
-                       <tr>
-                               <td width="50%">
-                                               <img alt="" src="{$search_image}" align=middle>&nbsp;{t}Display departments matching{/t}</td>
-                           <td>
-                                               <input type='text' name='regex' maxlength='20' value='{$regex}' 
-                                                       title='{t}Regular expression for matching department names{/t}' onChange="mainform.submit()">
-                               </td>
-                       </tr>
-       </table>
+     <table summary=""  style="width:100%;border-top:1px solid #B0B0B0;">
+     <tr>
+     <td>
+     <LABEL for="regex"><img alt="{t}Display departments matching{/t}" src="{$search_image}" align=middle title='{t}Display departments matching{/t}'></LABEL>
+     </td>
+     <td width="99%">
+     <input type='text' name='regex' maxlength='20' style='width:99%' value='{$regex}' id='filter' 
+     title='{t}Regular expression for matching department names{/t}' onChange="mainform.submit()">
+     </td>
+     </tr>
+     </table>
                            {$apply}
    </div>
   </td>