Skip to content

Commit

Permalink
Added: Help parameters to form fields
Browse files Browse the repository at this point in the history
  • Loading branch information
igormukhingmailcom committed Nov 11, 2021
1 parent f892952 commit 512b1d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/Form/Type/PixelType.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
$builder
->add('pixelId', IntegerType::class, [
'label' => 'setono_sylius_facebook.form.pixel.pixel_id',
'help' => 'Get it from https://www.facebook.com/events_manager2',
'help' => 'setono_sylius_facebook.form.pixel.pixel_id_help',
'attr' => [
'min' => 1,
'placeholder' => 'setono_sylius_facebook.form.pixel.pixel_id_placeholder',
],
])
->add('customAccessToken', TextareaType::class, [
'label' => 'setono_sylius_facebook.form.pixel.custom_access_token',
'help' => 'setono_sylius_facebook.form.pixel.custom_access_token_help',
'required' => false,
'attr' => [
'rows' => 3,
Expand Down
6 changes: 3 additions & 3 deletions src/Resources/translations/messages.en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ setono_sylius_facebook:
form:
pixel:
custom_access_token: Pixel's access token
custom_access_token_placeholder: |
Insert Facebook access token for this pixel.
Leave it empty to use default one from plugin configuration.
custom_access_token_help: Leave it empty to use default one from plugin configuration
custom_access_token_placeholder: Insert Facebook access token for this pixel
pixel_id: Pixel id
pixel_id_help: Get it from https://www.facebook.com/events_manager2
pixel_id_placeholder: Insert your pixel id...
ui:
custom_access_token_specified: Custom token
Expand Down

0 comments on commit 512b1d7

Please sign in to comment.