2021-08-11 13:45:30 +00:00
|
|
|
@extends('layouts.app')
|
|
|
|
@section('htmlheader_title')
|
|
|
|
Fileareas
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<h2>About Fileareas</h2>
|
|
|
|
<p>BBS Systems exchange area able to exchange and distribute files. Files are grouped into <strong class="highlight">fileareas</strong> normally around a theme or type.</p>
|
|
|
|
<p>Each filerea has a unique <strong class="highlight">filetag</strong> which helps a receiving BBS to know where to store the file when it is received.</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-6">
|
2021-08-14 01:11:20 +00:00
|
|
|
<p>This system is aware of the following fileareas @can('admin',(new \App\Models\Filearea))(you can <a href="{{ url('ftn/filearea/addedit') }}">add</a> more)@endcan:</p>
|
2021-08-11 13:45:30 +00:00
|
|
|
|
|
|
|
@if (\App\Models\Filearea::count() == 0)
|
|
|
|
@can('admin',(new \App\Models\Filearea))
|
|
|
|
<p>There are no fileareas setup, to <a href="{{ url('ftn/filearea/addedit') }}">set up your first</a>.</p>
|
|
|
|
@else
|
|
|
|
<p class="pad">There are no fileareas - you need to ask an admin to create one for you.</p>
|
|
|
|
@endcan
|
|
|
|
@else
|
2021-08-14 01:11:20 +00:00
|
|
|
<table class="table monotable" id="filearea">
|
2021-08-11 13:45:30 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>ID</th>
|
|
|
|
<th>Filetag</th>
|
|
|
|
<th>Description</th>
|
|
|
|
<th>Active</th>
|
|
|
|
<th>Domain</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
@foreach (\App\Models\Filearea::orderBy('name')->with(['domain'])->get() as $oo)
|
|
|
|
<tr>
|
|
|
|
<td><a href="{{ url('ftn/filearea/addedit',[$oo->id]) }}">{{ $oo->id }}</a></td>
|
|
|
|
<td>{{ $oo->name }}</td>
|
|
|
|
<td>{{ $oo->description }}</td>
|
|
|
|
<td>{{ $oo->active ? 'YES' : 'NO' }}</td>
|
|
|
|
<td>{{ $oo->domain->name }}</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('page-scripts')
|
2021-08-14 01:11:20 +00:00
|
|
|
<link type="text/css" rel="stylesheet" href="https://cdn.datatables.net/1.10.25/css/dataTables.bootstrap5.min.css" media="screen">
|
|
|
|
<link type="text/css" rel="stylesheet" href="{{ asset('plugin/dataTables/dataTables.bootstrap5.css') }}" media="screen">
|
|
|
|
|
|
|
|
<script type="text/javascript" src="https://cdn.datatables.net/1.10.25/js/jquery.dataTables.min.js"></script>
|
|
|
|
<script type="text/javascript" src="https://cdn.datatables.net/rowgroup/1.1.2/js/dataTables.rowGroup.min.js"></script>
|
|
|
|
<script type="text/javascript" src="{{ asset('plugin/dataTables/dataTables.conditionalPaging.js') }}"></script>
|
|
|
|
<script type="text/javascript" src="https://cdn.datatables.net/1.10.25/js/dataTables.bootstrap5.min.js"></script>
|
|
|
|
|
2021-08-11 13:45:30 +00:00
|
|
|
<script type="text/javascript">
|
2021-08-14 01:11:20 +00:00
|
|
|
$(document).ready(function() {
|
|
|
|
$('table tr').click(function() {
|
|
|
|
var href = $(this).find('a').attr('href');
|
|
|
|
|
|
|
|
if (href)
|
|
|
|
window.location = href;
|
|
|
|
});
|
2021-08-11 13:45:30 +00:00
|
|
|
|
2021-08-14 01:11:20 +00:00
|
|
|
$('#filearea').DataTable({
|
|
|
|
paging: true,
|
|
|
|
pageLength: 25,
|
|
|
|
searching: true,
|
|
|
|
order: [],
|
|
|
|
conditionalPaging: {
|
|
|
|
style: 'fade',
|
|
|
|
speed: 500
|
|
|
|
},
|
|
|
|
rowGroup: {
|
|
|
|
dataSrc: [4],
|
|
|
|
},
|
|
|
|
columnDefs: [
|
|
|
|
{
|
|
|
|
targets: [4],
|
|
|
|
visible: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
language: {
|
|
|
|
paginate: {
|
|
|
|
previous: '<<',
|
|
|
|
next: '>>'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
2021-08-11 13:45:30 +00:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
@append
|