blessing-skin-server/resources/views/admin/plugins.tpl

80 lines
2.3 KiB
PHP
Raw Normal View History

2016-10-17 12:20:55 +08:00
@extends('admin.master')
@section('title', trans('general.plugin-manage'))
@section('style')
<style> .btn { margin-right: 4px; } </style>
2016-10-17 12:20:55 +08:00
@endsection
@section('content')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
{{ trans('general.plugin-manage') }}
</h1>
2017-01-02 10:40:09 +08:00
<div class="breadcrumb"></div>
2016-10-17 12:20:55 +08:00
</section>
<!-- Main content -->
<section class="content">
@if (session()->has('message'))
<div class="callout callout-success" role="alert">
{{ session('message') }}
</div>
@endif
2016-10-17 12:20:55 +08:00
<div class="box">
<div class="box-body table-bordered">
<table id="plugin-table" class="table table-hover">
2016-10-17 12:20:55 +08:00
<thead>
<tr>
2016-12-30 15:01:34 +08:00
<th>{{ trans('admin.plugins.name') }}</th>
<th>{{ trans('admin.plugins.description') }}</th>
<th>{{ trans('admin.plugins.author') }}</th>
<th>{{ trans('admin.plugins.version') }}</th>
2016-12-30 20:37:27 +08:00
<th>{{ trans('admin.plugins.status.title') }}</th>
<th>{{ trans('admin.plugins.operations.title') }}</th>
2016-10-17 12:20:55 +08:00
</tr>
</thead>
</table>
</div>
</div>
</section><!-- /.content -->
</div><!-- /.content-wrapper -->
@endsection
@section('script')
<script type="text/javascript">
var table = $('#plugin-table').DataTable({
language: trans('vendor.datatables'),
2017-01-13 22:53:42 +08:00
scrollX: true,
pageLength: 25,
autoWidth: false,
processing: true,
serverSide: true,
ajax: '{{ url("admin/plugins/data") }}',
createdRow: function (row, data, index) {
$('td', row).eq(1).attr('id', 'description');
$('td', row).eq(2).attr('id', 'author');
$('td', row).eq(3).attr('id', 'version');
$('td', row).eq(4).attr('id', 'status');
},
columns: [
{data: 'title'},
{data: 'description', 'width': '35%'},
{data: 'author'},
{data: 'version'},
{data: 'status'},
{data: 'operations', searchable: false, orderable: false}
]
});
2016-10-17 12:20:55 +08:00
</script>
@endsection