Skip to content

Commit

Permalink
add language tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
osbre authored Mar 5, 2020
1 parent f36d4f6 commit b72906c
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion resources/views/container/posts/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,25 @@
<div class="hbox-col">
<div class="vbox">
<div class="wrapper">
<div class="tab-content">
@if($hasLocales = ($locales->count() > 1))
<div class="nav-tabs-alt">
<ul class="nav nav-tabs" role="tablist">
@foreach($locales as $code => $lang)
<li class="nav-item">
<a class="nav-link @if($loop->first)active @endif"
data-action="screen--tabs#setActiveTab"
data-target="#local-{{$code}}"
id="button-tab-options"
role="tab"
data-toggle="tab">
{{ $lang['native'] }}
</a>
</li>
@endforeach
</ul>
</div>
@endif
<div class="tab-content @if($hasLocales)padder-v @endif">
@foreach($locales as $code => $lang)
<div class="tab-pane @if($loop->first) active @endif" id="local-{{$code}}"
role="tabpanel">
Expand Down

0 comments on commit b72906c

Please sign in to comment.