// New user assistance in the installer
This commit is contained in:
@@ -156,11 +156,15 @@ function install_error(step, errors)
|
||||
var display = '<ol>';
|
||||
$.each(list_errors, function(k, v)
|
||||
{
|
||||
if (typeof psuser_assistance != 'undefined')
|
||||
psuser_assistance.setStep('install_process_error', {'error':v});
|
||||
display += '<li>'+v+'</li>';
|
||||
});
|
||||
display += '</ol>';
|
||||
$('#process_step_'+step.key+' .error_log').html(display).show();
|
||||
}
|
||||
if (typeof psuser_assistance != 'undefined')
|
||||
psuser_assistance.setStep('install_process_error');
|
||||
}
|
||||
|
||||
function install_success()
|
||||
@@ -171,4 +175,6 @@ function install_success()
|
||||
$('#install_process_form').slideUp();
|
||||
$('#install_process_success').slideDown();
|
||||
$('.stepList li:last-child').addClass('ok');
|
||||
if (typeof psuser_assistance != 'undefined')
|
||||
psuser_assistance.setStep('install_process_success');
|
||||
}
|
||||
@@ -110,6 +110,8 @@ ul#footer{
|
||||
color:#fff;
|
||||
}
|
||||
|
||||
div#phone_help{margin:auto;text-align:center;padding:10px 5px}
|
||||
|
||||
|
||||
/* ****************************************************************************
|
||||
generics styles
|
||||
|
||||
@@ -15,7 +15,9 @@
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div id="phone_help">
|
||||
<?php echo $this->l('If you are experiencing problems during the installation process, please call our team at %s and one of our experts will be happy to help.', $this->getPhone()) ?>
|
||||
</div>
|
||||
</div><!-- div id="container" -->
|
||||
|
||||
<ul id="footer">
|
||||
@@ -26,5 +28,9 @@
|
||||
<li><a href="http://www.prestashop.com/contact.php" title="<?php echo $this->l('Contact us!'); ?>" target="_blank"><?php echo $this->l('Contact us!'); ?></a> | </li>
|
||||
<li>© 2005-<?php echo date('Y'); ?></li>
|
||||
</ul>
|
||||
<script type="text/javascript">
|
||||
if (typeof psuser_assistance != 'undefined')
|
||||
psuser_assistance.setStep('install_<?php echo addslashes($this->step) ?>');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -17,6 +17,7 @@
|
||||
<script type="text/javascript" src="theme/js/jquery.ajaxfileupload.js"></script>
|
||||
<script type="text/javascript" src="theme/js/jquery.chosen/jquery.chosen.js"></script>
|
||||
<script type="text/javascript" src="theme/js/install.js"></script>
|
||||
<script type="text/javascript" src="//www.prestashop.com/js/user-assistance.js"></script>
|
||||
<?php if (file_exists(_PS_INSTALL_PATH_.'theme/js/'.$this->step.'.js')): ?>
|
||||
<script type="text/javascript" src="theme/js/<?php echo $this->step ?>.js"></script>
|
||||
<?php endif; ?>
|
||||
@@ -82,5 +83,4 @@
|
||||
<li <?php if ($this->isStepFinished($step)): ?>class="ok"<?php endif; ?>><?php echo $this->l('menu_'.$this->step) ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user