From 47c5c8798d430ad042f68b2c23bc35dda8dc0b2d Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 16 Apr 2007 06:14:20 +0000 Subject: [PATCH] Added a step successfully finished. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6051 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/themes/default/style.css | 2 +- setup/class_setup.inc | 24 ++++++++++++++++++++---- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/html/themes/default/style.css b/html/themes/default/style.css index 1cb25177e..823e5ca57 100644 --- a/html/themes/default/style.css +++ b/html/themes/default/style.css @@ -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; } diff --git a/setup/class_setup.inc b/setup/class_setup.inc index 8ff19b506..4dbd86a48 100644 --- a/setup/class_setup.inc +++ b/setup/class_setup.inc @@ -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 = ""._("Completed")." "; + }else{ + $s = "  "; + } if($_SESSION['js']){ $str .="
"; + if($b_enabled){ if($b_active){ $str .= ""; $str .= ""; $str .= "
"; }else{ $str .= ""; $str .= ""; } }else{ $str .= ""; } $str .= "" ; -- 2.30.2