Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Krystian Podemski <[email protected]>
  • Loading branch information
thomasnares and kpodemski authored Jul 25, 2023
1 parent 62aaa6b commit ffa4ab6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions demosymfonyformsimple/demosymfonyformsimple.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
]);
}
}

0 comments on commit ffa4ab6

Please sign in to comment.