Commit d9b06b48 authored by fv3rdugo's avatar fv3rdugo
Browse files

Reorder tabs

Add warning in Delete machine tab
parent d68ff10e
......@@ -381,3 +381,10 @@ ul.alert-dropdown {
border-radius: 5px;
}
.nav--danger{
border-top:1px solid #d73a49;
border-bottom:1px solid #d73a49;
border-left:1px solid #d73a49;
border-right:1px solid #d73a49;
}
......@@ -19,11 +19,11 @@
</div> <!-- del panel heading-->
<ul class="nav nav-tabs" id="myTab">
<li class="nav active"><a href="#drivers" data-toggle="tab">Drivers</a></li>
<li class="nav"><a href="#graphics" data-toggle="tab">Graphics</a></li>
% if ( $USER->is_admin ) {
<li class="nav"><a href="#remove" data-toggle="tab">Remove Machine</a></li>
<li class="nav"><a href="#rename" data-toggle="tab">Rename</a></li>
<li class="nav"><a href="#copy" data-toggle="tab">Copy</a></li>
<li class="nav"><a href="#graphics" data-toggle="tab">Graphics</a></li>
<li class="nav"><a href="#remove" data-toggle="tab">Delete Machine</a></li>
% }
</ul>
<div class="tab-content">
......
<div class="panel-body">
<div class="panel-body nav--danger">
<div class="panel panel-warning" ng-show="showmachine.has_clones">
<div class="panel-heading">
......@@ -13,21 +13,24 @@
>
<%=l 'Remove Clones' %>
</a>
<a type="button" class="btn btn-danger"
<h2 class="Subhead-heading">
Danger Zone
</h2>
<span class="text">Once you delete the machine, there is no going back. Please be certain.</span><br>
<a type="button" class="btn btn-danger"
ng-hide="showmachine.has_clones > 0"
ng-click="domain_remove=1"
>
<%=l 'Remove' %>
</a>
>
<%=l 'Delete this machine' %>
</a>
</div>
<div ng-show="domain_remove">
<b>Danger</b>.
<span class="text-danger"><b>Danger</b>.
This will remove all the contents of the machine
<i><%= $domain->name %></i>.
<b>This action can't be undone</b>.
Are you sure ? <br/>
Are you sure ? </span><br/>
<a type="button" class="btn btn-danger"
ng-click="domain_remove=0"
>No</a>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment