Skip to content

Commit

Permalink
EZEE-2111: Exposed form templates setting to admin_ui_config Twig global
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Longosz committed Jun 22, 2018
1 parent 630c7f1 commit 1323384
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/bundle/Resources/config/services/ui_config/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ services:
tags:
- { name: ezplatform.admin_ui.config_provider, key: 'imageVariations' }

ezsystems.ezplatform_admin_ui.ui.config.provider.content_edit_form_templates:
class: EzSystems\EzPlatformAdminUi\UI\Config\Provider\Value
arguments:
$value: '$admin_ui_forms.content_edit_form_templates$'
tags:
- { name: ezplatform.admin_ui.config_provider, key: 'contentEditFormTemplates' }

EzSystems\EzPlatformAdminUi\UI\Config\Provider\User:
tags:
- { name: ezplatform.admin_ui.config_provider, key: 'user' }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends viewbaseLayout is defined ? viewbaseLayout : '@ezdesign/layout.html.twig' %}

{% set default_form_templates = ['@ezdesign/content/form_fields.html.twig'] %}
{% set default_form_templates = admin_ui_config.contentEditFormTemplates %}
{% set form_templates = form_templates is defined ? form_templates|merge(default_form_templates) : default_form_templates %}

{% trans_default_domain 'content_edit' %}
Expand Down

0 comments on commit 1323384

Please sign in to comment.