| Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 1 | <div id="configuration-network"> | 
| Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 2 | 	<div class="row column"> | 
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 3 | 		<h1>BMC network settings</h1> | 
| Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 4 | 	</div> | 
 | 5 | 	<form class="net-config__form" role="form" action=""> | 
 | 6 | 		<section class="row column"> | 
 | 7 | 			<div class="column small-12 page-header"> | 
 | 8 | 				<h2 class="inline h4">Common settings</h2> | 
 | 9 | 			</div> | 
 | 10 | 			<fieldset> | 
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 11 | 				<div class="column small-12 large-3"> | 
| Iftekharul Islam | 2a48955 | 2017-11-02 13:23:08 -0500 | [diff] [blame^] | 12 | 					<label for="net-config__mac">Hostname</label> | 
 | 13 | 					<input id="net-config__mac" type="text" readonly value="{{hostname}}"/> | 
 | 14 | 				</div> | 
 | 15 | 				<div class="column small-12 large-3"> | 
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 16 | 					<label for="netinterface-select">Network interface</label> | 
| Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 17 | 					<div id="netinterface-select" class="dropdown__wrapper"> | 
| Iftekharul Islam | 2a48955 | 2017-11-02 13:23:08 -0500 | [diff] [blame^] | 18 | 						<button type="button" class="dropdown__button" ng-click="networkDevice = !networkDevice">{{selectedInterface}}</button> | 
| Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 19 | 						<ul class="dropdown__list inline" ng-show="networkDevice"> | 
| Iftekharul Islam | 2a48955 | 2017-11-02 13:23:08 -0500 | [diff] [blame^] | 20 | 							<li ng-repeat="interface_id in network.interface_ids"> | 
 | 21 | 								<button type="button" ng-click="selectInterface(interface_id);">{{interface_id}}</button> | 
| Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 22 | 							</li> | 
 | 23 | 						</ul> | 
 | 24 | 					</div> | 
 | 25 | 				</div> | 
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 26 | 				<div class="column small-12 large-3"> | 
| Iftekharul Islam | 2a48955 | 2017-11-02 13:23:08 -0500 | [diff] [blame^] | 27 | 					<label for="net-config__host">MAC address</label> | 
 | 28 | 					<input id="net-config__host" type="text" ng-model="interface.MACAddress"/> | 
| Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 29 | 				</div> | 
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 30 | 				<div class="column small-12 large-3"> | 
 | 31 | 					<label for="net-config__domain">Domain name</label> | 
| Iftekharul Islam | 2a48955 | 2017-11-02 13:23:08 -0500 | [diff] [blame^] | 32 | 					<input id="net-config__domain" type="text" ng-model="interface.DomainName"/> | 
| Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 33 | 				</div> | 
 | 34 | 			</fieldset> | 
 | 35 | 		</section> | 
 | 36 | 		<section class="row column"> | 
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 37 | 			<div class="column small-12 page-header"> | 
| Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 38 | 				<h2 class="inline h4">IPV4 settings</h2> | 
 | 39 | 			</div> | 
 | 40 | 			<fieldset> | 
 | 41 | 				<div class="row column"> | 
 | 42 | 					<label class="control-radio" for="dhcp-address">Obtain an IP address automatically using DHCP | 
| Iftekharul Islam | 2a48955 | 2017-11-02 13:23:08 -0500 | [diff] [blame^] | 43 | 						<input type="radio" name="ip-address" id="dhcp-address" ng-checked="true" ng-model="interface.DHCPEnabled" ng-value="true"> | 
| Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 44 | 						<span class="control__indicator control__indicator-on"></span> | 
 | 45 | 					</label> | 
 | 46 | 				</div> | 
 | 47 | 				<div class="row column"> | 
 | 48 | 					<label class="control-radio" for="static-ip-address">Assign a static IP address | 
| Iftekharul Islam | 2a48955 | 2017-11-02 13:23:08 -0500 | [diff] [blame^] | 49 | 						<input type="radio" name="ip-address" id="static-ip-address" ng-model="interface.DHCPEnabled" ng-value="false"/> | 
| Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 50 | 						<span class="control__indicator control__indicator-on"></span> | 
 | 51 | 					</label> | 
 | 52 | 				</div> | 
| Iftekharul Islam | 2a48955 | 2017-11-02 13:23:08 -0500 | [diff] [blame^] | 53 | 				<fieldset class="net-config__static-ip-wrap" ng-repeat="ipv4 in interface.ipv4.values"> | 
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 54 | 					<div class="column small-12 large-4"> | 
| Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 55 | 						<label for="net-config__ipv4-address" class="inline">IPV4 address</label> | 
| Iftekharul Islam | 2a48955 | 2017-11-02 13:23:08 -0500 | [diff] [blame^] | 56 | 						<input id="net-config__ipv4-address" type="text" ng-disabled="interface.DHCPEnabled" ng-model="ipv4.Address"/> | 
| Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 57 | 					</div> | 
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 58 | 					<div class="column small-12 large-4"> | 
| Iftekharul Islam | 2a48955 | 2017-11-02 13:23:08 -0500 | [diff] [blame^] | 59 | 						<label for="net-config__subnet" class="inline">Gateway</label> | 
 | 60 | 						<input id="net-config__subnet" type="text" ng-disabled="interface.DHCPEnabled" value="" ng-model="ipv4.Gateway"/> | 
| Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 61 | 					</div> | 
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 62 | 					<div class="column small-12 large-4"> | 
| Iftekharul Islam | 2a48955 | 2017-11-02 13:23:08 -0500 | [diff] [blame^] | 63 | 						<label for="net-config__default-gateway" class="inline">Origin</label> | 
 | 64 | 						<input id="net-config__default-gateway" type="text" ng-disabled="interface.DHCPEnabled"  ng-model="ipv4.Origin"/> | 
| Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 65 | 					</div> | 
 | 66 | 				</fieldset> | 
 | 67 | 			</fieldset> | 
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 68 | 		</section> | 
 | 69 | 		<section class="row column"> | 
 | 70 | 			<div class="column small-12 page-header"> | 
 | 71 | 				<h2 class="inline h4">DNS settings</h2> | 
 | 72 | 			</div> | 
 | 73 | 			<fieldset> | 
 | 74 | 				<div class="column small-12 large-4"> | 
| Iftekharul Islam | 2a48955 | 2017-11-02 13:23:08 -0500 | [diff] [blame^] | 75 | 					<ul> | 
 | 76 | 						<li ng-repeat="dns in interface.Nameservers track by $index"> | 
 | 77 | 							<label for="net-config__prime-dns">DNS Server {{$index+1}}</label>{{dns}} | 
 | 78 | 							<br/> | 
 | 79 | 						</li> | 
 | 80 | 					</ul> | 
| Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 81 | 				</div> | 
 | 82 | 			</fieldset> | 
 | 83 | 			<div class="network-config__submit-wrapper"> | 
| Iftekharul Islam | db28a38 | 2017-11-02 13:16:17 -0500 | [diff] [blame] | 84 | 				<button class="btn-primary inline">Save settings</button> | 
| Michael Davis | a960c8c | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 85 | 				<button class="btn-secondary inline">Cancel</button> | 
 | 86 | 			</div> | 
 | 87 | 		</section> | 
 | 88 | 	</form> | 
| Iftekharul Islam | db28a38 | 2017-11-02 13:16:17 -0500 | [diff] [blame] | 89 | </div> |