From 9c5b62f3eb18f909f0c3c4243cc3a4bbe304a863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Bernigaud?= <come.bernigaud@opensides.be> Date: Tue, 19 Aug 2014 17:34:56 +0200 Subject: [PATCH] Fixes #3239 Fixed setup look --- html/themes/default/setup.css | 45 ++++++++++------------------------- setup/class_setup.inc | 44 +++++++++++++++++----------------- setup/setup_migrate.tpl | 2 +- 3 files changed, 36 insertions(+), 55 deletions(-) diff --git a/html/themes/default/setup.css b/html/themes/default/setup.css index 0d443af97..461aeb46e 100644 --- a/html/themes/default/setup.css +++ b/html/themes/default/setup.css @@ -1,15 +1,15 @@ /********* * Setup *********/ -body.setup a.plugtop img { -height:48px; -} html.ltr body.setup div#header_left .plugtop { margin-left:80px; } html.rtl body.setup div#header_left .plugtop { margin-right:80px; } +body.setup .plugin_window { +border-radius:5px; +} div.setup_menu { background-color:#F8F8F8; @@ -19,7 +19,7 @@ border-bottom:1px solid #B0B0B0; /* default.*/ div.default { -padding:2px; +padding:2px 10px; vertical-align:middle; } @@ -28,49 +28,30 @@ width:200px; } /* The box used for each setup step */ -a.navigation_element,div.navigation_element { +#menucell.setup_navigation li.menuitem { text-decoration:none; padding-top:8px; padding-bottom:8px; -border-top:1px solid #AAA; -width:100%; +margin-top:5px; +margin-bottom:5px; } -div.navigation_element:first-child, div.navigation_element_active:first-child { -border-top:none; -margin-top:0; -} - -/* The box used for each setup step */ -a.navigation_element_active,div.navigation_element_active { -text-decoration:none; -width:100%; -padding-top:8px; -padding-bottom:8px; -border-top:1px solid #AAA; -background-color:#F0F0F0; +#menucell.setup_navigation li.menuitem > a { +margin:0; } /* An enabled setup step will use this style in navigation*/ -div.navigation_title_active { -font-size:1.2em; -background-color:#F0F0F0; -font-weight:bold; +li.menuitem.menucurrent a.navigation_title { cursor:default; -padding:3px; } /* Disabled setup steps */ -div.navigation_title_disabled { -font-size:1.2em; -font-weight:bold; -padding:3px; +li.menuitem.disabled a.navigation_title { cursor:default; -text-decoration:none; color:#AAA; } /* Disabled setup steps */ -div.navigation_title_inactive { +li.menuitem a.navigation_title { font-size:1.2em; font-weight:bold; text-decoration:none; @@ -79,7 +60,7 @@ padding:3px; } /* The style for the info of an active setup */ -div.navigation_info { +li.menuitem a.navigation_info { font-size:1em; color:#000; padding:4px 4px 3px 23px; diff --git a/setup/class_setup.inc b/setup/class_setup.inc index 71b7afc0c..3931e9747 100644 --- a/setup/class_setup.inc +++ b/setup/class_setup.inc @@ -177,7 +177,7 @@ class setup /* Create navigation menu */ function get_navigation_html() { - $str = ""; + $str = '<ul class="menu"><li><a>FusionDirectory Setup</a><ul>'; foreach ($this->o_steps as $key => $step) { $step->update_strings(); @@ -189,29 +189,30 @@ class setup $b_completed = $step->is_completed(); if ($b_completed) { - $s = "<img src='geticon.php?context=status&icon=task-complete&size=16' alt='"._("Completed")."' class='center optional'> "; + $s = '<img src="geticon.php?context=status&icon=task-complete&size=16" alt="'._('Completed').'" class="center optional"/> '; } else { - $s = "<img src='images/empty.png' alt=' ' class='center optional'> "; + $s = '<img src="images/empty.png" alt=" " class="center optional"/> '; } if ($b_enabled) { if ($b_active) { - $str .= "<div class='navigation_element_active'>"; - $str .= "<div class='navigation_title_active'>".$s.$s_title."</div>"; - $str .= "<div class='navigation_info'>".$s_info."</div>"; - $str .= "</div>"; + $str .= '<li class="menuitem menucurrent" title="'.$s_info.'">'; + $str .= '<a class="navigation_title">'.$s.$s_title.'</a>'; + $str .= '<a class="navigation_info">'.$s_info.'</a>'; + $str .= '</li>'; } else { - $str .= "<div class='navigation_element'>"; - $str .= "<div onClick='document.mainform.setup_goto_step.value=\"$key\";document.mainform.submit();' - class='navigation_title_inactive'>".$s.$s_title."</div>"; - $str .= "</div>"; + $str .= '<li class="menuitem" title="'.$s_info.'">'; + $str .= '<a onClick="document.mainform.setup_goto_step.value=\''.$key.'\';document.mainform.submit();" + class="navigation_title">'.$s.$s_title.'</a>'; + $str .= '</li>'; } } else { - $str .= "<div class='navigation_element'>"; - $str .= "<div class='navigation_title_disabled'>".$s.$s_title."</div>"; - $str .= "</div>"; + $str .= '<li class="menuitem disabled" title="'.$s_info.'">'; + $str .= '<a class="navigation_title">'.$s.$s_title.'</a>'; + $str .= '</li>'; } } + $str .= '</li></ul>'; return $str; } @@ -222,18 +223,17 @@ class setup * if the currently opened step is a sub dialog */ if ($this->o_steps[$this->i_current]->dialog) { - $str = ""; + $str = ''; } else { - $str = "<p class='seperator' style='margin-bottom:10px;'> </p>"; - $str .= " <div style='text-align:right;float:top;'>"; + $str = ' <p class="plugbottom">'; if (isset($this->o_steps[$this->i_current - 1]) && $this->o_steps[$this->i_current - 1]->is_enabled()) { - $str .= "<input type='submit' name='last' value='".msgPool::backButton()."'>"; + $str .= '<input type="submit" name="last" value="'.msgPool::backButton().'"/>'; } else { - $str .= "<input type='button' name='last' value='".msgPool::backButton()."' disabled>"; + $str .= '<input type="button" name="last" value="'.msgPool::backButton().'" disabled="disabled"/>'; } - $str .= " "; - $str .= "<input type='submit' name='next' value='"._("Next")."'>"; - $str .= "</div>"; + $str .= ' '; + $str .= '<input type="submit" name="next" value="'._('Next').'"/>'; + $str .= '</p>'; } return $str; } diff --git a/setup/setup_migrate.tpl b/setup/setup_migrate.tpl index c5eb7ea2b..9397b46f6 100644 --- a/setup/setup_migrate.tpl +++ b/setup/setup_migrate.tpl @@ -1,5 +1,5 @@ <div> - <div class='default'> + <div class="default"> {if $method == "default"} <p>{t}During the LDAP inspection, we're going to check for several common pitfalls that may occur when migration to FusionDirectory base LDAP administration. You may want to fix the problems below, in order to provide smooth services.{/t} -- GitLab