diff --git a/src/Form/Type/TestType.php b/src/Form/Type/TestType.php new file mode 100644 index 000000000..8eb6d5389 --- /dev/null +++ b/src/Form/Type/TestType.php @@ -0,0 +1,21 @@ +add( + 'barcode', + TextType::class, + ) + ; + } +} diff --git a/src/Twig/Components/TestComponent.php b/src/Twig/Components/TestComponent.php new file mode 100644 index 000000000..70cde51ca --- /dev/null +++ b/src/Twig/Components/TestComponent.php @@ -0,0 +1,37 @@ +submitForm(); + $this->resetForm(); + } + + protected function instantiateForm(): FormInterface + { + return $this->createForm(TestType::class); + } + + private function getDataModelValue(): ?string + { + return 'norender|*'; + } +} diff --git a/templates/components/test.html.twig b/templates/components/test.html.twig new file mode 100644 index 000000000..287eafdae --- /dev/null +++ b/templates/components/test.html.twig @@ -0,0 +1,21 @@ +
- {{ 'help.browse_app'|trans|raw }} -
- -- {{ 'help.browse_admin'|trans|raw }} -
- -