Skip to content

Commit

Permalink
added form_theme for dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
ViniTou committed Jan 19, 2024
1 parent 68ff609 commit 5a53f03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bundle/Controller/ContentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ public function previewAction(
'content' => $content,
'language_code' => $languageCode,
'siteaccesses' => $siteAccessesList,
'siteAccessForm' => $siteAccessSelector->createView(),
'site_access_form' => $siteAccessSelector->createView(),
'version_no' => $versionNo ?? $content->getVersionInfo()->versionNo,
'preselected_site_access' => $preselectedSiteAccess,
'referrer' => $referrer ?? 'content_draft_edit',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

{% block left_sidebar %}{% endblock %}

{% form_theme site_access_form '@ibexadesign/ui/form_fields.html.twig' %}

{% block header_row %}
<div class="ibexa-preview-header">
<div class="ibexa-preview-header__item ibexa-preview-header__item--back">
Expand Down Expand Up @@ -37,7 +39,7 @@
</a>
</div>
<div class="ibexa-preview-header__item ibexa-preview-header__item--siteaccess">
{{ form(siteAccessForm) }}
{{ form(site_access_form) }}
</div>
<div class="ibexa-preview-header__item ibexa-preview-header__item--actions">
<button data-preview-mode="desktop" class="btn ibexa-btn ibexa-btn--no-text ibexa-btn--selector ibexa-btn--selected ibexa-preview-header__action">
Expand Down

0 comments on commit 5a53f03

Please sign in to comment.