2017-09-26 02:43:01 +00:00
|
|
|
{{-- Pterodactyl - Panel --}}
|
2017-03-05 00:03:49 +00:00
|
|
|
{{-- Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com> --}}
|
|
|
|
|
2017-09-26 02:43:01 +00:00
|
|
|
{{-- This software is licensed under the terms of the MIT license. --}}
|
|
|
|
{{-- https://opensource.org/licenses/MIT --}}
|
2017-03-05 00:03:49 +00:00
|
|
|
@extends('layouts.admin')
|
|
|
|
|
|
|
|
@section('title')
|
|
|
|
Server — {{ $server->name }}: Manage
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content-header')
|
|
|
|
<h1>{{ $server->name }}<small>Additional actions to control this server.</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">Manage</li>
|
|
|
|
</ol>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
2020-04-04 03:45:37 +00:00
|
|
|
@include('admin.servers.partials.navigation')
|
|
|
|
<div class="row">
|
2017-03-05 00:03:49 +00:00
|
|
|
<div class="col-sm-4">
|
2020-04-04 20:10:18 +00:00
|
|
|
<div class="box box-danger">
|
2017-03-05 00:03:49 +00:00
|
|
|
<div class="box-header with-border">
|
2020-04-04 03:45:37 +00:00
|
|
|
<h3 class="box-title">Reinstall Server</h3>
|
2017-03-05 00:03:49 +00:00
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
2020-09-13 18:13:37 +00:00
|
|
|
<p>This will reinstall the server with the assigned service scripts. <strong>Danger!</strong> This could overwrite server data.</p>
|
2017-03-05 00:03:49 +00:00
|
|
|
</div>
|
|
|
|
<div class="box-footer">
|
2020-04-04 03:45:37 +00:00
|
|
|
@if($server->installed === 1)
|
|
|
|
<form action="{{ route('admin.servers.view.manage.reinstall', $server->id) }}" method="POST">
|
|
|
|
{!! csrf_field() !!}
|
|
|
|
<button type="submit" class="btn btn-danger">Reinstall Server</button>
|
|
|
|
</form>
|
|
|
|
@else
|
|
|
|
<button class="btn btn-danger disabled">Server Must Install Properly to Reinstall</button>
|
|
|
|
@endif
|
2017-03-05 00:03:49 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
2020-04-04 03:45:37 +00:00
|
|
|
<div class="box box-primary">
|
2017-03-05 00:03:49 +00:00
|
|
|
<div class="box-header with-border">
|
2020-04-04 03:45:37 +00:00
|
|
|
<h3 class="box-title">Install Status</h3>
|
2017-03-05 00:03:49 +00:00
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
2020-04-04 03:45:37 +00:00
|
|
|
<p>If you need to change the install status from uninstalled to installed, or vice versa, you may do so with the button below.</p>
|
2017-03-05 00:03:49 +00:00
|
|
|
</div>
|
|
|
|
<div class="box-footer">
|
2020-04-04 03:45:37 +00:00
|
|
|
<form action="{{ route('admin.servers.view.manage.toggle', $server->id) }}" method="POST">
|
2017-03-05 00:03:49 +00:00
|
|
|
{!! csrf_field() !!}
|
2020-04-04 03:45:37 +00:00
|
|
|
<button type="submit" class="btn btn-primary">Toggle Install Status</button>
|
2017-03-05 00:03:49 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-16 16:34:47 +00:00
|
|
|
|
2020-04-04 03:45:37 +00:00
|
|
|
@if(! $server->suspended)
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<div class="box box-warning">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">Suspend Server</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
|
|
|
<p>This will suspend the server, stop any running processes, and immediately block the user from being able to access their files or otherwise manage the server through the panel or API.</p>
|
|
|
|
</div>
|
|
|
|
<div class="box-footer">
|
|
|
|
<form action="{{ route('admin.servers.view.manage.suspension', $server->id) }}" method="POST">
|
|
|
|
{!! csrf_field() !!}
|
|
|
|
<input type="hidden" name="action" value="suspend" />
|
|
|
|
<button type="submit" class="btn btn-warning">Suspend Server</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@else
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<div class="box box-success">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">Unsuspend Server</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
|
|
|
<p>This will unsuspend the server and restore normal user access.</p>
|
|
|
|
</div>
|
|
|
|
<div class="box-footer">
|
|
|
|
<form action="{{ route('admin.servers.view.manage.suspension', $server->id) }}" method="POST">
|
|
|
|
{!! csrf_field() !!}
|
|
|
|
<input type="hidden" name="action" value="unsuspend" />
|
|
|
|
<button type="submit" class="btn btn-success">Unsuspend Server</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
2020-12-16 16:34:47 +00:00
|
|
|
@if($server->transfer === null)
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<div class="box box-success">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">Transfer Server</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
|
|
|
<p>
|
|
|
|
Transfer this server to another node connected to this panel.
|
|
|
|
<strong>Warning!</strong> This feature has not been fully tested and may have bugs.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="box-footer">
|
|
|
|
@if($canTransfer)
|
|
|
|
<button class="btn btn-success" data-toggle="modal" data-target="#transferServerModal">Transfer Server</button>
|
|
|
|
@else
|
|
|
|
<button class="btn btn-success disabled">Transfer Server</button>
|
|
|
|
<p style="padding-top: 1rem;">Transferring a server requires more than one node to be configured on your panel.</p>
|
|
|
|
@endif
|
|
|
|
</div>
|
2020-10-30 17:02:29 +00:00
|
|
|
</div>
|
2020-12-16 16:34:47 +00:00
|
|
|
</div>
|
|
|
|
@else
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<div class="box box-success">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">Transfer Server</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
|
|
|
<p>
|
|
|
|
This server is currently being transferred to another node.
|
|
|
|
Transfer was initiated at <strong>{{ $server->transfer->created_at }}</strong>
|
|
|
|
</p>
|
|
|
|
</div>
|
2020-10-30 17:02:29 +00:00
|
|
|
|
2020-12-16 16:34:47 +00:00
|
|
|
<div class="box-footer">
|
2020-10-30 17:02:29 +00:00
|
|
|
<button class="btn btn-success disabled">Transfer Server</button>
|
2020-12-16 16:34:47 +00:00
|
|
|
</div>
|
2020-04-04 03:45:37 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-16 16:34:47 +00:00
|
|
|
@endif
|
2020-04-04 03:45:37 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal fade" id="transferServerModal" tabindex="-1" role="dialog">
|
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<form action="{{ route('admin.servers.view.manage.transfer', $server->id) }}" method="POST">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
|
<h4 class="modal-title">Transfer Server</h4>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-md-12">
|
|
|
|
<label for="pNodeId">Node</label>
|
|
|
|
<select name="node_id" id="pNodeId" class="form-control">
|
|
|
|
@foreach($locations as $location)
|
|
|
|
<optgroup label="{{ $location->long }} ({{ $location->short }})">
|
|
|
|
@foreach($location->nodes as $node)
|
|
|
|
|
|
|
|
@if($node->id != $server->node_id)
|
|
|
|
<option value="{{ $node->id }}"
|
|
|
|
@if($location->id === old('location_id')) selected @endif
|
|
|
|
>{{ $node->name }}</option>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@endforeach
|
|
|
|
</optgroup>
|
|
|
|
@endforeach
|
|
|
|
</select>
|
|
|
|
<p class="small text-muted no-margin">The node which this server will be transferred to.</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group col-md-12">
|
|
|
|
<label for="pAllocation">Default Allocation</label>
|
|
|
|
<select name="allocation_id" id="pAllocation" class="form-control"></select>
|
|
|
|
<p class="small text-muted no-margin">The main allocation that will be assigned to this server.</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group col-md-12">
|
|
|
|
<label for="pAllocationAdditional">Additional Allocation(s)</label>
|
|
|
|
<select name="allocation_additional[]" id="pAllocationAdditional" class="form-control" multiple></select>
|
|
|
|
<p class="small text-muted no-margin">Additional allocations to assign to this server on creation.</p>
|
|
|
|
</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">Confirm</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('footer-scripts')
|
|
|
|
@parent
|
|
|
|
{!! Theme::js('vendor/lodash/lodash.js') !!}
|
|
|
|
|
|
|
|
@if($canTransfer)
|
|
|
|
{!! Theme::js('js/admin/server/transfer.js') !!}
|
2017-03-05 00:03:49 +00:00
|
|
|
@endif
|
|
|
|
@endsection
|