From a35a6b9d849d43340f6b0126ee15efa4c36d1e26 Mon Sep 17 00:00:00 2001 From: Sadikov Vladimir Date: Thu, 21 Dec 2017 19:20:18 +0200 Subject: [PATCH 1/8] recipe for koff/i18n-form-bundle --- koff/i18n-form-bundle/4.0/config/packages/i18n-form.yaml | 8 ++++++++ koff/i18n-form-bundle/4.0/manifest.json | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 koff/i18n-form-bundle/4.0/config/packages/i18n-form.yaml create mode 100644 koff/i18n-form-bundle/4.0/manifest.json diff --git a/koff/i18n-form-bundle/4.0/config/packages/i18n-form.yaml b/koff/i18n-form-bundle/4.0/config/packages/i18n-form.yaml new file mode 100644 index 00000000..0a3a06e6 --- /dev/null +++ b/koff/i18n-form-bundle/4.0/config/packages/i18n-form.yaml @@ -0,0 +1,8 @@ +#i18n_form: +# locales: 'en|de' +# required_locales: 'en' +# excluded_fields: 'id|locale|translatable + +twig: + form_themes: + - '@KoffI18nForm/bootstrap_4_form.html.twig.html.twig' diff --git a/koff/i18n-form-bundle/4.0/manifest.json b/koff/i18n-form-bundle/4.0/manifest.json new file mode 100644 index 00000000..19ffef13 --- /dev/null +++ b/koff/i18n-form-bundle/4.0/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Koff\\Bundle\\I18nFormBundle\\I18nFormBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +} From 0a7369ce89ec2d06df4985affa61e17fbc66b3e5 Mon Sep 17 00:00:00 2001 From: Sadikov Vladimir Date: Thu, 21 Dec 2017 19:31:15 +0200 Subject: [PATCH 2/8] fix template config for twig --- koff/i18n-form-bundle/4.0/config/packages/i18n-form.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koff/i18n-form-bundle/4.0/config/packages/i18n-form.yaml b/koff/i18n-form-bundle/4.0/config/packages/i18n-form.yaml index 0a3a06e6..87a6f365 100644 --- a/koff/i18n-form-bundle/4.0/config/packages/i18n-form.yaml +++ b/koff/i18n-form-bundle/4.0/config/packages/i18n-form.yaml @@ -5,4 +5,4 @@ twig: form_themes: - - '@KoffI18nForm/bootstrap_4_form.html.twig.html.twig' + - '@I18nForm/bootstrap_4_form.html.twig' From 22f19ed8d12c99207173258a1fa58b48a9bd1118 Mon Sep 17 00:00:00 2001 From: Sadikov Vladimir Date: Thu, 21 Dec 2017 19:42:41 +0200 Subject: [PATCH 3/8] filename fix --- .../4.0/config/packages/{i18n-form.yaml => i18n_form.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename koff/i18n-form-bundle/4.0/config/packages/{i18n-form.yaml => i18n_form.yaml} (100%) diff --git a/koff/i18n-form-bundle/4.0/config/packages/i18n-form.yaml b/koff/i18n-form-bundle/4.0/config/packages/i18n_form.yaml similarity index 100% rename from koff/i18n-form-bundle/4.0/config/packages/i18n-form.yaml rename to koff/i18n-form-bundle/4.0/config/packages/i18n_form.yaml From c4aff7bb0a805261af306b2ed976afa5ccf45012 Mon Sep 17 00:00:00 2001 From: Sadikov Vladimir Date: Sat, 23 Dec 2017 13:30:46 +0200 Subject: [PATCH 4/8] removed twig configuration from recipe, added post_install.txt --- .../4.0/config/packages/i18n_form.yaml | 4 ---- koff/i18n-form-bundle/post_install.txt | 11 +++++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 koff/i18n-form-bundle/post_install.txt diff --git a/koff/i18n-form-bundle/4.0/config/packages/i18n_form.yaml b/koff/i18n-form-bundle/4.0/config/packages/i18n_form.yaml index 87a6f365..55d164ab 100644 --- a/koff/i18n-form-bundle/4.0/config/packages/i18n_form.yaml +++ b/koff/i18n-form-bundle/4.0/config/packages/i18n_form.yaml @@ -2,7 +2,3 @@ # locales: 'en|de' # required_locales: 'en' # excluded_fields: 'id|locale|translatable - -twig: - form_themes: - - '@I18nForm/bootstrap_4_form.html.twig' diff --git a/koff/i18n-form-bundle/post_install.txt b/koff/i18n-form-bundle/post_install.txt new file mode 100644 index 00000000..410a12d3 --- /dev/null +++ b/koff/i18n-form-bundle/post_install.txt @@ -0,0 +1,11 @@ + + What's next? + + + * Finish bundle configuration: + 1. Open config/packages/twig.yaml + 2. Add form template to form_themes section like this: + + twig: + form_themes: + - '@I18nForm/bootstrap_4_form.html.twig' \ No newline at end of file From 8ee43b286a1d52c94326395a51303efad4b51512 Mon Sep 17 00:00:00 2001 From: Sadikov Vladimir Date: Sat, 23 Dec 2017 13:32:38 +0200 Subject: [PATCH 5/8] add new line to post_install.txt --- koff/i18n-form-bundle/post_install.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koff/i18n-form-bundle/post_install.txt b/koff/i18n-form-bundle/post_install.txt index 410a12d3..ce73305b 100644 --- a/koff/i18n-form-bundle/post_install.txt +++ b/koff/i18n-form-bundle/post_install.txt @@ -8,4 +8,4 @@ twig: form_themes: - - '@I18nForm/bootstrap_4_form.html.twig' \ No newline at end of file + - '@I18nForm/bootstrap_4_form.html.twig' From 2a05634d7038120302a0dfe2f9504ee06bf07218 Mon Sep 17 00:00:00 2001 From: Sadikov Vladimir Date: Sat, 23 Dec 2017 13:34:44 +0200 Subject: [PATCH 6/8] recipe fix --- koff/i18n-form-bundle/{ => 4.0}/post_install.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename koff/i18n-form-bundle/{ => 4.0}/post_install.txt (100%) diff --git a/koff/i18n-form-bundle/post_install.txt b/koff/i18n-form-bundle/4.0/post_install.txt similarity index 100% rename from koff/i18n-form-bundle/post_install.txt rename to koff/i18n-form-bundle/4.0/post_install.txt From ecb9dd7bdd9903d1bdc4e3dfe2e4eb5914cda94d Mon Sep 17 00:00:00 2001 From: Sadikov Vladimir Date: Sat, 23 Dec 2017 13:44:25 +0200 Subject: [PATCH 7/8] filename fix --- koff/i18n-form-bundle/4.0/{post_install.txt => post-install.txt} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename koff/i18n-form-bundle/4.0/{post_install.txt => post-install.txt} (100%) diff --git a/koff/i18n-form-bundle/4.0/post_install.txt b/koff/i18n-form-bundle/4.0/post-install.txt similarity index 100% rename from koff/i18n-form-bundle/4.0/post_install.txt rename to koff/i18n-form-bundle/4.0/post-install.txt From 7d1c7460224b263df65a7d21d94b84f332a293db Mon Sep 17 00:00:00 2001 From: Vladimir Sadicov Date: Sun, 24 Dec 2017 14:46:14 +0200 Subject: [PATCH 8/8] default config for recipe --- koff/i18n-form-bundle/4.0/config/packages/i18n_form.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/koff/i18n-form-bundle/4.0/config/packages/i18n_form.yaml b/koff/i18n-form-bundle/4.0/config/packages/i18n_form.yaml index 55d164ab..b07c9109 100644 --- a/koff/i18n-form-bundle/4.0/config/packages/i18n_form.yaml +++ b/koff/i18n-form-bundle/4.0/config/packages/i18n_form.yaml @@ -1,4 +1,4 @@ -#i18n_form: -# locales: 'en|de' +i18n_form: + locales: 'en' # array or string separated with "|" or "," # required_locales: 'en' -# excluded_fields: 'id|locale|translatable +# excluded_fields: 'id|locale|translatable'