open-vault/ui/app/templates/components/section-tabs.hbs
Madalyn 8338b9b0e3
OpenAPI CRUD views (#6702)
Dynamically generate views from OpenAPI document to List/CRUD LDAP users and groups in the UI
2019-06-21 11:18:26 -04:00

21 lines
606 B
Handlebars

{{#with (tabs-for-auth-section model tabType paths) as |tabs|}}
{{#if tabs.length}}
<div class="tabs-container box is-sideless is-fullwidth is-paddingless is-marginless">
<nav class="tabs">
<ul>
{{#each tabs as |tab|}}
{{#link-to
params=tab.routeParams
tagName="li"
data-test-auth-section-tab=true
}}
{{#link-to params=tab.routeParams}}
{{tab.label}}
{{/link-to}}
{{/link-to}}
{{/each}}
</ul>
</nav>
</div>
{{/if}}
{{/with}}