[Legacy] Fix user wizard finish screen re-direction

- Look into the whatnext input value and redirect
This commit is contained in:
Clemente Raposo 2022-01-21 18:01:19 +00:00 committed by balumahendran
parent 541522f0df
commit 961536b014
4 changed files with 109 additions and 3 deletions

View file

@ -0,0 +1,87 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 23.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 595.3 419.5" style="enable-background:new 0 0 595.3 419.5;" xml:space="preserve">
<style type="text/css">
.st0{fill:#474154;}
.st1{fill:#E3A025;}
</style>
<g>
<g>
<path class="st0" d="M75.5,172.9c-0.4,0.7-0.9,1.3-1.4,1.6c-0.5,0.3-1.1,0.5-1.8,0.5c-0.7,0-1.5-0.3-2.4-0.8
c-0.9-0.5-1.9-1.2-3.1-1.8c-1.2-0.7-2.6-1.3-4.2-1.8c-1.6-0.6-3.5-0.8-5.7-0.8c-2,0-3.7,0.2-5.2,0.7c-1.5,0.5-2.7,1.1-3.7,2
c-1,0.8-1.8,1.9-2.3,3c-0.5,1.2-0.7,2.5-0.7,3.9c0,1.8,0.5,3.3,1.5,4.5c1,1.2,2.3,2.2,4,3.1c1.7,0.8,3.6,1.6,5.7,2.3
c2.1,0.7,4.3,1.4,6.5,2.1c2.2,0.8,4.4,1.6,6.5,2.7c2.1,1,4,2.3,5.7,3.8c1.7,1.5,3,3.4,4,5.6c1,2.2,1.5,4.9,1.5,8.1
c0,3.5-0.6,6.7-1.8,9.7c-1.2,3-2.9,5.7-5.2,7.9c-2.3,2.2-5.1,4-8.3,5.3c-3.3,1.3-7.1,1.9-11.3,1.9c-2.4,0-4.8-0.2-7.2-0.7
c-2.4-0.5-4.6-1.2-6.8-2c-2.2-0.9-4.2-1.9-6.1-3.2c-1.9-1.2-3.6-2.6-5.1-4.1l4.2-6.8c0.4-0.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6,0-3,0.3-4.2,1c-1.2,0.7-2.2,1.6-3,2.8
c-0.8,1.2-1.4,2.5-1.8,4c-0.4,1.5-0.6,3-0.6,4.6c0,2.7,0.6,4.8,1.9,6.3C364.4,209.4,366.2,210.1,368.5,210.1z"/>
<path class="st1" d="M419.6,181.2l-6.5,54.4h-12.9l6.5-54.4H419.6z M422.9,165.4c0,1.1-0.2,2.2-0.7,3.2c-0.5,1-1.1,1.9-1.9,2.6
c-0.8,0.7-1.7,1.3-2.7,1.8c-1,0.4-2,0.7-3.1,0.7c-1,0-2-0.2-3-0.7c-1-0.4-1.8-1-2.5-1.8c-0.7-0.7-1.3-1.6-1.8-2.6
c-0.4-1-0.7-2-0.7-3.2c0-1.1,0.2-2.2,0.7-3.2c0.5-1,1.1-1.9,1.8-2.7c0.7-0.8,1.6-1.4,2.6-1.8c1-0.4,2-0.7,3-0.7
c1.1,0,2.1,0.2,3.1,0.7c1,0.4,1.9,1,2.6,1.8c0.8,0.7,1.4,1.6,1.8,2.7C422.7,163.1,422.9,164.2,422.9,165.4z"/>
<path class="st1" d="M425.8,235.6l9.5-78.8h12.9l-9.6,78.8H425.8z"/>
<path class="st1" d="M470.9,181.2l-6.5,54.4h-12.9l6.5-54.4H470.9z M474.2,165.4c0,1.1-0.2,2.2-0.7,3.2c-0.5,1-1.1,1.9-1.9,2.6
c-0.8,0.7-1.7,1.3-2.7,1.8c-1,0.4-2,0.7-3.1,0.7c-1,0-2-0.2-3-0.7c-1-0.4-1.8-1-2.5-1.8c-0.7-0.7-1.3-1.6-1.8-2.6
c-0.4-1-0.7-2-0.7-3.2c0-1.1,0.2-2.2,0.7-3.2c0.5-1,1.1-1.9,1.8-2.7c0.7-0.8,1.6-1.4,2.6-1.8c1-0.4,2-0.7,3-0.7
c1.1,0,2.1,0.2,3.1,0.7c1,0.4,1.9,1,2.6,1.8c0.8,0.7,1.4,1.6,1.8,2.7C474,163.1,474.2,164.2,474.2,165.4z"/>
<path class="st1" d="M481.5,224.5c0-0.2,0-0.5,0-0.9c0-0.3,0-0.8,0.1-1.5c0.1-0.7,0.1-1.5,0.3-2.6c0.1-1.1,0.3-2.5,0.5-4.2l3-24.4
h-5.1c-0.6,0-1.2-0.2-1.6-0.7c-0.4-0.5-0.5-1.1-0.4-2.1l0.6-5.2l8.3-1.4l4.3-14.8c0.2-0.7,0.6-1.3,1.1-1.6
c0.5-0.4,1.1-0.6,1.9-0.6h7l-2.1,17.1h13.1l-1.1,9.3h-13.2l-2.9,23.7c-0.2,1.4-0.3,2.6-0.4,3.4c-0.1,0.8-0.2,1.5-0.2,2
c-0.1,0.5-0.1,0.8-0.1,1c0,0.2,0,0.3,0,0.4c0,1.3,0.3,2.4,1,3.2c0.7,0.8,1.6,1.2,2.8,1.2c0.7,0,1.4-0.1,1.9-0.3
c0.5-0.2,1-0.4,1.4-0.6c0.4-0.2,0.7-0.4,1.1-0.6c0.3-0.2,0.6-0.3,0.9-0.3c0.4,0,0.7,0.1,0.9,0.3c0.2,0.2,0.4,0.5,0.6,0.9l2.8,6.4
c-1.9,1.6-4.1,2.8-6.4,3.6c-2.4,0.8-4.7,1.2-7.2,1.2c-3.9,0-6.9-1-9.1-3.1C482.8,231.3,481.6,228.3,481.5,224.5z"/>
<path class="st1" d="M568.3,181.2l-35.9,69.5c-0.5,0.9-1.1,1.6-1.7,2c-0.7,0.4-1.5,0.7-2.5,0.7h-9.7l12.1-21.9l-13.7-50.2h11
c1,0,1.7,0.2,2.1,0.7c0.5,0.5,0.8,1.1,1,1.7l6.7,28.2c0.4,1.8,0.6,3.6,0.8,5.4c0.4-0.9,0.8-1.8,1.2-2.7c0.4-0.9,0.8-1.8,1.2-2.7
l13.4-28.2c0.4-0.7,0.9-1.3,1.5-1.7c0.7-0.4,1.4-0.7,2.1-0.7H568.3z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.5 KiB

View file

@ -187,8 +187,21 @@ class UsersController extends SugarController
$_POST['default_locale_name_format'], 0, 'global');
}

$next = $_POST['whatnext'] ?? '';

$base = 'index.php?action=index&module=Home';
$nextActions = [
'users' => 'index.php?action=index&module=Users' ,
'finish' => 'index.php?action=index&module=Home',
'settings' => 'index.php?action=index&module=Administration',
'studio' => 'index.php?action=index&module=ModuleBuilder?type=studio',
'import' => 'index.php?module=Import&action=step1&import_module=Administration',
];

$returnUrl = $nextActions[$next] ?? $base;

// redirect to home
SugarApplication::redirect('index.php?action=index&module=Home');
SugarApplication::redirect($returnUrl);

}

@ -214,4 +227,4 @@ class UsersController extends SugarController
SugarApplication::redirect("index.php?module=Home&action=index");
}
}
}
}

View file

@ -80,6 +80,7 @@
<div class="col panel">
<h1>{$MOD.LBL_WIZARD_WELCOME_TITLE}</h1>
<div class="open-crm-txt"> Open Source CRM For The World </div>
<div class="wizard-mainlbl">Maintained by <img src=include/images/sa_logo.svg style="height:60px;"></div>
<div class="wizard-lbl">{$MOD.LBL_WIZARD_WELCOME_NOSMTP}</div>
<div class="wizard-btn">
<input title="{$MOD.LBL_WIZARD_NEXT_BUTTON}"

View file

@ -91,6 +91,7 @@
background: rgba(255,255,255,0.7);
display: flex;
flex-direction: column;
width: 50%;
@media (max-width: 750px) {
background: transparent;
box-shadow: none;
@ -108,8 +109,12 @@
text-transform: uppercase;
border-bottom: 1px solid #958383;
}
.wizard-mainlbl {
display: flex;
justify-content: center;
align-items: center;
}
.wizard-lbl {
margin-top: 0.8em;
margin-bottom: 0.5em;
padding: 0.1em;
}