Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Feature/bookmark import (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
koromerzhin authored Oct 19, 2021
1 parent bc2e992 commit d2b8ddd
Show file tree
Hide file tree
Showing 11 changed files with 138 additions and 97 deletions.
12 changes: 6 additions & 6 deletions apps/src/Form/Admin/Bookmark/PrincipalType.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function buildForm(
'help' => $this->translator->trans('bookmark.url.help', [], 'admin.form'),
'required' => false,
'attr' => [
'placeholder' => $this->translator->trans('bookmark.url.placeholder', [], 'admin.search.form'),
'placeholder' => $this->translator->trans('bookmark.url.placeholder', [], 'admin.form'),
],
]
);
Expand Down Expand Up @@ -79,7 +79,7 @@ public function buildForm(
'class' => User::class,
'route' => 'api_search_user',
'attr' => [
'placeholder' => $this->translator->trans('bookmark.refuser.placeholder', [], 'admin.search.form'),
'placeholder' => $this->translator->trans('bookmark.refuser.placeholder', [], 'admin.form'),
],
]
);
Expand All @@ -96,7 +96,7 @@ public function buildForm(
'placeholder' => $this->translator->trans(
'bookmark.refcategory.placeholder',
[],
'admin.search.form'
'admin.form'
),
],
]
Expand All @@ -112,7 +112,7 @@ public function buildForm(
'add' => true,
'route' => 'api_search_postlibelle',
'attr' => [
'placeholder' => $this->translator->trans('bookmark.libelles.placeholder', [], 'admin.search.form'),
'placeholder' => $this->translator->trans('bookmark.libelles.placeholder', [], 'admin.form'),
],
]
);
Expand Down Expand Up @@ -160,14 +160,14 @@ protected function setTextType($builder)
'label' => $this->translator->trans('bookmark.name.label', [], 'admin.form'),
'help' => $this->translator->trans('bookmark.name.help', [], 'admin.form'),
'attr' => [
'placeholder' => $this->translator->trans('bookmark.name.placeholder', [], 'admin.search.form'),
'placeholder' => $this->translator->trans('bookmark.name.placeholder', [], 'admin.form'),
],
],
'slug' => [
'label' => $this->translator->trans('bookmark.slug.label', [], 'admin.form'),
'help' => $this->translator->trans('bookmark.slug.help', [], 'admin.form'),
'attr' => [
'placeholder' => $this->translator->trans('bookmark.slug.placeholder', [], 'admin.search.form'),
'placeholder' => $this->translator->trans('bookmark.slug.placeholder', [], 'admin.form'),
],
'required' => false,
],
Expand Down
6 changes: 3 additions & 3 deletions apps/src/Form/Admin/Collections/Param/DisclaimerType.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function buildForm(
'placeholder' => $this->translator->trans(
'param.disclaimer.activate.placeholder',
[],
'admin.search.form'
'admin.form'
),
],
]
Expand All @@ -47,7 +47,7 @@ public function buildForm(
'placeholder' => $this->translator->trans(
'param.disclaimer.title.placeholder',
[],
'admin.search.form'
'admin.form'
),
],
]
Expand All @@ -72,7 +72,7 @@ public function buildForm(
'placeholder' => $this->translator->trans(
'param.disclaimer.url-redirect.placeholder',
[],
'admin.search.form'
'admin.form'
),
],
]
Expand Down
4 changes: 2 additions & 2 deletions apps/src/Form/Admin/Collections/Param/FormatDateType.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function buildForm(
'placeholder' => $this->translator->trans(
'param.formatdate.admin.placeholder',
[],
'admin.search.form'
'admin.form'
),
],
]
Expand All @@ -39,7 +39,7 @@ public function buildForm(
'placeholder' => $this->translator->trans(
'param.formatdate.public.placeholder',
[],
'admin.search.form'
'admin.form'
),
],
]
Expand Down
6 changes: 3 additions & 3 deletions apps/src/Form/Admin/Collections/Param/MetaSiteType.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function buildForm(
'placeholder' => $this->translator->trans(
'param.metasite.viewport.placeholder',
[],
'admin.search.form'
'admin.form'
),
],
]
Expand All @@ -50,7 +50,7 @@ public function buildForm(
'placeholder' => $this->translator->trans(
'param.metasite.description.placeholder',
[],
'admin.search.form'
'admin.form'
),
],
]
Expand All @@ -66,7 +66,7 @@ public function buildForm(
'placeholder' => $this->translator->trans(
'param.metasite.keywords.placeholder',
[],
'admin.search.form'
'admin.form'
),
],
]
Expand Down
6 changes: 3 additions & 3 deletions apps/src/Form/Admin/Collections/Param/NotificationType.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function buildForm(
'placeholder' => $this->translator->trans(
'param.notification.type.placeholder',
[],
'admin.search.form'
'admin.form'
),
],
]
Expand All @@ -44,7 +44,7 @@ public function buildForm(
'placeholder' => $this->translator->trans(
'param.notification.mail.placeholder',
[],
'admin.search.form'
'admin.form'
),
],
]
Expand All @@ -63,7 +63,7 @@ public function buildForm(
'placeholder' => $this->translator->trans(
'param.notification.notify.placeholder',
[],
'admin.search.form'
'admin.form'
),
],
]
Expand Down
8 changes: 4 additions & 4 deletions apps/src/Form/Admin/Collections/Param/OauthType.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function buildForm(
'placeholder' => $this->translator->trans(
'param.oauth.activate.placeholder',
[],
'admin.search.form'
'admin.form'
),
],
]
Expand All @@ -63,7 +63,7 @@ public function buildForm(
'help' => $this->translator->trans('param.oauth.type.help', [], 'admin.form'),
'choices' => $choices,
'attr' => [
'placeholder' => $this->translator->trans('param.oauth.type.placeholder', [], 'admin.search.form'),
'placeholder' => $this->translator->trans('param.oauth.type.placeholder', [], 'admin.form'),
],
]
);
Expand All @@ -75,7 +75,7 @@ public function buildForm(
'help' => $this->translator->trans('param.oauth.id.help', [], 'admin.form'),
'required' => false,
'attr' => [
'placeholder' => $this->translator->trans('param.oauth.id.placeholder', [], 'admin.search.form'),
'placeholder' => $this->translator->trans('param.oauth.id.placeholder', [], 'admin.form'),
],
]
);
Expand All @@ -90,7 +90,7 @@ public function buildForm(
'placeholder' => $this->translator->trans(
'param.oauth.secret.placeholder',
[],
'admin.search.form'
'admin.form'
),
],
]
Expand Down
8 changes: 4 additions & 4 deletions apps/src/Form/Admin/Collections/Param/TarteaucitronType.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function buildForm(
'placeholder' => $this->translator->trans(
'param.tarteaucitron.privacyUrl.placeholder',
[],
'admin.search.form'
'admin.form'
),
],
]
Expand All @@ -46,7 +46,7 @@ public function buildForm(
'placeholder' => $this->translator->trans(
'param.tarteaucitron.iconPosition.placeholder',
[],
'admin.search.form'
'admin.form'
),
],
'choices' => [
Expand All @@ -69,7 +69,7 @@ public function buildForm(
'placeholder' => $this->translator->trans(
'param.tarteaucitron.readmoreLink.placeholder',
[],
'admin.search.form'
'admin.form'
),
],
]
Expand All @@ -84,7 +84,7 @@ public function buildForm(
'placeholder' => $this->translator->trans(
'param.tarteaucitron.mandatory.placeholder',
[],
'admin.search.form'
'admin.form'
),
],
'choices' => [
Expand Down
4 changes: 2 additions & 2 deletions apps/src/Form/Admin/Search/UserType.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public function buildForm(
'refgroupe',
SearchableType::class,
[
'label' => $this->translator->trans('user.refgroupe.label', [], 'admin.form'),
'help' => $this->translator->trans('user.refgroupe.help', [], 'admin.form'),
'label' => $this->translator->trans('user.refgroupe.label', [], 'admin.search.form'),
'help' => $this->translator->trans('user.refgroupe.help', [], 'admin.search.form'),
'multiple' => false,
'class' => Groupe::class,
'route' => 'api_search_group',
Expand Down
25 changes: 25 additions & 0 deletions apps/translations/admin.form.fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,26 @@ bookmark.import.help: ''
bookmark.import.label: ''
bookmark.libelles.help: ''
bookmark.libelles.label: Libélles
bookmark.libelles.placeholder: ''
bookmark.metaDescription.help: ''
bookmark.metaDescription.label: 'meta Description'
bookmark.metaKeywords.help: ''
bookmark.metaKeywords.label: 'meta Keywords'
bookmark.name.help: ''
bookmark.name.label: Nom
bookmark.name.placeholder: ''
bookmark.refcategory.help: ''
bookmark.refcategory.label: Catégorie
bookmark.refcategory.placeholder: ''
bookmark.refuser.help: ''
bookmark.refuser.label: Utilisateur
bookmark.refuser.placeholder: ''
bookmark.slug.help: ''
bookmark.slug.label: Slug
bookmark.slug.placeholder: ''
bookmark.url.help: ''
bookmark.url.label: Url
bookmark.url.placeholder: ''
category.name.help: ''
category.name.label: Nom
category.name.placeholder: ''
Expand Down Expand Up @@ -139,18 +145,23 @@ noteinterne.title.label: Titre
noteinterne.title.placeholder: ''
param.disclaimer.activate.help: ''
param.disclaimer.activate.label: 'Activer ?'
param.disclaimer.activate.placeholder: ''
param.disclaimer.message.help: ''
param.disclaimer.message.label: Mesage
param.disclaimer.title.help: ''
param.disclaimer.title.label: Titre
param.disclaimer.title.placeholder: ''
param.disclaimer.url-redirect.help: ''
param.disclaimer.url-redirect.label: 'Url de redirection'
param.disclaimer.url-redirect.placeholder: ''
param.favicon.help: ''
param.favicon.label: Favicon
param.formatdate.admin.help: ''
param.formatdate.admin.label: Backend
param.formatdate.admin.placeholder: ''
param.formatdate.public.help: ''
param.formatdate.public.label: Front
param.formatdate.public.placeholder: ''
param.generator.help: ''
param.generator.label: 'Site générateur'
param.generator.placeholder: ''
Expand Down Expand Up @@ -197,26 +208,36 @@ param.languagedefault.label: 'Langue par défaut'
param.languagedefault.placeholder: ''
param.metasite.description.help: ''
param.metasite.description.label: 'SEO description'
param.metasite.description.placeholder: ''
param.metasite.keywords.help: ''
param.metasite.keywords.label: 'SEO mot clef'
param.metasite.keywords.placeholder: ''
param.metasite.theme-color.help: ''
param.metasite.theme-color.label: 'Thème couleur'
param.metasite.viewport.help: ''
param.metasite.viewport.label: Viewport
param.metasite.viewport.placeholder: ''
param.notification.mail.help: ''
param.notification.mail.label: Courriel
param.notification.mail.placeholder: ''
param.notification.notify.help: ''
param.notification.notify.label: Notification
param.notification.notify.placeholder: ''
param.notification.type.help: ''
param.notification.type.label: Type
param.notification.type.placeholder: ''
param.oauth.activate.help: ''
param.oauth.activate.label: 'Activé ?'
param.oauth.activate.placeholder: ''
param.oauth.id.help: ''
param.oauth.id.label: Id
param.oauth.id.placeholder: ''
param.oauth.secret.help: ''
param.oauth.secret.label: Secret
param.oauth.secret.placeholder: ''
param.oauth.type.help: ''
param.oauth.type.label: Type
param.oauth.type.placeholder: ''
param.robotstxt.help: ''
param.robotstxt.label: Robotstxt
param.robotstxt.placeholder: ''
Expand Down Expand Up @@ -261,10 +282,12 @@ param.tarteaucitron.highPrivacy.label: HighPrivacy
param.tarteaucitron.highPrivacy.placeholder: ''
param.tarteaucitron.iconPosition.help: ''
param.tarteaucitron.iconPosition.label: IconPosition
param.tarteaucitron.iconPosition.placeholder: ''
param.tarteaucitron.job.help: ''
param.tarteaucitron.job.label: Jobs
param.tarteaucitron.mandatory.help: ''
param.tarteaucitron.mandatory.label: Mandatory
param.tarteaucitron.mandatory.placeholder: ''
param.tarteaucitron.moreInfoLink.help: ''
param.tarteaucitron.moreInfoLink.label: MoreInfoLink
param.tarteaucitron.moreInfoLink.placeholder: ''
Expand All @@ -273,8 +296,10 @@ param.tarteaucitron.orientation.label: Orientation
param.tarteaucitron.orientation.placeholder: ''
param.tarteaucitron.privacyUrl.help: ''
param.tarteaucitron.privacyUrl.label: PrivacyUrl
param.tarteaucitron.privacyUrl.placeholder: ''
param.tarteaucitron.readmoreLink.help: ''
param.tarteaucitron.readmoreLink.label: readmoreLink
param.tarteaucitron.readmoreLink.placeholder: ''
param.tarteaucitron.removeCredit.help: ''
param.tarteaucitron.removeCredit.label: RemoveCredit
param.tarteaucitron.removeCredit.placeholder: ''
Expand Down
3 changes: 0 additions & 3 deletions apps/translations/admin.messages.fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ form.user.phones: Téléphones
geocode.accuracy: Accuracy
geocode.actions: Actions
geocode.community: Community
geocode.communitycode: Communitycode
geocode.communityname: Communityname
geocode.coordonnees: Coordonnees
geocode.countrycode: Countrycode
Expand All @@ -55,9 +54,7 @@ geocode.longitude: Longitude
geocode.placename: Placename
geocode.postalcode: Postalcode
geocode.province: Province
geocode.provincecode: Provincecode
geocode.provincename: Provincename
geocode.statecode: Statecode
geocode.statename: Statename
guard.actions: Actions
guard.entite: Table
Expand Down
Loading

0 comments on commit d2b8ddd

Please sign in to comment.