Code

Added a step successfully finished.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 16 Apr 2007 06:14:20 +0000 (06:14 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 16 Apr 2007 06:14:20 +0000 (06:14 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6051 594d385d-05f5-0310-b6e9-bd551577e9d8

html/themes/default/style.css
setup/class_setup.inc

index 1cb25177eb123526f1f37f231da9a1458ec3b013..823e5ca578a3d72c651a59aed88934774f03fbe6 100644 (file)
@@ -943,7 +943,7 @@ div.navigation_title_inactive {
 div.navigation_info {
        font-size: 1em;
        color: black;
-       padding: 4px 4px 3px 10px;
+       padding: 4px 4px 3px 23px;
        margin: 0px;
        cursor: pointer;
 }
index 8ff19b5067c8cf647aadb00c14a5a2bf3cf25383..4dbd86a48d51d1e1f3bb8647ffd97b6ee32b9efc 100644 (file)
@@ -106,7 +106,15 @@ class setup
         }
       }
     }
-  
+    /* Disable all following steps, if one step isn't compelted right now .*/
+    for($i = 1 ; $i <= $this->i_steps ; $i ++ ){
+      if($this->o_steps[$i]->is_completed()){
+      }else{
+        $this->disable_steps_from($i+1);
+      }
+    }
     $step = -1;
 
     if(isset($_POST['setup_goto_step'])){
@@ -163,27 +171,35 @@ class setup
       $s_info     = $step -> get_small_info();
       $b_active   = $step -> is_active();
       $b_enabled  = $step -> is_enabled();
+      $b_completed= $step -> is_completed();
+
+      if($b_completed){
+        $s = "<img src='images/true.png' alt='"._("Completed")."' class='center'>&nbsp;"; 
+      }else{
+        $s = "<img src='images/empty.png' alt=' ' class='center'>&nbsp;";
+      }
 
       if($_SESSION['js']){
 
         $str .="<div >";
+    
         if($b_enabled){
           if($b_active){
             $str .= "<div class='navigation_element_active'>";
             $str .= "<div onClick='document.mainform.setup_goto_step.value=\"$key\";document.mainform.submit();'
-              class='navigation_title_active'>".$s_title."</div>";
+              class='navigation_title_active'>".$s.$s_title."</div>";
             $str .= "<div onClick='document.mainform.setup_goto_step.value=\"$key\";document.mainform.submit();'
               class='navigation_info'>".$s_info."</div>";
             $str .= "</div>";
           }else{
             $str .= "<div class='navigation_element'>";
             $str .= "<div onClick='document.mainform.setup_goto_step.value=\"$key\";document.mainform.submit();'
-              class='navigation_title_inactive'>".$s_title."</div>";
+              class='navigation_title_inactive'>".$s.$s_title."</div>";
             $str .= "</div>";
           }
         }else{
           $str .= "<div class='navigation_element'>";
-          $str .= "<div class='navigation_title_disabled'>".$s_title."</div>";
+          $str .= "<div class='navigation_title_disabled'>".$s.$s_title."</div>";
           $str .= "</div>";
         }
         $str .= "</div>" ;