Files
lulandia.pl/modules/x13gpsr/views/templates/hook/_partials/tabs.tpl
2025-04-01 00:38:54 +02:00

37 lines
1.7 KiB
Smarty

{if !empty($x13gpsr.responsibleManufacturer) || !empty($x13gpsr.responsiblePerson)}
<ul class="x13gpsr__nav" id="x13gpsrTab" role="tablist">
{if !empty($x13gpsr.responsibleManufacturer)}
<li class="x13gpsr__nav-item">
<a class="x13gpsr__nav-link active" id="x13gpsr-manufacturer-tab" data-toggle="x13gpsr-tab"
href="#x13gpsrManufacturer" role="tab" aria-controls="x13gpsrManufacturer"
aria-selected="true">{l s='Manufacturer' mod='x13gpsr'}</a>
</li>
{/if}
{if !empty($x13gpsr.responsiblePerson)}
<li class="x13gpsr__nav-item">
<a class="x13gpsr__nav-link{if empty($x13gpsr.responsibleManufacturer)} active{/if}" id="x13gpsr-person-tab" data-toggle="x13gpsr-tab" href="#x13gpsrPerson" role="tab"
aria-controls="x13gpsrPerson" aria-selected="false">{l s='Responsible person' mod='x13gpsr'}</a>
</li>
{/if}
</ul>
<div class="x13gpsr__tab-content" id="x13gpsrTabContent">
{if !empty($x13gpsr.responsibleManufacturer)}
<div class="x13gpsr__tab-pane active" id="x13gpsrManufacturer" role="tabpanel"
aria-labelledby="x13gpsr-manufacturer-tab">
{include file='module:x13gpsr/views/templates/hook/_partials/responsible_manufacturer.tpl'}
</div>
{/if}
{if !empty($x13gpsr.responsiblePerson)}
<div class="x13gpsr__tab-pane{if empty($x13gpsr.responsibleManufacturer)} active{/if}" id="x13gpsrPerson" role="tabpanel" aria-labelledby="x13gpsr-person-tab">
{include file='module:x13gpsr/views/templates/hook/_partials/responsible_person.tpl'}
</div>
{/if}
</div>
{/if}
{if $x13gpsr.config.displayExtraSafetyInformation}
<div class="x13gpsr__informations">
{$x13gpsr.extraSafetyInformation nofilter}
</div>
{/if}