Commit 9cde8d3c authored by frankiejol's avatar frankiejol
Browse files

refactor(frontend): fixed un-balanced tags

parent 796002dd
......@@ -31,10 +31,10 @@ navbar-dark bg-dark fixed-top navbar-expand-lg navbar-inverse">
% }
<a class="dropdown-item" href="/admin/messages"><i class="fa fa-envelope" aria-hidden="true"></i>&nbsp;<%=l 'messages' %></a>
% if ($monitoring) {
<a class="dropdown-item" href="/admin/monitoring"><i class="fas fa-tachometer-alt" aria-hidden="true"></i>&nbsp<%=l 'monitoring' %></a>
<a class="dropdown-item" href="/admin/monitoring"><i class="fas fa-tachometer-alt" aria-hidden="true"></i>&nbsp;<%=l 'monitoring' %></a>
% }
% if ($_user->is_admin) {
<a class="dropdown-item" href="/admin/settings"><i class="fas fa-tachometer-alt" aria-hidden="true"></i>&nbsp<%=l 'settings' %></a>
<a class="dropdown-item" href="/admin/settings"><i class="fas fa-tachometer-alt" aria-hidden="true"></i>&nbsp;<%=l 'settings' %></a>
% }
</div>
</li>
......
......@@ -18,7 +18,6 @@
<li class="list-group-item list-group-item-primary">
<span ng-show="item.type == 'NAT'">nat</span>
<span ng-show="item.type == 'bridge'">bridge</span>
</p>
</li>
<li class="list-group-item">
<select ng-model="item.network"
......
......@@ -68,7 +68,7 @@
</div>
<div class="row">
<div class="col-lg-2">
<label for "boot"><%=l 'boot order' %></label>
<label for="boot"><%=l 'boot order' %></label>
</div>
<div class="col-lg-2">
<input type="text" size="2" name="boot" ng-model="add_disk.boot">
......
<html>
%= include 'bootstrap/header'
<body id="page-top" data-spy="scroll" data-target=".fixed-top" role="document">
<div id="wrapper">
......@@ -34,8 +35,8 @@
</div>
% }
</div>
</div>
<div>
</div><! --page-header -->
</div>
</div>
......
......@@ -12,6 +12,5 @@
<button type="reset" class="btn btn-outline-secondary" onclick = "location='/admin/users'"><%=l 'Cancel' %></button>
<input type="submit" class="btn btn-primary" name="grant" value="<%=l 'Submit' %>">
</form>
</form>
</div>
</div>
......@@ -30,7 +30,7 @@
{{domain.msg_timeout}}
</span>
</div>
<div "panel-body" ng-show="domain.is_active">
<div class="panel-body" ng-show="domain.is_active">
<h3>Connection</h3>
<ul ng-show="domain.is_active">
<li ng-show="domain.spice_password">
......@@ -46,7 +46,7 @@
<li><b>Display URL :</b>
<a ng-click="copy_password(); redirect()"
href="{{domain.display_url}}">{{domain.display_url}}</a></li>
href="{{domain.display_url}}">{{domain.display_url}}</a>
</li>
<li><b>Display IP :</b> {{domain.display.ip}} </li>
<li><b>Display Port :</b> {{domain.display.port}} </li>
......
......@@ -11,10 +11,9 @@
</div>
% }
<div class="card_body" ng-cloak="">
% if ($USER->can_change_settings($domain->id)) {
<div class="tab-content" id="v-pills-tabContent">
<div class="tab-pane fade show active" id="v-pills-description" role="tabpanel" aria-labelledby="v-pills-description-tab">
% if ($USER->can_change_settings($domain->id)) {
<div class="tab-pane fade" id="v-pills-description" role="tabpanel" aria-labelledby="v-pills-description-tab">
%= include 'main/vm_description'
</div>
<div class="tab-pane fade" id="v-pills-rename" role="tabpanel" aria-labelledby="v-pills-rename-tab">
......@@ -53,7 +52,7 @@
</div>
% }
% if ($USER->can_change_settings($domain->id) && !$domain->is_base) {
<div class="tab-pane fade" id="v-pills-actions" role="tabpanel" aria-labelledby="v-pills-actions-tab" >
<div class="tab-pane fade show active" id="v-pills-actions" role="tabpanel" aria-labelledby="v-pills-actions-tab" >
%= include 'main/vm_actions'
</div>
% }
......
<div class="nav flex-column nav-pills bg-light" id="v-pills-tab" role="tablist" aria-orientation="vertical">
% if (($USER->can_change_settings($domain->id)) && !$domain->is_base) {
<a class="nav-link" id="v-pills-actions-tab" ng-click="refresh_machine()" href="#v-pills-actions" data-toggle="pill" role="tab" aria-controls="v-pills-icons" aria-selected="true"><%=l 'Actions' %></a>
<a class="nav-link active" id="v-pills-actions-tab" href="#v-pills-actions" data-toggle="pill" role="tab" aria-controls="v-pills-actions" aria-selected="true"><%=l 'Actions' %></a>
% }
% if ($USER->can_change_settings($domain->id)) {
<a class="nav-link active" id="v-pills-description-tab" ng-click="refresh_machine()" href="#v-pills-description" data-toggle="pill" role="tab" aria-controls="v-pills-description" aria-selected="true"><%=l 'Description' %></a>
<a class="nav-link" id="v-pills-description-tab" ng-click="refresh_machine()" href="#v-pills-description" data-toggle="pill" role="tab" aria-controls="v-pills-description" aria-selected="false"><%=l 'Description' %></a>
% }
% if ($USER->can_change_settings($domain->id)) {
<a class="nav-link" id="v-pills-rename-tab" ng-click="refresh_machine()" href="#v-pills-rename" data-toggle="pill" role="tab" aria-controls="v-pills-rename" aria-selected="true"><%=l 'Rename' %></a>
<a class="nav-link" id="v-pills-rename-tab" ng-click="refresh_machine()" href="#v-pills-rename" data-toggle="pill" role="tab" aria-controls="v-pills-rename" aria-selected="false"><%=l 'Rename' %></a>
% }
% if ($USER->can_change_settings($domain->id) ) {
<a class="nav-link" id="v-pills-options-tab" ng-click="refresh_machine()" href="#v-pills-options" data-toggle="pill" role="tab" aria-controls="v-pills-options" aria-selected="false"><%=l 'Options' %></a>
......
......@@ -8,7 +8,7 @@
</button>
<span><%=l 'Start' %></span>
<br><br>
<div>
</div>
<div ng-show="showmachine.can_hibernate">
<button type="button" class="btn btn-warning btn-sm"
......
......@@ -60,7 +60,6 @@
</div>
</div>
</div>
</form>
</div>
<div class="panel-body" ng-show="!showmachine.is_base && showmachine.id_base">
<div class="row">
......
......@@ -15,6 +15,5 @@
</li>
</ul>
</div>
</div>
</div>
......@@ -110,7 +110,6 @@
<a ng-show="swap.enabled"
ng-click="swap.enabled=false"
align="right"><span class="badge badge-primary ml-2">Disable</span></a>
</label>
</div>
<div>
<span>Content will be cleaned on restore and shutdown</span>
......@@ -133,7 +132,6 @@
<a ng-show="data.enabled"
ng-click="data.enabled=false"
align="right"><span class="badge badge-primary ml-2">Disable</span></a>
</label>
</div>
<div>
<span>Content will be kept on restore</span>
......
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