Skip to content

Commit

Permalink
Added html-body component
Browse files Browse the repository at this point in the history
  • Loading branch information
ciastektk committed Sep 5, 2023
1 parent 22eb3dd commit ccaf3a1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/bundle/Resources/config/services/components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,10 @@ services:
public: false

Ibexa\Contracts\AdminUi\Component\Renderer\RendererInterface: '@Ibexa\AdminUi\Component\Renderer\DefaultRenderer'

ibexa.adminui.html.body:
parent: Ibexa\AdminUi\Component\TwigComponent
arguments:
$template: '@@ibexadesign/ui/html_body.html.twig'
tags:
- { name: ibexa.admin_ui.component, group: 'html-body' }
22 changes: 22 additions & 0 deletions src/bundle/Resources/views/themes/admin/ui/html_body.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<div class="ibexa-embedded-item-edit-container">
{% set form = ibexa_render_embedded_item_edit_form() %}

{{ form_start(form) }}
{{ form_widget(form.content_info, { 'attr': {
'hidden': 'hidden',
'class': 'ibexa-embedded-item-edit__form-field ibexa-embedded-item-edit__form-field--content-info'
} }) }}
{{ form_widget(form.version_info, { 'attr': {
'hidden': 'hidden',
'class': 'ibexa-embedded-item-edit__form-field ibexa-embedded-item-edit__form-field--version-info'
} }) }}
{{ form_widget(form.language, { 'attr': {
'hidden': 'hidden',
'class': 'ibexa-embedded-item-edit__form-field ibexa-embedded-item-edit__form-field--language'
} }) }}
{{ form_widget(form.location, { 'attr': {
'hidden': 'hidden',
'class': 'ibexa-embedded-item-edit__form-field ibexa-embedded-item-edit__form-field--location'
} }) }}
{{ form_end(form) }}
</div>

0 comments on commit ccaf3a1

Please sign in to comment.