Code

Added remove button for ppds
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 26 Oct 2005 07:23:37 +0000 (07:23 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 26 Oct 2005 07:23:37 +0000 (07:23 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1691 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_printGeneric.inc
plugins/admin/systems/printer.tpl
plugins/admin/systems/printerPPDSelectionDialog.tpl

index 0ff2bfcb48ead8762c77a408510fe83208bca3d0..b883023405c5654d2f4e6d670fbe3dc4ae460b9e 100644 (file)
@@ -252,6 +252,11 @@ class printgeneric extends plugin
       unset($this->dialog);
       $this->dialog= NULL;
     }
+    
+    if(isset($_POST['RemoveDriver'])){
+      
+      $this->gotoPrinterPPD = array();
+    }
 
     if(isset($_POST['SavePPD'])){
       $this->dialog->save_object();
index 0664fa8dc38641cd9ad8fce7a14b664c39eab138..9511a61d566c14889da36b349bee3d737459632b 100644 (file)
@@ -58,7 +58,9 @@
                                <tr>    
                                        <td>
                                                <br>
-                                               {t}PPD{/t} : {$driverInfo}<br><input type="submit" name="EditDriver" value="{t}Edit{/t}">
+                                               {t}PPD{/t} : {$driverInfo}<br>
+                                                       <input type="submit" name="EditDriver" value="{t}Edit{/t}">
+                                                       <input type="submit" name="RemoveDriver" value="{t}Remove{/t}">
                                        </td>
                                </tr>
                        </table>
index 7dfcc61d9ead0578e6fbff1e3744ed716c4b69a2..73c44ed5b3bc353b6430ec15c4ee61a85451ff84 100644 (file)
@@ -53,9 +53,9 @@
 </table>
 
 <p class="plugbottom">
-<input type="submit" name="SavePPDSelection" value="{t}use{/t}">
+<input type="submit" name="SavePPDSelection" value="{t}Use{/t}">
   &nbsp;
-<input type="submit" name="ClosePPDSelection" value="{t}close{/t}">
+<input type="submit" name="ClosePPDSelection" value="{t}Close{/t}">
 </p>
 <!--
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: