admin: update transfer server box on manage tab

This commit is contained in:
Matthew Penner 2020-10-30 11:02:29 -06:00
parent 73b795faba
commit 48013eddcc
1 changed files with 19 additions and 16 deletions

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>