FEATURE #1435: add base of content overview and creating new content
This commit is contained in:
@@ -1,50 +1,16 @@
|
||||
<ul class="nav nav-tabs with-tabs" role="tablist">
|
||||
@foreach($formSectionNames as $section => $sectionName)
|
||||
<li class="nav-item">
|
||||
<a href="#{{$section}}" role="tab" data-toggle="tab"
|
||||
class="nav-link @if($sectionName == reset($formSectionNames)) active @endif">
|
||||
{{trans($sectionName)}}
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
@foreach($formSections as $section => $view)
|
||||
<div role="tabpanel" class="tabs-pane @if($view == reset($formSections)) in active @endif"
|
||||
id="{{$section}}">
|
||||
@include($view)
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<ul class="nav nav-tabs nav-tabs-bordered" role="tablist">
|
||||
@foreach($formSectionNames as $section => $sectionName)
|
||||
<li class="nav-item">
|
||||
<a class="nav-link @if($sectionName == reset($formSectionNames)) active @endif" data-toggle="tab"
|
||||
href="#{{$section}}" role="tab" id="{{$section}}-tab" aria-controls="{{$section}}">{{trans($sectionName)}}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
{{--<ul class='tabs'>--}}
|
||||
{{--<li><a href='#tab1'>Tab 1</a></li>--}}
|
||||
{{--<li><a href='#tab2'>Tab 2</a></li>--}}
|
||||
{{--<li><a href='#tab3'>Tab 3</a></li>--}}
|
||||
{{--</ul>--}}
|
||||
{{--<div id='tab1'>--}}
|
||||
{{--<p>Hi, this is the first tab.</p>--}}
|
||||
{{--</div>--}}
|
||||
{{--<div id='tab2'>--}}
|
||||
{{--<p>This is the 2nd tab.</p>--}}
|
||||
{{--</div>--}}
|
||||
{{--<div id='tab3'>--}}
|
||||
{{--<p>And this is the 3rd tab.</p>--}}
|
||||
{{--</div>--}}
|
||||
|
||||
|
||||
{{--<ul class="nav nav-tabs">--}}
|
||||
{{--<li class="active"><a data-toggle="tab" href="#home">Home</a></li>--}}
|
||||
{{--<li><a data-toggle="tab" href="#menu1">Menu 1</a></li>--}}
|
||||
{{--</ul>--}}
|
||||
|
||||
{{--<div class="tab-content">--}}
|
||||
{{--<div id="home" class="tab-pane fade in active">--}}
|
||||
{{--<h3>HOME</h3>--}}
|
||||
{{--<p>Some content.</p>--}}
|
||||
{{--</div>--}}
|
||||
{{--<div id="menu1" class="tab-pane fade">--}}
|
||||
{{--<h3>Menu 1</h3>--}}
|
||||
{{--<p>Some content in menu 1.</p>--}}
|
||||
{{--</div>--}}
|
||||
{{--</div>--}}
|
||||
<div class="tab-content tabs-bordered card">
|
||||
@foreach($formSections as $section => $view)
|
||||
<div class="tab-pane @if($view == reset($formSections)) active @endif" id="{{$section}}" role="tabpanel">
|
||||
@include($view)
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
Reference in New Issue
Block a user