1cd789508SIftekharul Islam<div id="configuration-network">
2cd789508SIftekharul Islam	<div class="row column">
351946552SMichael Davis		<h1>BMC network settings</h1>
4cd789508SIftekharul Islam	</div>
5a960c8c7SMichael Davis	<form class="net-config__form" role="form" action="">
6a960c8c7SMichael Davis		<section class="row column">
7a960c8c7SMichael Davis			<div class="column small-12 page-header">
8a960c8c7SMichael Davis				<h2 class="inline h4">Common settings</h2>
9a960c8c7SMichael Davis			</div>
10a960c8c7SMichael Davis			<fieldset>
1151946552SMichael Davis				<div class="column small-12 large-3">
12*2a489554SIftekharul Islam					<label for="net-config__mac">Hostname</label>
13*2a489554SIftekharul Islam					<input id="net-config__mac" type="text" readonly value="{{hostname}}"/>
14*2a489554SIftekharul Islam				</div>
15*2a489554SIftekharul Islam				<div class="column small-12 large-3">
1651946552SMichael Davis					<label for="netinterface-select">Network interface</label>
17a960c8c7SMichael Davis					<div id="netinterface-select" class="dropdown__wrapper">
18*2a489554SIftekharul Islam						<button type="button" class="dropdown__button" ng-click="networkDevice = !networkDevice">{{selectedInterface}}</button>
19a960c8c7SMichael Davis						<ul class="dropdown__list inline" ng-show="networkDevice">
20*2a489554SIftekharul Islam							<li ng-repeat="interface_id in network.interface_ids">
21*2a489554SIftekharul Islam								<button type="button" ng-click="selectInterface(interface_id);">{{interface_id}}</button>
22a960c8c7SMichael Davis							</li>
23a960c8c7SMichael Davis						</ul>
24a960c8c7SMichael Davis					</div>
25a960c8c7SMichael Davis				</div>
2651946552SMichael Davis				<div class="column small-12 large-3">
27*2a489554SIftekharul Islam					<label for="net-config__host">MAC address</label>
28*2a489554SIftekharul Islam					<input id="net-config__host" type="text" ng-model="interface.MACAddress"/>
29a960c8c7SMichael Davis				</div>
3051946552SMichael Davis				<div class="column small-12 large-3">
3151946552SMichael Davis					<label for="net-config__domain">Domain name</label>
32*2a489554SIftekharul Islam					<input id="net-config__domain" type="text" ng-model="interface.DomainName"/>
33a960c8c7SMichael Davis				</div>
34a960c8c7SMichael Davis			</fieldset>
35a960c8c7SMichael Davis		</section>
36a960c8c7SMichael Davis		<section class="row column">
3751946552SMichael Davis			<div class="column small-12 page-header">
38a960c8c7SMichael Davis				<h2 class="inline h4">IPV4 settings</h2>
39a960c8c7SMichael Davis			</div>
40a960c8c7SMichael Davis			<fieldset>
41a960c8c7SMichael Davis				<div class="row column">
42a960c8c7SMichael Davis					<label class="control-radio" for="dhcp-address">Obtain an IP address automatically using DHCP
43*2a489554SIftekharul Islam						<input type="radio" name="ip-address" id="dhcp-address" ng-checked="true" ng-model="interface.DHCPEnabled" ng-value="true">
44a960c8c7SMichael Davis						<span class="control__indicator control__indicator-on"></span>
45a960c8c7SMichael Davis					</label>
46a960c8c7SMichael Davis				</div>
47a960c8c7SMichael Davis				<div class="row column">
48a960c8c7SMichael Davis					<label class="control-radio" for="static-ip-address">Assign a static IP address
49*2a489554SIftekharul Islam						<input type="radio" name="ip-address" id="static-ip-address" ng-model="interface.DHCPEnabled" ng-value="false"/>
50a960c8c7SMichael Davis						<span class="control__indicator control__indicator-on"></span>
51a960c8c7SMichael Davis					</label>
52a960c8c7SMichael Davis				</div>
53*2a489554SIftekharul Islam				<fieldset class="net-config__static-ip-wrap" ng-repeat="ipv4 in interface.ipv4.values">
5451946552SMichael Davis					<div class="column small-12 large-4">
55a960c8c7SMichael Davis						<label for="net-config__ipv4-address" class="inline">IPV4 address</label>
56*2a489554SIftekharul Islam						<input id="net-config__ipv4-address" type="text" ng-disabled="interface.DHCPEnabled" ng-model="ipv4.Address"/>
57a960c8c7SMichael Davis					</div>
5851946552SMichael Davis					<div class="column small-12 large-4">
59*2a489554SIftekharul Islam						<label for="net-config__subnet" class="inline">Gateway</label>
60*2a489554SIftekharul Islam						<input id="net-config__subnet" type="text" ng-disabled="interface.DHCPEnabled" value="" ng-model="ipv4.Gateway"/>
61a960c8c7SMichael Davis					</div>
6251946552SMichael Davis					<div class="column small-12 large-4">
63*2a489554SIftekharul Islam						<label for="net-config__default-gateway" class="inline">Origin</label>
64*2a489554SIftekharul Islam						<input id="net-config__default-gateway" type="text" ng-disabled="interface.DHCPEnabled"  ng-model="ipv4.Origin"/>
65a960c8c7SMichael Davis					</div>
66a960c8c7SMichael Davis				</fieldset>
67a960c8c7SMichael Davis			</fieldset>
6851946552SMichael Davis		</section>
6951946552SMichael Davis		<section class="row column">
7051946552SMichael Davis			<div class="column small-12 page-header">
7151946552SMichael Davis				<h2 class="inline h4">DNS settings</h2>
7251946552SMichael Davis			</div>
7351946552SMichael Davis			<fieldset>
7451946552SMichael Davis				<div class="column small-12 large-4">
75*2a489554SIftekharul Islam					<ul>
76*2a489554SIftekharul Islam						<li ng-repeat="dns in interface.Nameservers track by $index">
77*2a489554SIftekharul Islam							<label for="net-config__prime-dns">DNS Server {{$index+1}}</label>{{dns}}
78*2a489554SIftekharul Islam							<br/>
79*2a489554SIftekharul Islam						</li>
80*2a489554SIftekharul Islam					</ul>
8151946552SMichael Davis				</div>
8251946552SMichael Davis			</fieldset>
8351946552SMichael Davis			<div class="network-config__submit-wrapper">
84db28a387SIftekharul Islam				<button class="btn-primary inline">Save settings</button>
85a960c8c7SMichael Davis				<button class="btn-secondary inline">Cancel</button>
86a960c8c7SMichael Davis			</div>
87a960c8c7SMichael Davis		</section>
88a960c8c7SMichael Davis	</form>
89cd789508SIftekharul Islam</div>