webapp: added refresh link for zone viewer. minor ui changes done.

This commit is contained in:
Shreyas Zare
2020-06-13 19:19:52 +05:30
parent f3f0c10c15
commit 8af2f49bcc
2 changed files with 7 additions and 4 deletions

View File

@@ -300,7 +300,7 @@
<div id="divViewZones" style="margin-top: 10px;">
<div>
<div style="float: right;">
<button type="button" class="btn btn-primary" onclick="showAddZoneModal();">Add Zone</button>
<button type="button" class="btn btn-primary" style="padding: 2px 0px; width: 100px;" onclick="showAddZoneModal();">Add Zone</button>
</div>
<div style="clear: both;"></div>
</div>
@@ -336,14 +336,14 @@
</ul>
<div style="padding: 10px 0px;">
<h3 style="margin: 4px 0;"><span id="titleEditZone" style="margin-right: 10px;">example.com</span><a href="#" onclick="showEditZone(); return false;"><span class="glyphicon glyphicon-refresh" style="font-size: 20px;" aria-hidden="true"></span></a></h3>
<div style="float: left;">
<h3 id="titleEditZone" style="margin: 4px 0;">example.com</h3>
<span id="titleEditZoneType" class="label label-default">Primary</span>
<span id="titleEditZoneStatus" class="label label-success">Enabled</span>
<span id="titleEditZoneExpiry" style="font-size: 10px; font-weight: bold;">Expiry: 01 Jan 2020 00:00:00</span>
</div>
<div style="float: right; padding: 2px 0px;">
<button id="btnEditZoneAddRecord" type="button" class="btn btn-primary" onclick="showAddRecordModal();">Add Record</button>
<button id="btnEditZoneAddRecord" type="button" class="btn btn-primary" style="padding: 2px 0px; width: 100px;" onclick="showAddRecordModal();">Add Record</button>
</div>
<div style="clear: both;"></div>
</div>
@@ -1052,7 +1052,7 @@
<div id="divDhcpViewScopes" style="margin-top: 10px;">
<div style="float: right; padding: 2px 0px;">
<button type="button" class="btn btn-primary" onclick="showAddDhcpScope();">Add Scope</button>
<button type="button" class="btn btn-primary" style="padding: 2px 0px; width: 100px;" onclick="showAddDhcpScope();">Add Scope</button>
</div>
<div style="clear: both;"></div>

View File

@@ -295,6 +295,9 @@ function addZone() {
}
function showEditZone(domain) {
if (domain == null)
domain = $("#titleEditZone").text();
var divViewZonesLoader = $("#divViewZonesLoader");
var divViewZones = $("#divViewZones");
var divEditZone = $("#divEditZone");