Il manquait plein de fichiers dans Git
This commit is contained in:
22
local/modules/AdminOrderCreation/Hook/Back/OrderEditHook.php
Normal file
22
local/modules/AdminOrderCreation/Hook/Back/OrderEditHook.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* This file is part of the module AdminOrderCreation */
|
||||
/* */
|
||||
/* For the full copyright and license information, please view the LICENSE.txt */
|
||||
/* file that was distributed with this source code. */
|
||||
/*************************************************************************************/
|
||||
|
||||
namespace AdminOrderCreation\Hook\Back;
|
||||
|
||||
use Thelia\Core\Event\Hook\HookRenderEvent;
|
||||
|
||||
class OrderEditHook extends OrderHook
|
||||
{
|
||||
public function onOrderAddButtonJs(HookRenderEvent $event)
|
||||
{
|
||||
$event->add($this->render(
|
||||
'admin-order-creation/hook/orders.edit.js.html',
|
||||
$event->getArguments()
|
||||
));
|
||||
}
|
||||
}
|
||||
35
local/modules/AdminOrderCreation/Hook/Back/OrderHook.php
Normal file
35
local/modules/AdminOrderCreation/Hook/Back/OrderHook.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* This file is part of the module AdminOrderCreation */
|
||||
/* */
|
||||
/* For the full copyright and license information, please view the LICENSE.txt */
|
||||
/* file that was distributed with this source code. */
|
||||
/*************************************************************************************/
|
||||
|
||||
namespace AdminOrderCreation\Hook\Back;
|
||||
|
||||
use AdminOrderCreation\AdminOrderCreation;
|
||||
use Thelia\Core\Event\Hook\HookRenderEvent;
|
||||
use Thelia\Core\Hook\BaseHook;
|
||||
use Thelia\Core\Thelia;
|
||||
|
||||
class OrderHook extends BaseHook
|
||||
{
|
||||
public function onOrdersTableHeader(HookRenderEvent $event)
|
||||
{
|
||||
$event->add($this->render(
|
||||
'admin-order-creation/hook/orders.table-header.html',
|
||||
$event->getArguments()
|
||||
));
|
||||
}
|
||||
|
||||
public function onOrderJs(HookRenderEvent $event)
|
||||
{
|
||||
$event->add($this->render(
|
||||
'admin-order-creation/hook/orders.js.html',
|
||||
array_merge($event->getArguments() + [
|
||||
|
||||
])
|
||||
));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user