// New user assistance in the installer

This commit is contained in:
Damien Metzger
2012-12-12 20:34:13 +01:00
parent 1c5f8b968c
commit d8c4db1d1b
5 changed files with 18 additions and 3 deletions
+1
View File
@@ -194,5 +194,6 @@ return array(
'Display' => 'Afficher',
'<b>Warning: You cannot use anymore this tool to upgrade your store.</b><br /><br />You already have <b>PrestaShop version %1$s installed</b>.<br /><br />If you want to upgrade to the latest version please read our documentation: <a href="%2$s">%2$s</a>' => '<b>Attention: Vous ne pouvez plus utiliser cet outil pour mettre à jour votre boutique.</b><br /><br />Vous avez déjà <b>PrestaShop version %1$s d\'installé.</b><br /><br />Si vous souhaitez utiliser la dernière version, merci de vous référer à notre documentation pour la mise à jour : <a href="%2$s">%2$s</a>',
'PrestaShop Wizard Installer' => 'Installation de PrestaShop',
'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.' => 'PrestaShop peut vous assister si vous rencontrez un obstacle lors de l\'installation de votre boutique. Contactez notre équipe au %s et indiquez-nous l\'URL de votre boutique. Nous serons heureux de vous aider dans les dernières étapes de l\'installation !',
),
);
+6
View File
@@ -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');
}
+2
View File
@@ -110,6 +110,8 @@ ul#footer{
color:#fff;
}
div#phone_help{margin:auto;text-align:center;padding:10px 5px}
/* ****************************************************************************
generics styles
+7 -1
View File
@@ -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>&copy; 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>
+2 -2
View File
@@ -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>