Add mounts page to server admin view
This commit is contained in:
parent
34f718a8b1
commit
fa902cc074
9 changed files with 151 additions and 17 deletions
|
@ -21,6 +21,9 @@
|
|||
<li class="{{ $router->currentRouteNamed('admin.servers.view.database') ? 'active' : '' }}">
|
||||
<a href="{{ route('admin.servers.view.database', $server->id) }}">Database</a>
|
||||
</li>
|
||||
<li class="{{ $router->currentRouteNamed('admin.servers.view.mounts') ? 'active' : '' }}">
|
||||
<a href="{{ route('admin.servers.view.mounts', $server->id) }}">Mounts</a>
|
||||
</li>
|
||||
@endif
|
||||
<li class="{{ $router->currentRouteNamed('admin.servers.view.manage') ? 'active' : '' }}">
|
||||
<a href="{{ route('admin.servers.view.manage', $server->id) }}">Manage</a>
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
<th>Username</th>
|
||||
<th>Connections From</th>
|
||||
<th>Host</th>
|
||||
<th>Max Conenctions</th>
|
||||
<th>Max Connections</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@foreach($server->databases as $database)
|
||||
|
|
70
resources/views/admin/servers/view/mounts.blade.php
Normal file
70
resources/views/admin/servers/view/mounts.blade.php
Normal file
|
@ -0,0 +1,70 @@
|
|||
@extends('layouts.admin')
|
||||
|
||||
@section('title')
|
||||
Server — {{ $server->name }}: Mounts
|
||||
@endsection
|
||||
|
||||
@section('content-header')
|
||||
<h1>{{ $server->name }}<small>Manage server mounts.</small></h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('admin.index') }}">Admin</a></li>
|
||||
<li><a href="{{ route('admin.servers') }}">Servers</a></li>
|
||||
<li><a href="{{ route('admin.servers.view', $server->id) }}">{{ $server->name }}</a></li>
|
||||
<li class="active">Mounts</li>
|
||||
</ol>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
@include('admin.servers.partials.navigation')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Available Mounts</h3>
|
||||
</div>
|
||||
|
||||
<div class="box-body table-responsible no-padding">
|
||||
<table class="table table-hover">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Name</th>
|
||||
<th>Source</th>
|
||||
<th>Target</th>
|
||||
<th>Status</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach ($mounts as $mount)
|
||||
<tr>
|
||||
<td class="col-sm-1 middle"><code>{{ $mount->id }}</code></td>
|
||||
<td class="middle"><a href="{{ route('admin.mounts.view', $mount->id) }}">{{ $mount->name }}</a></td>
|
||||
<td class="middle"><code>{{ $mount->source }}</code></td>
|
||||
<td class="col-sm-2 middle"><code>{{ $mount->target }}</code></td>
|
||||
<td class="col-sm-2 middle">
|
||||
@if ($mount->id == 2)
|
||||
<span class="label label-primary">Unmounted</span>
|
||||
@else
|
||||
<span class="label label-success">Mounted</span>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td class="col-sm-1 middle">
|
||||
@if ($mount->id == 2)
|
||||
<button data-action="mount" data-id="{{ $mount->id }}" class="btn btn-xs btn-success"><i class="fa fa-plus"></i></button>
|
||||
@else
|
||||
<button data-action="unmount" data-id="{{ $mount->id }}" class="btn btn-xs btn-danger"><i class="fa fa-times"></i></button>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('footer-scripts')
|
||||
@parent
|
||||
@endsection
|
Reference in a new issue