Deleting nodes is now located on index

This commit is contained in:
Dane Everitt 2017-03-03 23:05:27 -05:00
parent 61d8332e93
commit 287015669a
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 39 additions and 23 deletions

View file

@ -43,7 +43,6 @@
<li><a href="{{ route('admin.nodes.view.configuration', $node->id) }}">Configuration</a></li>
<li class="active"><a href="{{ route('admin.nodes.view.allocation', $node->id) }}">Allocation</a></li>
<li><a href="{{ route('admin.nodes.view.servers', $node->id) }}">Servers</a></li>
<li class="tab-danger"><a href="{{ route('admin.nodes.view.delete', $node->id) }}">Delete</a></li>
</ul>
</div>
</div>

View file

@ -43,7 +43,6 @@
<li class="active"><a href="{{ route('admin.nodes.view.configuration', $node->id) }}">Configuration</a></li>
<li><a href="{{ route('admin.nodes.view.allocation', $node->id) }}">Allocation</a></li>
<li><a href="{{ route('admin.nodes.view.servers', $node->id) }}">Servers</a></li>
<li class="tab-danger"><a href="{{ route('admin.nodes.view.delete', $node->id) }}">Delete</a></li>
</ul>
</div>
</div>

View file

@ -42,13 +42,14 @@
<li><a href="{{ route('admin.nodes.view.configuration', $node->id) }}">Configuration</a></li>
<li><a href="{{ route('admin.nodes.view.allocation', $node->id) }}">Allocation</a></li>
<li><a href="{{ route('admin.nodes.view.servers', $node->id) }}">Servers</a></li>
<li class="tab-danger"><a href="{{ route('admin.nodes.view.delete', $node->id) }}">Delete</a></li>
</ul>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-8">
<div class="row">
<div class="col-xs-12">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Information</h3>
@ -71,6 +72,25 @@
</div>
</div>
</div>
<div class="col-xs-12">
<div class="box box-danger">
<div class="box-header with-border">
<h3 class="box-title">Delete Node</h3>
</div>
<div class="box-body">
<p class="no-margin">Deleting a node is a irreversable action and will immediately remove this node from the panel. There must be no servers associated with this node in order to continue.</p>
</div>
<div class="box-footer">
<form action="{{ route('admin.nodes.view.delete', $node->id) }}" method="POST">
{!! csrf_field() !!}
{!! method_field('DELETE') !!}
<button type="submit" class="btn btn-danger btn-sm pull-right" {{ ($node->servers_count < 1) ?: 'disabled' }}>Yes, Delete This Node</button>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="box box-primary">
<div class="box-header with-border">

View file

@ -43,7 +43,6 @@
<li><a href="{{ route('admin.nodes.view.configuration', $node->id) }}">Configuration</a></li>
<li><a href="{{ route('admin.nodes.view.allocation', $node->id) }}">Allocation</a></li>
<li class="active"><a href="{{ route('admin.nodes.view.servers', $node->id) }}">Servers</a></li>
<li class="tab-danger"><a href="{{ route('admin.nodes.view.delete', $node->id) }}">Delete</a></li>
</ul>
</div>
</div>

View file

@ -43,7 +43,6 @@
<li><a href="{{ route('admin.nodes.view.configuration', $node->id) }}">Configuration</a></li>
<li><a href="{{ route('admin.nodes.view.allocation', $node->id) }}">Allocation</a></li>
<li><a href="{{ route('admin.nodes.view.servers', $node->id) }}">Servers</a></li>
<li class="tab-danger"><a href="{{ route('admin.nodes.view.delete', $node->id) }}">Delete</a></li>
</ul>
</div>
</div>