Code

Only display cehck button if needed
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 26 May 2010 11:57:44 +0000 (11:57 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 26 May 2010 11:57:44 +0000 (11:57 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18750 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/setup/class_setup.inc
gosa-core/setup/class_setupStep.inc
gosa-core/setup/class_setupStep_Checks.inc
gosa-core/setup/class_setupStep_Ldap.inc
gosa-core/setup/class_setupStep_Migrate.inc
gosa-core/setup/setup_migrate.tpl

index 54694846d6994bc7270626ef71614b06e170a473..17e245ba2575a89c7dfbe2611bebe5e4ab8008d4 100644 (file)
@@ -230,7 +230,9 @@ class setup
                 $str .= "<button disabled type='submit' name='last'>".msgPool::backButton()."</button>";
             }
 
-            $str .= "<button type='submit' name='test'>"._("check")."</button>";
+            if($this->o_steps[$this->i_current]->b_displayCheckbutton){
+                $str .= "<button type='submit' name='test'>"._("check")."</button>";
+            }
             $str .= "<button type='submit' name='next'>"._("next")."</button>";
             $str .="</div>";
         }
index 8393efc9dfd556ca9c8ae13bd215679355bdab66..3d350b343fb05566686d2a64fa01677436635930 100644 (file)
@@ -28,6 +28,7 @@ class setup_step extends plugin
   var $is_active    = false;
   var $is_enabled   = false;
   var $is_completed = false;
+  var $b_displayCheckbutton = false;
 
   var $header_image = "images/setup/user.png";
 
index 2a4d698b51991655cb33700c64a8e1daa6ecc7b2..15f224c6b8d3e4f8185d6375f605e71fe703d6bc 100644 (file)
@@ -26,6 +26,8 @@ class Step_Checks extends setup_step
   var $config_checks= array();
   var $is_writeable = array();
   var $header_image = "images/setup/system.png";
+    
+    var $b_displayCheckbutton = TRUE;
 
   function Step_Checks()
   {
index eca54c38a809806ade702a4075aba2d716336055..cf0370712e984f5aea7eb22cce501a60d9e06a5e 100644 (file)
@@ -42,6 +42,7 @@ class Step_Ldap extends setup_step
 
   var $header_image= "images/setup/ldap.png";
 
+    var $b_displayCheckbutton = TRUE;
   function Step_Ldap()
   {
     $this->update_strings();
index a761be09308c0f57dbd8b040446435a0817914f3..e352b10bda76b3351818b9620cdab7a13a0ca5e9 100644 (file)
@@ -39,6 +39,7 @@ class Step_Migrate extends setup_step
     /* Root object classes */
     var $rootOC_migrate_dialog = FALSE;
     var $rootOC_details = array();
+    var $b_displayCheckbutton = TRUE;
 
     function Step_Migrate()
     {
@@ -507,7 +508,7 @@ class Step_Migrate extends setup_step
     function execute()
     {
         /* Initialise checks if this is the first call */
-        if(!$this->checks_initialised || isset($_POST['reload'])){
+        if(!$this->checks_initialised || isset($_POST['test'])){
             $this->initialize_checks();
             $this->checks_initialised = TRUE;
         }
index 9f17d8ffea30e13bf52e192984fc49f7015dc5b8..0ef474f1575e212f26b7a4362ceabd67617fe6e7 100644 (file)
@@ -16,8 +16,6 @@
                 </tr>
             {/foreach}
         </table>
-               <br>
-               <button type='submit' name='reload'>{t}Check again{/t}</button>
 
        {elseif $method == "rootOC_migrate_dialog"}