diff --git a/development/components/form/types-reference/_index.md b/development/components/form/types-reference/_index.md index 967b455324..90a1868efa 100644 --- a/development/components/form/types-reference/_index.md +++ b/development/components/form/types-reference/_index.md @@ -10,56 +10,56 @@ Developers can already use a large list of field types (see [Symfony types](http | Form type name | Namespace | Description | | --- | --- | --- | -| `AccordionType` | PrestaShopBundle\Form\Admin\Type | This form type is used as a container of sub forms, each sub form will be rendered as a part of an accordion. | +| [`AccordionType`](accordion-type) | PrestaShopBundle\Form\Admin\Type | This form type is used as a container of sub forms, each sub form will be rendered as a part of an accordion. | | [`AmountCurrencyType`](amount-currency) | PrestaShopBundle\Form\Admin\Type | Amount with currency: combination of a `NumberType` input and a `ChoiceType` input (for currency selection). | | [`ButtonCollectionType`](button-collection) | PrestaShopBundle\Form\Admin\Type | `ButtonCollectionType` is a form type used to group buttons in a common form group which is useful for forms which have multiple submit buttons. | | [`CategoryChoiceTreeType`](category-choice-tree) | PrestaShopBundle\Form\Admin\Type | A `MaterialChoiceTreeType` for categories | | [`ChangePasswordType`](change-password) | PrestaShopBundle\Form\Admin\Type | `ChangePasswordType` is responsible for defining "change password" form type. | | [`ChoiceCategoriesTreeType`](choice-category-tree) | PrestaShopBundle\Form\Admin\Type | This form class is responsible to create a category selector using Nested sets | -| `ColorPickerType` | PrestaShopBundle\Form\Admin\Type | This form class is responsible to create a color picker field | -| `ConfigurableCountryChoiceType` | PrestaShopBundle\Form\Admin\Type | Class responsible for providing configurable countries list | +| [`ColorPickerType`](color-picker-type) | PrestaShopBundle\Form\Admin\Type | This form class is responsible to create a color picker field | +| [`ConfigurableCountryChoiceType`](configurable-country-choice-type) | PrestaShopBundle\Form\Admin\Type | Class responsible for providing configurable countries list | | [`CountryChoiceType`](country-choice) | PrestaShopBundle\Form\Admin\Type | CountryChoiceType is responsible for providing country choices with -- symbol in front of array. | -| `CustomContentType` | PrestaShopBundle\Form\Admin\Type | Type is used to add any content in any position of the form rather than actual field. | -| `CustomMoneyType` | PrestaShopBundle\Form\Admin\Type | Native Symfony `MoneyType` customised for PrestaShop | +| [`CustomContentType`](custom-content-type) | PrestaShopBundle\Form\Admin\Type | Type is used to add any content in any position of the form rather than actual field. | +| [`CustomMoneyType`](custom-money-type) | PrestaShopBundle\Form\Admin\Type | Native Symfony `MoneyType` customised for PrestaShop | | [`DatePickerType`](date-picker) | PrestaShopBundle\Form\Admin\Type | This form class is responsible to create a date picker field | | [`DateRangeType`](date-range) | PrestaShopBundle\Form\Admin\Type | Combination of two `DatePickerType` fields to create a range of dates. Optional `CheckboxType` to allow unlimited "to" dates. | -| `DeltaQuantityType` | PrestaShopBundle\Form\Admin\Type | Quantity field that displays the initial quantity (not editable) and allows editing with delta quantity instead (ex: +5, -8). The input data of this form type is the initial (as a plain integer) however its output on submit is the delta quantity. | -| `EmailType` | PrestaShopBundle\Form\Admin\Type | Symfony native `EmailType` extended with IDNConverter (InternationalizedDomainNameConverter) feature | -| `EntityItemType` | PrestaShopBundle\Form\Admin\Type | Default entry type used by EntitySearchInputType | -| `EntitySearchInputType` | PrestaShopBundle\Form\Admin\Type | This form type is used for a OneToMany (or ManyToMany) association, it allows to search a list of entities (based on a remote url) and associate it. It is based on the CollectionType form type which provides prototype features to display a custom template for each associated items. | +| [`DeltaQuantityType`](delta-quantity-type) | PrestaShopBundle\Form\Admin\Type | Quantity field that displays the initial quantity (not editable) and allows editing with delta quantity instead (ex: +5, -8). The input data of this form type is the initial (as a plain integer) however its output on submit is the delta quantity. | +| [`EmailType`](email-type) | PrestaShopBundle\Form\Admin\Type | Symfony native `EmailType` extended with IDNConverter (InternationalizedDomainNameConverter) feature | +| [`EntityItemType`](entity-item-type) | PrestaShopBundle\Form\Admin\Type | Default entry type used by EntitySearchInputType | +| [`EntitySearchInputType`](entity-search-input-type) | PrestaShopBundle\Form\Admin\Type | This form type is used for a OneToMany (or ManyToMany) association, it allows to search a list of entities (based on a remote url) and associate it. It is based on the CollectionType form type which provides prototype features to display a custom template for each associated items. | | [`FormattedTextareaType`](formatted-textarea) | PrestaShopBundle\Form\Admin\Type | Class enabling TinyMCE on a Textarea field | | [`GeneratableTextType`](generatable-text) | PrestaShopBundle\Form\Admin\Type | It is extension of TextType that adds additonal button which allows generating value for input | -| `IconButtonType` | PrestaShopBundle\Form\Admin\Type | A form button with material icon. | -| `ImagePreviewType` | PrestaShopBundle\Form\Admin\Type | This form type is used to display an image value without providing an interactive input to edit it. It is based on a hidden input so it could be changed programmatically, or be used just to display an image in a form. | +| [`IconButtonType`](icon-button-type) | PrestaShopBundle\Form\Admin\Type | A form button with material icon. | +| [`ImagePreviewType`](image-preview-type) | PrestaShopBundle\Form\Admin\Type | This form type is used to display an image value without providing an interactive input to edit it. It is based on a hidden input so it could be changed programmatically, or be used just to display an image in a form. | | [`IntegerMinMaxFilterType`](integer-min-max-filter) | PrestaShopBundle\Form\Admin\Type | Defines the integer type two inputs of min and max value - designed to fit grid in grid filter. | | [`IpAddressType`](ip-address) | PrestaShopBundle\Form\Admin\Type | Extended input type for IP addresses. Displays a bouton to add the user's one to the list. | -| `LogSeverityChoiceType` | PrestaShopBundle\Form\Admin\Type | `ChoiceType` of `PrestaShopLogger` Log levels | +| [`LogSeverityChoiceType`](log-severity-type) | PrestaShopBundle\Form\Admin\Type | `ChoiceType` of `PrestaShopLogger` Log levels | | [`MoneyWithSuffixType`](money-with-suffix) | PrestaShopBundle\Form\Admin\Type | Class `MoneyWithSuffixType` is a Symfony `MoneyType`, which also has a suffix string right after the currency sign. | -| `NavigationTabType` | PrestaShopBundle\Form\Admin\Type | This form type is used as a container of sub forms, each sub form will be rendered as a part of navigation tab component. Each first level child is used as a different tab, its label is used for the tab name and it's widget as the tab content. | +| [`NavigationTabType`](navigation-tab-type) | PrestaShopBundle\Form\Admin\Type | This form type is used as a container of sub forms, each sub form will be rendered as a part of navigation tab component. Each first level child is used as a different tab, its label is used for the tab name and it's widget as the tab content. | | [`NumberMinMaxFilterType`](number-min-max-filter) | PrestaShopBundle\Form\Admin\Type | Defines the number type two inputs of min and max value - designed to fit grid in grid filter. | -| `PriceReductionType` | PrestaShopBundle\Form\Admin\Type | Responsible for creating form for price reduction | -| `RadioWithChoiceChildrenType` | PrestaShopBundle\Form\Admin\Type | Combination of a `RadioType` and a `ChoiceType` fields | -| `ResizableTextType` | PrestaShopBundle\Form\Admin\Type | ResizableTextType adds new sizing options to TextType. | -| `SearchAndResetType` | PrestaShopBundle\Form\Admin\Type | FormType used in rendering of "Search and Reset" action in Grids. | -| `ShopChoiceTreeType` | PrestaShopBundle\Form\Admin\Type | `MaterialChoiceTreeType` customized with shop names | -| `ShopRestrictionCheckboxType` | PrestaShopBundle\Form\Admin\Type | This class displays customized checkbox which is used for shop restriction functionality. | -| `SubmittableDeltaQuantityType` | PrestaShopBundle\Form\Admin\Type | Wraps SubmittableInput and DeltaQuantity components to work together. | -| `SubmittableInputType` | PrestaShopBundle\Form\Admin\Type | Adds a button right into specified input and toggles it's availability on change | +| [`PriceReductionType`](price-reduction-type) | PrestaShopBundle\Form\Admin\Type | Responsible for creating form for price reduction | +| [`RadioWithChoiceChildrenType`](radio-with-choice-children-type) | PrestaShopBundle\Form\Admin\Type | Combination of a `RadioType` and a `ChoiceType` fields | +| [`ResizableTextType`](resizable-text-type) | PrestaShopBundle\Form\Admin\Type | ResizableTextType adds new sizing options to TextType. | +| [`SearchAndResetType`](search-and-reset-type) | PrestaShopBundle\Form\Admin\Type | FormType used in rendering of "Search and Reset" action in Grids. | +| [`ShopChoiceTreeType`](shop-choice-tree) | PrestaShopBundle\Form\Admin\Type | `MaterialChoiceTreeType` customized with shop names | +| [`ShopRestrictionCheckboxType`](shop-restriction-checkbox-type) | PrestaShopBundle\Form\Admin\Type | This class displays customized checkbox which is used for shop restriction functionality. | +| [`SubmittableDeltaQuantityType`](submittable-delta-quantity-type) | PrestaShopBundle\Form\Admin\Type | Wraps SubmittableInput and DeltaQuantity components to work together. | +| [`SubmittableInputType`](submittable-input-type) | PrestaShopBundle\Form\Admin\Type | Adds a button right into specified input and toggles it's availability on change | | [`SwitchType`](switch) | PrestaShopBundle\Form\Admin\Type | Displays a switch (ON / OFF by default). | -| `TextPreviewType` | PrestaShopBundle\Form\Admin\Type | This form type is used to display a text value without providing an interactive input to edit it. It is based on a hidden input so it could be changed programmatically, or be used just to display a data in a form. | +| [`TextPreviewType`](text-preview-type) | PrestaShopBundle\Form\Admin\Type | This form type is used to display a text value without providing an interactive input to edit it. It is based on a hidden input so it could be changed programmatically, or be used just to display a data in a form. | | [`TextWithLengthCounterType`](text-with-length-counter) | PrestaShopBundle\Form\Admin\Type | Defines reusable text input with max length counter | -| `TextWithRecommendedLengthType` | PrestaShopBundle\Form\Admin\Type | Is used to add field with recommended input length counter to the form. | -| `TranslatableChoiceType` | PrestaShopBundle\Form\Admin\Type | Class TranslatableChoiceType adds translatable choice types with custom inner type to forms. Language selection uses a dropdown. | +| [`TextWithRecommendedLengthType`](text-with-recommended-length-type) | PrestaShopBundle\Form\Admin\Type | Is used to add field with recommended input length counter to the form. | +| [`TranslatableChoiceType`](translatable-choice-type) | PrestaShopBundle\Form\Admin\Type | Class TranslatableChoiceType adds translatable choice types with custom inner type to forms. Language selection uses a dropdown. | | [`TranslatableType`](translatable) | PrestaShopBundle\Form\Admin\Type | Class TranslatableType adds translatable inputs with custom inner type to forms. Language selection uses a dropdown. | -| `TranslateType` | PrestaShopBundle\Form\Admin\Type | This form class is responsible to create a translatable form. Language selection uses tabs. | -| `TypeaheadCustomerCollectionType` | PrestaShopBundle\Form\Admin\Type | This form class is responsible to create a customer. | -| `TypeaheadProductCollectionType` | PrestaShopBundle\Form\Admin\Type | This form class is responsible to create a product, with or without attribute field. | -| `TypeaheadProductPackCollectionType` | PrestaShopBundle\Form\Admin\Type | This form class is responsible to create a product, with or without attribute field. | -| `UnavailableType` | PrestaShopBundle\Form\Admin\Type | This form type is useful during development phase to show part of a form that are not available yet. | +| [`TranslateType`](translate-type) | PrestaShopBundle\Form\Admin\Type | This form class is responsible to create a translatable form. Language selection uses tabs. | +| [`TypeaheadCustomerCollectionType`](typeahead-customer-collection-type) | PrestaShopBundle\Form\Admin\Type | This form class is responsible to create a customer. | +| [`TypeaheadProductCollectionType`](typeahead-product-collection-type) | PrestaShopBundle\Form\Admin\Type | This form class is responsible to create a product, with or without attribute field. | +| [`TypeaheadProductPackCollectionType`](typeahead-product-pack-collection-type) | PrestaShopBundle\Form\Admin\Type | This form class is responsible to create a product, with or without attribute field. | +| [`UnavailableType`](unavailable-type) | PrestaShopBundle\Form\Admin\Type | This form type is useful during development phase to show part of a form that are not available yet. | | [`YesAndNoChoiceType`](yes-and-no-choice) | PrestaShopBundle\Form\Admin\Type | Symfony `ChoiceType` with `Yes` and `No` choices. | -| `ZoneChoiceType` | PrestaShopBundle\Form\Admin\Type | Class is responsible for providing configurable zone choices with -- symbol in front of array | -| `ProfileChoiceType` | PrestaShopBundle\Form\Admin\Type\Common\Team | Class ProfileChoiceType is choice type for selecting employee's profile. | +| [`ZoneChoiceType`](zone-choice-type) | PrestaShopBundle\Form\Admin\Type | Class is responsible for providing configurable zone choices with -- symbol in front of array | +| [`ProfileChoiceType`](profile-choice-type) | PrestaShopBundle\Form\Admin\Type\Common\Team | Class ProfileChoiceType is choice type for selecting employee's profile. | | [`MaterialChoiceTableType`](material-choice-table) | PrestaShopBundle\Form\Admin\Type\Material | Class MaterialChoiceTableType renders checkbox choices using table layout. | | [`MaterialChoiceTreeType`](material-choice-tree) | PrestaShopBundle\Form\Admin\Type\Material | Class MaterialChoiceTreeType renders trees using table layout. | | [`MaterialMultipleChoiceTableType`](material-multiple-choice-table) | PrestaShopBundle\Form\Admin\Type\Material | Class MaterialMultipleChoiceTableType renders multiple checkbox choices using table layout. | -| `UnitTypeExtension` | PrestaShopBundle\Form\Admin\Extension | Class UnitTypeExtension adds an Unit to an `IntegerType` or a `NumberType` | +| [`UnitTypeExtension`](unit-type-extension) | PrestaShopBundle\Form\Admin\Extension | Class UnitTypeExtension adds an Unit to an `IntegerType` or a `NumberType` | diff --git a/development/components/form/types-reference/accordion-type.md b/development/components/form/types-reference/accordion-type.md index a9bf4f8a85..26d2dc27b8 100644 --- a/development/components/form/types-reference/accordion-type.md +++ b/development/components/form/types-reference/accordion-type.md @@ -13,9 +13,3 @@ This form type is used as a container of sub forms, each sub form will be render | Option | Type | Default value | Description | | :----------- | :----- | :-------------------------------- | :---------------------------------------------------------------------------------------- | - -## Code example - - -## Preview example - diff --git a/development/components/form/types-reference/entity-item-type.md b/development/components/form/types-reference/entity-item-type.md index d86b17c366..96ef2c146d 100644 --- a/development/components/form/types-reference/entity-item-type.md +++ b/development/components/form/types-reference/entity-item-type.md @@ -13,9 +13,3 @@ Default entry type used by EntitySearchInputType | Option | Type | Default value | Description | | :----------- | :----- | :-------------------------------- | :---------------------------------------------------------------------------------------- | - -## Code example - - -## Preview example - diff --git a/development/components/form/types-reference/entity-search-input-type.md b/development/components/form/types-reference/entity-search-input-type.md index 88ad455502..a153eef7b5 100644 --- a/development/components/form/types-reference/entity-search-input-type.md +++ b/development/components/form/types-reference/entity-search-input-type.md @@ -38,3 +38,4 @@ $builder->add('related_products', EntitySearchInputType::class, [ ## Preview example +{{< figure src="../img/entity-search-input-type.png" title="EntitySearchInputType rendered in form example" >}} diff --git a/development/components/form/types-reference/formatted-textarea.md b/development/components/form/types-reference/formatted-textarea.md index 7ffdddf987..2387c97cf1 100644 --- a/development/components/form/types-reference/formatted-textarea.md +++ b/development/components/form/types-reference/formatted-textarea.md @@ -26,7 +26,6 @@ document.addEventListener('DOMContentLoaded', function () { }); ``` - ## Code example ```php diff --git a/development/components/form/types-reference/icon-button-type.md b/development/components/form/types-reference/icon-button-type.md index 2c108a4d13..7f89b79eaa 100644 --- a/development/components/form/types-reference/icon-button-type.md +++ b/development/components/form/types-reference/icon-button-type.md @@ -34,3 +34,4 @@ $builder->add('catalog', IconButtonType::class, [ ## Preview example +{{< figure src="../img/icon-button-type.png" title="IconButtonType rendered in form example" >}} diff --git a/development/components/form/types-reference/image-preview-type.md b/development/components/form/types-reference/image-preview-type.md index 797d17a6a7..5ed29d5c76 100644 --- a/development/components/form/types-reference/image-preview-type.md +++ b/development/components/form/types-reference/image-preview-type.md @@ -18,7 +18,7 @@ This form type is used to display an image value without providing an interactiv ## Code example -- [HeaderType](https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/PrestaShopBundle/Form/Admin/Sell/Product.php#L79-L81) +- [HeaderType](https://github.com/PrestaShop/PrestaShop/blob/8.0.x/src/PrestaShopBundle/Form/Admin/Sell/Product/HeaderType.php#L79-L81) ```php $builder->add('cover_thumbnail', ImagePreviewType::class, [ @@ -28,3 +28,4 @@ $builder->add('cover_thumbnail', ImagePreviewType::class, [ ## Preview example +{{< figure src="../img/image-preview-type.png" title="ImagePreviewType rendered in form example" >}} diff --git a/development/components/form/types-reference/img/entity-search-input-type.png b/development/components/form/types-reference/img/entity-search-input-type.png new file mode 100644 index 0000000000..a0ee9d3277 Binary files /dev/null and b/development/components/form/types-reference/img/entity-search-input-type.png differ diff --git a/development/components/form/types-reference/img/icon-button-type.png b/development/components/form/types-reference/img/icon-button-type.png new file mode 100644 index 0000000000..d4738412e5 Binary files /dev/null and b/development/components/form/types-reference/img/icon-button-type.png differ diff --git a/development/components/form/types-reference/img/image-preview-type.png b/development/components/form/types-reference/img/image-preview-type.png new file mode 100644 index 0000000000..41e47ec9e1 Binary files /dev/null and b/development/components/form/types-reference/img/image-preview-type.png differ diff --git a/development/components/form/types-reference/img/logs-severity-choice-type.png b/development/components/form/types-reference/img/logs-severity-choice-type.png new file mode 100644 index 0000000000..0730a420d9 Binary files /dev/null and b/development/components/form/types-reference/img/logs-severity-choice-type.png differ diff --git a/development/components/form/types-reference/img/profile-choice-type.png b/development/components/form/types-reference/img/profile-choice-type.png new file mode 100644 index 0000000000..c9d87e0f4a Binary files /dev/null and b/development/components/form/types-reference/img/profile-choice-type.png differ diff --git a/development/components/form/types-reference/img/radio-with-choice-children-type.png b/development/components/form/types-reference/img/radio-with-choice-children-type.png new file mode 100644 index 0000000000..a10b9e169c Binary files /dev/null and b/development/components/form/types-reference/img/radio-with-choice-children-type.png differ diff --git a/development/components/form/types-reference/log-severity-choice-type.md b/development/components/form/types-reference/log-severity-choice-type.md index 7cdf57e9a6..8658a09fde 100644 --- a/development/components/form/types-reference/log-severity-choice-type.md +++ b/development/components/form/types-reference/log-severity-choice-type.md @@ -37,3 +37,4 @@ $builder->add('logs_by_email', LogSeverityChoiceType::class, [ ## Preview example +{{< figure src="../img/log-severity-choice-type.png" title="LogSeverityChoiceType rendered in form example" >}} diff --git a/development/components/form/types-reference/material-multiple-choice-table.md b/development/components/form/types-reference/material-multiple-choice-table.md index 631e7e7628..3238728819 100644 --- a/development/components/form/types-reference/material-multiple-choice-table.md +++ b/development/components/form/types-reference/material-multiple-choice-table.md @@ -20,6 +20,7 @@ but it allows using multiple checkboxes per row. Requires Javascript component t ## Required Javascript components + | Component | Description | |:---------------------------------------------------------------------|:------------------------------------| | ../admin-dev/themes/new-theme/js/components/multiple-choice-table.js | Manages selection of all checkboxes | diff --git a/development/components/form/types-reference/navigation-tab-type.md b/development/components/form/types-reference/navigation-tab-type.md index faabc28444..e5b195a960 100644 --- a/development/components/form/types-reference/navigation-tab-type.md +++ b/development/components/form/types-reference/navigation-tab-type.md @@ -13,9 +13,3 @@ This form type is used as a container of sub forms, each sub form will be render | Option | Type | Default value | Description | | :----------- | :----- | :-------------------------------- | :---------------------------------------------------------------------------------------- | - -## Code example - - -## Preview example - diff --git a/development/components/form/types-reference/price-reduction-type.md b/development/components/form/types-reference/price-reduction-type.md index d2385fbccd..6ee0e3a903 100644 --- a/development/components/form/types-reference/price-reduction-type.md +++ b/development/components/form/types-reference/price-reduction-type.md @@ -36,6 +36,3 @@ $builder->add('reduction', PriceReductionType::class, [ ], ]) ``` - -## Preview example - diff --git a/development/components/form/types-reference/profile-choice-type.md b/development/components/form/types-reference/profile-choice-type.md index c990660cbe..09755077bd 100644 --- a/development/components/form/types-reference/profile-choice-type.md +++ b/development/components/form/types-reference/profile-choice-type.md @@ -30,3 +30,4 @@ Class ProfileChoiceType is choice type for selecting employee's profile. ## Preview example +{{< figure src="../img/profile-choice-type.png" title="ProfileChoiceType rendered in form example" >}} diff --git a/development/components/form/types-reference/radio-with-choice-children-type.md b/development/components/form/types-reference/radio-with-choice-children-type.md index ae66ebcedd..49f27b9fce 100644 --- a/development/components/form/types-reference/radio-with-choice-children-type.md +++ b/development/components/form/types-reference/radio-with-choice-children-type.md @@ -39,3 +39,4 @@ $builder->add('themes_selectors', RadioWithChoiceChildrenType::class, [ ## Preview example +{{< figure src="../img/radio-with-choice-children-type.png" title="RadioWithChoiceChildrenType rendered in form example" >}} diff --git a/development/components/form/types-reference/resizable-text-type.md b/development/components/form/types-reference/resizable-text-type.md index f81405a2bf..668e757f79 100644 --- a/development/components/form/types-reference/resizable-text-type.md +++ b/development/components/form/types-reference/resizable-text-type.md @@ -13,9 +13,3 @@ ResizableTextType adds new sizing options to TextType. | Option | Type | Default value | Description | | :----------- | :----- | :-------------------------------- | :---------------------------------------------------------------------------------------- | - -## Code example - - -## Preview example - diff --git a/development/components/form/types-reference/search-and-reset-type.md b/development/components/form/types-reference/search-and-reset-type.md index 6bdb81adb0..f27fbf6c91 100644 --- a/development/components/form/types-reference/search-and-reset-type.md +++ b/development/components/form/types-reference/search-and-reset-type.md @@ -31,6 +31,3 @@ FormType used in rendering of "Search and Reset" action in Grids. ]) ) ``` - -## Preview example - diff --git a/development/components/form/types-reference/shop-restriction-checkbox-type.md b/development/components/form/types-reference/shop-restriction-checkbox-type.md index cc8847e45a..b4c5e528be 100644 --- a/development/components/form/types-reference/shop-restriction-checkbox-type.md +++ b/development/components/form/types-reference/shop-restriction-checkbox-type.md @@ -26,6 +26,3 @@ $builder->add($form->getName() . $suffix, ShopRestrictionCheckboxType::class, [ ], ]); ``` - -## Preview example - diff --git a/development/components/form/types-reference/text-preview-type.md b/development/components/form/types-reference/text-preview-type.md index cd2e660117..acec0bd8a4 100644 --- a/development/components/form/types-reference/text-preview-type.md +++ b/development/components/form/types-reference/text-preview-type.md @@ -28,6 +28,3 @@ $builder->add('fullname_and_email', TextPreviewType::class, [ 'block_prefix' => 'searched_customer_fullname_and_email', ]) ``` - -## Preview example - diff --git a/development/components/form/types-reference/translatable-choice-type.md b/development/components/form/types-reference/translatable-choice-type.md index 1b9c5c7292..a459415e8b 100644 --- a/development/components/form/types-reference/translatable-choice-type.md +++ b/development/components/form/types-reference/translatable-choice-type.md @@ -30,6 +30,3 @@ $builder->add('template', TranslatableChoiceType::class, [ 'row_attr' => $this->templateAttributes, ]) ``` - -## Preview example -