Code

Added negate button
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 Jul 2008 06:49:55 +0000 (06:49 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 Jul 2008 06:49:55 +0000 (06:49 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11899 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc
gosa-plugins/sudo/admin/sudo/options.tpl
gosa-plugins/sudo/html/images/negate.png [new file with mode: 0644]

index a3059782a8d694e14486b62062e8a9387d159aa7..2647edc9919732c95e00deb179c584761883e198 100644 (file)
@@ -376,8 +376,8 @@ class sudo extends plugin
 
     /* Fill divlists
      */
-    $neg_img= "<img src='images/negate.png' alt='!' class='center'>"; 
-    $option = "<input type='image' src='images/negate.png'     name='neg_%ATTR%_%KEY%' class='center'>"; 
+    $neg_img= "<img src='plugins/sudo/images/negate.png' alt='!' class='center'>"; 
+    $option = "<input type='image' src='plugins/sudo/images/negate.png'     name='neg_%ATTR%_%KEY%' class='center'>"; 
     $option.= "<input type='image' src='images/lists/trash.png'  name='del_%ATTR%_%KEY%' class='center'>"; 
     foreach(array("sudoCommand","sudoHost","sudoRunAs") as $attr){
       if($this->acl_is_readable($attr)){
index 035321a6875f68de4aafaa27942924110b715afd..701c48343b48ea276cc7f7f3a24e0a5afcabbb39 100644 (file)
@@ -13,7 +13,7 @@
     <td>{$key}</td>
     <td style="width:20px;">
      {if $entry.NEGATE}
-      <img src='images/negate.png' alt="!">
+      <img src='plugins/sudo/images/negate.png' alt="!">
      {/if}
     </td>
     <td>
@@ -68,7 +68,7 @@
     {/if}
     </td>
     <td style='width: 40px; text-align:right;'>
-     <input type='image' src='images/negate.png'     name='negOption_{$key}_{$entry_key}' class='center'>
+     <input type='image' src='plugins/sudo/images/negate.png'     name='negOption_{$key}_{$entry_key}' class='center'>
      <input type='image' src='images/lists/trash.png'  name='delOption_{$key}_{$entry_key}' class='center'>
     </td>
    </tr>
diff --git a/gosa-plugins/sudo/html/images/negate.png b/gosa-plugins/sudo/html/images/negate.png
new file mode 100644 (file)
index 0000000..3240b29
Binary files /dev/null and b/gosa-plugins/sudo/html/images/negate.png differ