diff --git a/demosymfonyformsimple/demosymfonyformsimple.php b/demosymfonyformsimple/demosymfonyformsimple.php index 91667e4..dc146dd 100644 --- a/demosymfonyformsimple/demosymfonyformsimple.php +++ b/demosymfonyformsimple/demosymfonyformsimple.php @@ -10,7 +10,7 @@ public function __construct() { $this->name = 'demosymfonyformsimple'; $this->author = 'PrestaShop'; - $this->version = '1.1.0'; + $this->version = '1.0.0'; $this->need_instance = 0; $this->bootstrap = true; @@ -28,7 +28,7 @@ public function __construct() public function getContent() { - $route = $this->get('router')->generate('demo_configuration_form'); + $route = $this->get('router')->generate('demo_configuration_form_simple'); Tools::redirectAdmin($route); } } diff --git a/demosymfonyformsimple/src/Controller/DemoConfigurationController.php b/demosymfonyformsimple/src/Controller/DemoConfigurationController.php index 36c66f8..457e55c 100644 --- a/demosymfonyformsimple/src/Controller/DemoConfigurationController.php +++ b/demosymfonyformsimple/src/Controller/DemoConfigurationController.php @@ -32,7 +32,6 @@ public function index(Request $request): Response return $this->render('@Modules/demosymfonyformsimple/views/templates/admin/form.html.twig', [ 'demoConfigurationForm' => $textForm->createView(), - 'formTheme' => '@PrestaShop/Admin/TwigTemplateForm/prestashop_ui_kit.html.twig', ]); } } diff --git a/demosymfonyformsimple/src/Form/DemoConfigurationFormType.php b/demosymfonyformsimple/src/Form/DemoConfigurationFormType.php index 7cc2bac..0c71965 100644 --- a/demosymfonyformsimple/src/Form/DemoConfigurationFormType.php +++ b/demosymfonyformsimple/src/Form/DemoConfigurationFormType.php @@ -15,6 +15,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void $builder ->add('config_text', TextType::class, [ 'label' => $this->trans('Configuration text', 'Modules.DemoSymfonyFormSimple.Admin'), + 'help' => $this->trans('Maximum 32 characters', 'Modules.DemoSymfonyFormSimple.Admin'), ]); } }