fix: 🐛 Show Product name instead of resource description #756

This commit is contained in:
IceToast 2023-04-04 01:58:23 +02:00
parent 44948226bb
commit 91476d2701
No known key found for this signature in database
GPG key ID: 1464353E063A5B97

View file

@ -11,7 +11,8 @@
<div class="col-sm-6"> <div class="col-sm-6">
<ol class="breadcrumb float-sm-right"> <ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="{{ route('home') }}">{{ __('Dashboard') }}</a></li> <li class="breadcrumb-item"><a href="{{ route('home') }}">{{ __('Dashboard') }}</a></li>
<li class="breadcrumb-item"><a class="text-muted" href="{{route('admin.servers.index')}}">{{__('Servers')}}</a></li> <li class="breadcrumb-item"><a class="text-muted"
href="{{ route('admin.servers.index') }}">{{ __('Servers') }}</a></li>
</ol> </ol>
</div> </div>
</div> </div>
@ -41,7 +42,7 @@
<th>{{ __('Name') }}</th> <th>{{ __('Name') }}</th>
<th>{{ __('User') }}</th> <th>{{ __('User') }}</th>
<th>{{ __('Server id') }}</th> <th>{{ __('Server id') }}</th>
<th>{{__('Config')}}</th> <th>{{ __('Product') }}</th>
<th>{{ __('Suspended at') }}</th> <th>{{ __('Suspended at') }}</th>
<th>{{ __('Created at') }}</th> <th>{{ __('Created at') }}</th>
<th>{{ __('Actions') }}</th> <th>{{ __('Actions') }}</th>
@ -73,16 +74,37 @@
serverSide: true, serverSide: true,
stateSave: true, stateSave: true,
ajax: "{{ route('admin.servers.datatable') }}{{ $filter ?? '' }}", ajax: "{{ route('admin.servers.datatable') }}{{ $filter ?? '' }}",
order: [[ 5, "desc" ]], order: [
columns: [ [5, "desc"]
{data: 'status' , name : 'servers.suspended'}, ],
{data: 'name'}, columns: [{
{data: 'user' , name : 'user.name'}, data: 'status',
{data: 'identifier'}, name: 'servers.suspended'
{data: 'resources' , name : 'product.name'}, },
{data: 'suspended'}, {
{data: 'created_at'}, data: 'name'
{data: 'actions' , sortable : false}, },
{
data: 'user',
name: 'user.name'
},
{
data: 'identifier'
},
{
data: 'product.name',
sortable: false
},
{
data: 'suspended'
},
{
data: 'created_at'
},
{
data: 'actions',
sortable: false
},
], ],
fnDrawCallback: function(oSettings) { fnDrawCallback: function(oSettings) {
$('[data-toggle="popover"]').popover(); $('[data-toggle="popover"]').popover();