2020-05-20 23:29:03 +00:00
|
|
|
{{-- Pterodactyl - Panel --}}
|
|
|
|
{{-- Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com> --}}
|
|
|
|
|
|
|
|
{{-- This software is licensed under the terms of the MIT license. --}}
|
|
|
|
{{-- https://opensource.org/licenses/MIT --}}
|
2020-05-21 00:00:53 +00:00
|
|
|
|
2020-05-20 23:29:03 +00:00
|
|
|
@extends('layouts.admin')
|
|
|
|
|
|
|
|
@section('title')
|
|
|
|
Mounts
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content-header')
|
|
|
|
<h1>Mounts<small>SoonTM</small></h1>
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li><a href="{{ route('admin.index') }}">Admin</a></li>
|
|
|
|
<li class="active">Mounts</li>
|
|
|
|
</ol>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<div class="box box-primary">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">Mount List</h3>
|
|
|
|
|
|
|
|
<div class="box-tools">
|
2020-05-21 00:00:53 +00:00
|
|
|
<button class="btn btn-sm btn-primary" data-toggle="modal" data-target="#newMountModal">Create New</button>
|
2020-05-20 23:29:03 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="box-body table-responsive no-padding">
|
|
|
|
<table class="table table-hover">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<th>ID</th>
|
2020-05-21 00:00:53 +00:00
|
|
|
<th>Name</th>
|
|
|
|
<th>Source</th>
|
|
|
|
<th>Target</th>
|
|
|
|
<th class="text-center">Eggs</th>
|
2020-05-20 23:29:03 +00:00
|
|
|
<th class="text-center">Nodes</th>
|
|
|
|
<th class="text-center">Servers</th>
|
|
|
|
</tr>
|
|
|
|
|
2020-05-21 00:00:53 +00:00
|
|
|
@foreach ($mounts as $mount)
|
2020-05-20 23:29:03 +00:00
|
|
|
<tr>
|
2020-05-21 00:00:53 +00:00
|
|
|
<td><code>{{ $mount->id }}</code></td>
|
2020-05-21 01:11:20 +00:00
|
|
|
<td><a href="{{ route('admin.mounts.view', $mount->id) }}">{{ $mount->name }}</a></td>
|
2020-05-21 00:00:53 +00:00
|
|
|
<td>{{ $mount->source }}</td>
|
|
|
|
<td>{{ $mount->target }}</td>
|
|
|
|
<td class="text-center">{{ $mount->eggs_count }}</td>
|
|
|
|
<td class="text-center">{{ $mount->nodes_count }}</td>
|
|
|
|
<td class="text-center">{{ $mount->servers_count }}</td>
|
2020-05-20 23:29:03 +00:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-05-21 00:00:53 +00:00
|
|
|
<div class="modal fade" id="newMountModal" tabindex="-1" role="dialog">
|
2020-05-20 23:29:03 +00:00
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content">
|
2020-05-21 00:00:53 +00:00
|
|
|
<form action="{{ route('admin.mounts') }}" method="POST">
|
2020-05-20 23:29:03 +00:00
|
|
|
<div class="modal-header">
|
2020-05-21 00:00:53 +00:00
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
<span aria-hidden="true" style="color: #FFFFFF">×</span>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<h4 class="modal-title">Create Mount</h4>
|
2020-05-20 23:29:03 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
2020-05-21 00:00:53 +00:00
|
|
|
<label for="pName" class="form-label">Name</label>
|
|
|
|
<input type="text" id="pName" name="name" class="form-control" />
|
2020-05-21 00:55:59 +00:00
|
|
|
<p class="text-muted small">Unique name used to separate this mount from another.</p>
|
2020-05-20 23:29:03 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-12">
|
2020-05-21 00:00:53 +00:00
|
|
|
<label for="pDescription" class="form-label">Description</label>
|
|
|
|
<textarea id="pDescription" name="description" class="form-control" rows="4"></textarea>
|
2020-05-21 00:55:59 +00:00
|
|
|
<p class="text-muted small">A longer description for this mount, must be less than 255 characters.</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
<label for="pSource" class="form-label">Source</label>
|
|
|
|
<input type="text" id="pSource" name="source" class="form-control" />
|
|
|
|
<p class="text-muted small">File path on the host system to mount to a container.</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
<label for="pTarget" class="form-label">Target</label>
|
|
|
|
<input type="text" id="pTarget" name="target" class="form-control" />
|
|
|
|
<p class="text-muted small">Where the mount will be accessible inside a container.</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
<label class="form-label">Read Only</label>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<div class="radio radio-success radio-inline">
|
|
|
|
<input type="radio" id="pReadOnlyFalse" name="read_only" value="0" checked>
|
|
|
|
<label for="pReadOnlyFalse">False</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="radio radio-warning radio-inline">
|
|
|
|
<input type="radio" id="pReadOnly" name="read_only" value="1">
|
|
|
|
<label for="pReadOnly">True</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<p class="text-muted small">Is the mount read only inside the container?</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
|
|
|
<label class="form-label">User Mountable</label>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<div class="radio radio-success radio-inline">
|
|
|
|
<input type="radio" id="pUserMountableFalse" name="user_mountable" value="0" checked>
|
|
|
|
<label for="pUserMountableFalse">False</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="radio radio-warning radio-inline">
|
|
|
|
<input type="radio" id="pUserMountable" name="user_mountable" value="1">
|
|
|
|
<label for="pUserMountable">True</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<p class="text-muted small">Should users be able to mount this themselves?</p>
|
2020-05-20 23:29:03 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
{!! csrf_field() !!}
|
|
|
|
<button type="button" class="btn btn-default btn-sm pull-left" data-dismiss="modal">Cancel</button>
|
|
|
|
<button type="submit" class="btn btn-success btn-sm">Create</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|