mirror of
https://github.com/getformwork/formwork.git
synced 2025-01-17 21:49:04 +01:00
9 lines
386 B
PHP
9 lines
386 B
PHP
<div class="tabs">
|
|
<?php foreach ($field->get('fields') as $tab) : ?>
|
|
<a <?= $this->attr([
|
|
'class' => ['tabs-tab', $tab->get('active') ? 'active' : ''],
|
|
'data-tab' => $tab->name(),
|
|
]) ?>><?= $this->escape($tab->label()) ?></a>
|
|
<?php endforeach ?>
|
|
</div>
|
|
<?php $this->insert('fields', ['fields' => $field->get('fields')]) ?>
|