Code

Updated setup steps
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 26 May 2010 12:05:02 +0000 (12:05 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 26 May 2010 12:05:02 +0000 (12:05 +0000)
-Do not display next button on last page

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18752 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/setup/class_setup.inc
gosa-core/setup/class_setupStep_Finish.inc

index 17e245ba2575a89c7dfbe2611bebe5e4ab8008d4..2cb1010285661c1ccb3e71425711ead062a43ac1 100644 (file)
@@ -233,7 +233,10 @@ class setup
             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>";
+
+            if(isset($this->o_steps[$this->i_current +1])){
+                $str .= "<button type='submit' name='next'>"._("next")."</button>";
+            }
             $str .="</div>";
         }
         return($str);
index a64fbcd05923e6b33d260f267773b05c56558737..aa787833cc73171392ecc6a49587880cc8e143b9 100644 (file)
@@ -26,6 +26,8 @@ class Step_Finish extends setup_step
   var $cfg_file_written = FALSE;
   var $header_image = "images/setup/server.png";
 
+  var $b_displayCheckbutton = TRUE;
+
   function Step_Finish()
   {
     $this->update_strings();