// AdminSupplyOrdersController: added confirm message before using a template to create an order
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10746 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -23,5 +23,5 @@
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
<a href="{$href}">
|
||||
<a href="{$href}" onclick="return confirm('{$confirm}');">
|
||||
<img src="../img/admin/copy_files.gif" alt="{$action}" title="{$action}" /></a>
|
||||
|
||||
@@ -1162,10 +1162,14 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
if (!array_key_exists('CreateSupplyOrder', self::$cache_lang))
|
||||
self::$cache_lang['CreateSupplyOrder'] = $this->l('Use this template to create a supply order');
|
||||
|
||||
if (!array_key_exists('CreateSupplyOrderConfirm', self::$cache_lang))
|
||||
self::$cache_lang['CreateSupplyOrderConfirm'] = $this->l('Are you sure you want to use this template?');
|
||||
|
||||
$this->context->smarty->assign(array(
|
||||
'href' => self::$currentIndex.
|
||||
'&'.$this->identifier.'='.$id.
|
||||
'&create_supply_order&token='.($token != null ? $token : $this->token),
|
||||
'confirm' => self::$cache_lang['CreateSupplyOrderConfirm'],
|
||||
'action' => self::$cache_lang['CreateSupplyOrder'],
|
||||
));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user