Init du module DHL (sur la base du module Colissimo)
This commit is contained in:
31
local/modules/DHL/Form/Configuration.php
Normal file
31
local/modules/DHL/Form/Configuration.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace DHL\Form;
|
||||
|
||||
use DHL\DHL;
|
||||
use DHL\Model\Config\Base\DHLConfigValue;
|
||||
use Thelia\Core\Translation\Translator;
|
||||
use Thelia\Form\BaseForm;
|
||||
|
||||
/**
|
||||
* Class Configuration
|
||||
* @package DHL\Form
|
||||
* @author Laurent LE CORRE <laurent@thecoredev.fr>
|
||||
*/
|
||||
class Configuration extends BaseForm
|
||||
{
|
||||
protected function buildForm()
|
||||
{
|
||||
$this->formBuilder
|
||||
->add(
|
||||
DHL::WEBSERVICE_URL,
|
||||
'text',
|
||||
[
|
||||
'label' => $this->translator->trans('DHL tracking URL', [], DHL::DOMAIN_NAME),
|
||||
'label_attr' => [
|
||||
'help' => $this->translator->trans('This is the URL of the DHL tracking service.', [], DHL::DOMAIN_NAME)
|
||||
]
|
||||
]
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user