Skip to content

Commit

Permalink
[BUGFIX] fix TAB content element
Browse files Browse the repository at this point in the history
  • Loading branch information
dmh committed Jan 21, 2019
1 parent 7c76272 commit 156833c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Resources/Private/Templates/GridElements/TabGroup.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<f:layout name="NoBgImage" />
<f:section name="Main">
<ul class="nav {f:if(condition: '{data.pi_flexform.data.columns.lDEF.tabstyle.vDEF}', then: 'nav-pills', else: 'nav-tabs')}" role="tablist" id="tab-{f:if(condition: data._LOCALIZED_UID, then: data._LOCALIZED_UID, else: data.uid)}" >
<f:for each="{data.tx_gridelements_view_children}" as="tab" iteration="tabIteration">
<li {f:if(condition: '{tabIteration.index} == 0', then: ' class="active"', else: '')}><a href="#tab-{tab.uid}" aria-controls="tab-{tab.uid}" role="tab" data-toggle="{f:if(condition: '{data.pi_flexform.data.columns.lDEF.tabstyle.vDEF}', then: 'pill', else: 'tab')}">{tab.header}</a></li>
<f:for each="{children.1.0}" as="tab" iteration="tabIteration">
<li {f:if(condition: '{tabIteration.index} == 0', then: ' class="active"', else: '')}><a href="#tab-{tab.data.uid}" aria-controls="tab-{tab.data.uid}" role="tab" data-toggle="{f:if(condition: '{data.pi_flexform.data.columns.lDEF.tabstyle.vDEF}', then: 'pill', else: 'tab')}">{tab.data.header}</a></li>
</f:for>
</ul>
<div class="tab-content">
<f:render partial="RenederColumns" arguments="{children: children, col: 0}"/>
<f:for each="{children.1.0}" as="tab" iteration="tabIteration">
<div role="tabpanel" class="tab-pane {f:if(condition: '{tabIteration.index} == 0', then: ' active', else: '')}" id="tab-{tab.data.uid}">
<f:cObject typoscriptObjectPath="lib.content.gridelementsRender" >{tab.data.uid}</f:cObject>
</div>
</f:for>
</div>
</f:section>

0 comments on commit 156833c

Please sign in to comment.