Code

Updated cd image generation
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 10 Nov 2006 10:22:44 +0000 (10:22 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 10 Nov 2006 10:22:44 +0000 (10:22 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5065 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_divListSystem.inc
plugins/admin/systems/gencd.tpl [new file with mode: 0644]

index c5665751c8d9a00b726c01262ab5b7c419e0ba68..1d465a18a66cf79d0c6872fff8c382839b67088c 100644 (file)
@@ -6,6 +6,7 @@ class divListSystem extends MultiSelectWindow
   /* Current base */
   var $selectedBase       = "";
   var $departments        = array();
+  var $do_iso             = FALSE;
 
   /* Regex */
   var $Regex              = "*";
@@ -33,6 +34,10 @@ class divListSystem extends MultiSelectWindow
     $this->parent       = $parent;
     $this->ui           = get_userinfo();
 
+    if (search_config($config->data['TABS'], "workgeneric", "ISOCMD")){
+      $this->do_iso= TRUE;
+    }
+
     /* Set list strings */
     $this->SetTitle(_("List of systems"));
     $this->SetSummary(_("List of systems"));
@@ -175,7 +180,7 @@ class divListSystem extends MultiSelectWindow
         $action2 = "";
       }
 
-      if(in_array("gotoWorkstation",$val['objectClass'])){
+      if($this->do_iso && in_array("gotoWorkstation",$val['objectClass'])){
         $action2= "<input class='center' type='image' src='images/cdrom.png' alt='"._("Create CD")."'   name='gen_cd_%KEY%' title='"._("Create FAI CD")."'>".$action2;
       }
 
diff --git a/plugins/admin/systems/gencd.tpl b/plugins/admin/systems/gencd.tpl
new file mode 100644 (file)
index 0000000..d5f3bc3
--- /dev/null
@@ -0,0 +1,17 @@
+<p>
+ <b>{t}This dialog is not ready yet. Please hold the line.{/t}</b>
+</p>
+
+<p class="plugbottom">
+  <input type=submit name="cd_create" value="{t}Create ISO-Image{/t}">
+  &nbsp;
+  <input type=submit name="cd_cancel" value="{t}Cancel{/t}">
+</p>
+
+<!-- Place cursor -->
+<script language="JavaScript" type="text/javascript">
+  <!-- // First input field on page
+  nextfield= 'new_password';
+  document.mainform.new_password.focus();
+  -->
+</script>