Layout changes for file upload

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-06-21 10:50:37 -07:00
parent d8d12d4590
commit 7f664a7971

View file

@ -2,8 +2,8 @@
{{-- Page title --}}
@section('title')
{{ trans('admin/models/table.view') }}
{{ $model->model_tag }}
{{ $model->name }}
{{ ($model->model_number) ? '(#'.$model->model_number.')' : '' }}
@parent
@stop
@ -29,25 +29,44 @@
{{-- Page content --}}
@section('content')
<div class="row">
<div class="col-md-9">
<div class="box box-default">
@if ($model->id)
<div class="box-header with-border">
<div class="box-heading">
<h2 class="box-title"> {{ $model->name }}
{{ ($model->model_number) ? '(#'.$model->model_number.')' : '' }}
</h2>
</div>
</div><!-- /.box-header -->
@endif
<div class="box-body">
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
<li class="active">
<a href="#assets" data-toggle="tab">
<span class="hidden-lg hidden-md">
<i class="fas fa-barcode fa-2x"></i>
</span>
<span class="hidden-xs hidden-sm">
{{ trans('general.assets') }}
{!! (($model->assets) && ($model->assets->count() > 0 )) ? '<badge class="badge badge-secondary">'.number_format($model->assets->count()).'</badge>' : '' !!}
</span>
</a>
</li>
<li>
<a href="#uploads" data-toggle="tab">
<span class="hidden-lg hidden-md">
<i class="fas fa-barcode fa-2x"></i>
</span>
<span class="hidden-xs hidden-sm">
{{ trans('general.files') }}
</span>
</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane fade in active" id="assets">
@include('partials.asset-bulk-actions')
<table
data-columns="{{ \App\Presenters\AssetPresenter::dataTableLayout() }}"
data-cookie-id-table="assetListingTable"
@ -73,12 +92,20 @@
}'>
</table>
{{ Form::close() }}
</div>
</div> <!-- /.box-body-->
</div> <!-- /.box-default-->
</div> <!-- /.col-md-9-->
</div> <!-- /.tab-pane assets -->
<!-- side address column -->
<div class="tab-pane fade" id="uploads">
kljhglfh
</div>
</div> <!-- /.tab-content -->
</div> <!-- /.nav-tabs-custom -->
</div><!-- /. col-md-12 -->
<div class="col-md-3">
<div class="box box-default">
<div class="box-header with-border">
@ -180,11 +207,10 @@
@endif
</div>
</div>
</div>
</div>
</div>
</div> <!-- /.row -->
@stop
@section('moar_scripts')
@include ('partials.bootstrap-table')
@include ('partials.bootstrap-table', ['exportFile' => 'manufacturer' . $model->name . '-export', 'search' => false])
@stop