Merge pull request #2627 from pterodactyl/matthewpi/admin-patch-1

Tweaks to admin area
This commit is contained in:
Dane Everitt 2020-10-31 13:45:26 -07:00 committed by GitHub
commit e157b8baf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 17 deletions

View file

@ -11,7 +11,7 @@
@endsection @endsection
@section('content-header') @section('content-header')
<h1>Mounts<small>SoonTM</small></h1> <h1>Mounts<small>Configure and manage additional mount points for servers.</small></h1>
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="{{ route('admin.index') }}">Admin</a></li> <li><a href="{{ route('admin.index') }}">Admin</a></li>
<li class="active">Mounts</li> <li class="active">Mounts</li>

View file

@ -96,30 +96,33 @@
</div> </div>
@endif @endif
@if($canTransfer) <div class="col-sm-4">
<div class="col-sm-4"> <div class="box box-success">
<div class="box box-success"> <div class="box-header with-border">
<div class="box-header with-border"> <h3 class="box-title">Transfer Server</h3>
<h3 class="box-title">Transfer Server</h3> </div>
</div> <div class="box-body">
<div class="box-body"> <p>
<p> Transfer this server to another node connected to this panel.
Hopefully, you will soon be able to move servers around without needing to do a bunch of confusing <strong>Warning!</strong> This feature has not been fully tested and may have bugs.
operations manually and it will work fluidly and with no problems. </p>
</p> </div>
</div>
<div class="box-footer"> <div class="box-footer">
@if($canTransfer)
<button class="btn btn-success" data-toggle="modal" data-target="#transferServerModal">Transfer Server</button> <button class="btn btn-success" data-toggle="modal" data-target="#transferServerModal">Transfer Server</button>
</div> @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> </div>
</div> </div>
@endif </div>
</div> </div>
<div class="modal fade" id="transferServerModal" tabindex="-1" role="dialog"> <div class="modal fade" id="transferServerModal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document"> <div class="modal-dialog" role="document">
<div class="modal-content"> <div class="modal-content">
<!-- TODO: Change route -->
<form action="{{ route('admin.servers.view.manage.transfer', $server->id) }}" method="POST"> <form action="{{ route('admin.servers.view.manage.transfer', $server->id) }}" method="POST">
<div class="modal-header"> <div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>