summaryrefslogtreecommitdiffstats
path: root/app/configuration/controllers/network-controller.html
diff options
context:
space:
mode:
authorbeccabroek <beccabroek@gmail.com>2018-09-13 14:39:23 -0500
committerEd Tanous <ed.tanous@intel.com>2018-09-18 21:18:09 +0000
commitcff615087151fae06ad9d5259ab0fb3bb6a2dd4e (patch)
treefa84d7d5c905f0f362a0e5dc1a709d69e2f5a1ba /app/configuration/controllers/network-controller.html
parent295bcee474724ddf9210e16a2477226b57a2b3fd (diff)
downloadphosphor-webui-cff615087151fae06ad9d5259ab0fb3bb6a2dd4e.tar.gz
phosphor-webui-cff615087151fae06ad9d5259ab0fb3bb6a2dd4e.zip
Button to remove DNS server
Added button to remove DNS server from Nameservers list. Resolves openbmc/phosphor-webui#11 Tested: Added and was able to remove DNS servers from list. Page updated appropriately. Change-Id: I64e9d2499465f1aa5f9f34c831961578abf32b2b Signed-off-by: beccabroek <beccabroek@gmail.com>
Diffstat (limited to 'app/configuration/controllers/network-controller.html')
-rw-r--r--app/configuration/controllers/network-controller.html17
1 files changed, 10 insertions, 7 deletions
diff --git a/app/configuration/controllers/network-controller.html b/app/configuration/controllers/network-controller.html
index 4bc210a..39a708a 100644
--- a/app/configuration/controllers/network-controller.html
+++ b/app/configuration/controllers/network-controller.html
@@ -73,13 +73,16 @@
<h2 class="inline h4">DNS settings</h2>
</div>
<fieldset>
- <div class="column small-12 large-4">
- <!-- Call Nameservers "DNS Servers" on the GUI -->
- <fieldset class="net-config__static-ip-wrap" ng-repeat="dns in interface.Nameservers track by $index">
- <label for="net-config__prime-dns{{$index+1}}">DNS Server {{$index+1}}</label>
- <input id="net-config__prime-dns{{$index+1}}" type="text" ng-model="dns" ng-blur="interface.Nameservers[$index] = dns" set-focus-on-new-input//>
- </fieldset>
- <button type="button" class="btn-primary inline" ng-click="addDNSField()">Add new DNS server</button>
+ <!-- Call Nameservers "DNS Servers" on the GUI -->
+ <fieldset class="net-config__static-ip-wrap" ng-repeat="dns in interface.Nameservers track by $index">
+ <div class="column small-12">
+ <label for="net-config__prime-dns{{$index+1}}">DNS Server {{$index+1}}</label>
+ <input id="net-config__prime-dns{{$index+1}}" class="network-input column small-6 large-4 inline" type="text" ng-model="dns" ng-blur="interface.Nameservers[$index] = dns" set-focus-on-new-input//>
+ <button class="dns__server-remove inline" ng-click="removeDNSField($index)">Remove</button>
+ </div>
+ </fieldset>
+ <div class="column small-12">
+ <button type="button" class="btn-primary inline dns_add" ng-click="addDNSField()">Add new DNS server</button>
</div>
</fieldset>
<div class="network-config__submit-wrapper">
OpenPOWER on IntegriCloud