Code

Some style changes
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 12 Jan 2006 13:00:36 +0000 (13:00 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 12 Jan 2006 13:00:36 +0000 (13:00 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2463 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servRepository.inc
plugins/admin/systems/servRepository.tpl

index 4736c9dd3edaaf4fd338c026c80f7e7ae78b13f9..6f75496ac74ffd65550705d3107460eb5672518c 100644 (file)
@@ -110,6 +110,12 @@ class servrepository extends plugin
     $once = false;
     foreach($_POST as $name => $value){
 
+      if(preg_match("/AddRepository/",$name)){
+        $once = true;
+        $this->dialog = new servRepositorySetup($this->config,$this->dn);
+        $this->dialog->acl = $this->acl;
+      }
+
       if((preg_match("/^delete_/",$name))&&(!$once)){
 
         $value = preg_replace("/delete_/","",$name);
@@ -142,11 +148,13 @@ class servrepository extends plugin
       $this->dialog = new servRepositorySetup($this->config,$this->dn,$obj);
       $this->dialog->acl = $this->acl;
     }
+
+    /*
     if(isset($_POST['AddRepository'])){
       $this->dialog = new servRepositorySetup($this->config,$this->dn);
       $this->dialog->acl = $this->acl;
     }
+    */
 
     if(isset($_POST['repository_setup_save'])){
       $this->dialog->save_object();
index 24f1146e54f33f9c7a8764a5b688680819e75896..41a421d558e98458a5c46414adf0e98f4fb1f76f 100644 (file)
@@ -1,31 +1,41 @@
 <table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=4>
 <tr>
   <td style="vertical-align:top;width:600px">
-  <div class="contentboxh">
-    <p class="contentboxh">
+  <div class="contentboxh" style="height:20px;">
+    <p class="contentboxh" style="font-size:12px">
      {t}List of configured repositories.{/t}
     </p>
   </div>
+  <div class="contentboxb">
+       <div style='background:#F0F0F9;padding:5px;'>
+<input type="image" src="images/edittrash.png" name="AddRepository">
+       </div>
+</div>
+<div style='height:4px;'></div>          
   <div class="contentboxb" style="border-top:1px solid #B0B0B0;">
 {$Repositories}
-<input type="submit" value="{t}Add{/t}" name="AddRepository">
     <input type=hidden name="edit_helper">
   </div>
   </td>
-  <td style="vertical-align:top;">
-   <div class="contentboxh">
-    <p class="contentboxh"><img src="{$infoimage}" align="right" alt="[i]">{t}Information{/t}</p>
-   </div>
-   <div class="contentboxb" style="padding:0px;margin:0px;" ><p class="contentboxb">
-     {t}This menu allows you to create, delete and edit repository settings.{/t}
-   </p>
-   </div>
-   <br>
-   <div class="contentboxh">
-    <p class="contentboxh">
-                       <img src="{$launchimage}" align="right" alt="[F]">{t}Filters{/t}
-       </p>
-   </div>
+               <td style="vertical-align:top;">
+                       <div class="contentboxh" style="height:20px">
+                               <p class="contentboxh" style="font-size:12px">
+                                       <img src="images/info_small.png" align="right" alt="[i]">
+                                       {t}Information{/t}
+                               </p>
+                       </div>
+                       <div class="contentboxb" style="padding:0px;margin:0px;background:#f8f8f8;">
+                               <p class="contentboxb" style="border-color:#f8f8f8;">
+                                       {t}This menu allows you to create, delete and edit repository settings.{/t}
+                               </p>
+                       </div>
+                       <br>
+                       <div class="contentboxh" style="height:20px">
+                               <p class="contentboxh" style="font-size:12px">
+                                       <img src="images/small_filter.png" align="right" alt="[F]">
+                                       {t}Filters{/t}
+                               </p>
+                       </div>
    <div class="contentboxb">
      <table summary="" style="width:100%;border-top:1px solid #B0B0B0;">
       {$alphabet}