17de38662SGunnar Mills<loader loading="loading"></loader>
2cd789508SIftekharul Islam<div id="configuration-date-time">
3b7ea2790SGunnar Mills  <h1>Date and time settings</h1>
4edf1ab46Sbeccabroek  <div class="column small-12 page-header">
5edf1ab46Sbeccabroek    <h2>Set date and time manually or configure a Network Time Protocol (NTP) Server</h2>
6cd789508SIftekharul Islam  </div>
7b7ea2790SGunnar Mills  <form class="time__form" role="form" action="">
87de38662SGunnar Mills    <fieldset>
97de38662SGunnar Mills      <div class="column large-8">
10b7ea2790SGunnar Mills        <div class="row column">
11b7ea2790SGunnar Mills          <label class="control-radio" for="ntp-time">Obtain Automatically from a Network Time Protocol (NTP) Server
122f955bd8SGunnar Mills            <input type="radio" id="ntp-time" ng-model="time.mode" value="NTP">
13b7ea2790SGunnar Mills            <span class="control__indicator control__indicator-on"></span>
14b7ea2790SGunnar Mills          </label>
15b7ea2790SGunnar Mills        </div>
16b7ea2790SGunnar Mills        <div class="row column date-time__ntp-servers-wrap">
17b7ea2790SGunnar Mills          <fieldset class="date-time__ntp-servers" ng-repeat="server in ntp.servers track by $index">
189e397721SGunnar Mills            <label for="ntp-server{{$index+1}}">NTP Server Address {{$index+1}} <span ng-if="$first">(Primary)</span></label>
1990121f3fSGunnar Mills            <div class="inline">
202f955bd8SGunnar Mills              <input id="ntp-server{{$index+1}}" type="text" ng-readonly="time.mode != 'NTP'" ng-model="server" ng-blur="ntp.servers[$index] = server" set-focus-on-new-input/>
2190121f3fSGunnar Mills            </div>
2290121f3fSGunnar Mills            <button class="date-time__dns-remove inline" ng-click="removeNTPField($index)">Remove</button>
23b7ea2790SGunnar Mills          </fieldset>
2490121f3fSGunnar Mills        </div>
2590121f3fSGunnar Mills        <div class="row column date-time__ntp-servers-wrap">
2690121f3fSGunnar Mills          <button type="button" class="btn-primary block" ng-click="addNTPField()">Add new NTP server</button>
27b7ea2790SGunnar Mills        </div>
28b7ea2790SGunnar Mills        <div class="row column">
29b7ea2790SGunnar Mills          <label class="control-radio" for="manual-time">Manually set date and time
302f955bd8SGunnar Mills            <input type="radio" id="manual-time" ng-model="time.mode" value="Manual"/>
31b7ea2790SGunnar Mills            <span class="control__indicator control__indicator-on"></span>
32b7ea2790SGunnar Mills          </label>
33b7ea2790SGunnar Mills        </div>
347de38662SGunnar Mills        <ul class="date-time__metadata-wrapper">
357de38662SGunnar Mills          <li class="date-time__metadata-block">
362f955bd8SGunnar Mills            <p class="content-label">BMC <span ng-if="time.owner != 'Split'">and Host</span> Time</p>
37b7ea2790SGunnar Mills            <div class="inline">
382f955bd8SGunnar Mills              <input type="date" ng-model="bmc.date" ng-readonly="time.mode == 'NTP'" min="2018-01-01" max="2099-12-31"/>
392f955bd8SGunnar Mills              <input type="time" ng-model="bmc.date" ng-readonly="time.mode == 'NTP'" />
40b7ea2790SGunnar Mills              <p class="courier-bold">{{bmc.timezone}}</p>
41b7ea2790SGunnar Mills            </div>
427de38662SGunnar Mills          </li>
432f955bd8SGunnar Mills          <li class="date-time__metadata-block" ng-if="time.owner == 'Split'">
4483dcedf1SGunnar Mills            <p class="content-label">Host Time</p>
45b7ea2790SGunnar Mills            <div class="inline">
46b7ea2790SGunnar Mills              <!--- Ideally, would just use one input, datetime-local, but datetime-local is not supported on Firefox.--->
47b7ea2790SGunnar Mills              <input type="date" ng-model="host.date" min="2018-01-01" max="2099-12-31"/>
48b7ea2790SGunnar Mills              <input type="time" ng-model="host.date"/>
49b7ea2790SGunnar Mills              <p class="courier-bold">{{host.timezone}}</p>
50b7ea2790SGunnar Mills            </div>
5183dcedf1SGunnar Mills          </li>
52c74d434cSGunnar Mills          <li class="date-time__metadata-block">
53*1ffa209eSDerick Montague            <label for="date-time-owner" class="content-label">Time Owner</label>
54*1ffa209eSDerick Montague            <select id="date-time-owner" ng-model="time.owner" class="date-time__owner-dropdown">
552f955bd8SGunnar Mills              <option class="courier-bold" ng-repeat="owner in timeOwners">{{owner}}</option>
56b7ea2790SGunnar Mills            </select>
57c74d434cSGunnar Mills          </li>
587de38662SGunnar Mills        </ul>
597de38662SGunnar Mills      </div>
607de38662SGunnar Mills    </fieldset>
61b7ea2790SGunnar Mills    <div class="time__submit-wrapper">
62b7ea2790SGunnar Mills      <button type="button" class="btn-primary inline" ng-click="setTime()">Save settings</button>
63b7ea2790SGunnar Mills      <button type="button" class="btn-secondary inline" ng-click="refresh()">Cancel</button>
64b7ea2790SGunnar Mills    </div>
65b7ea2790SGunnar Mills  </form>
66cd789508SIftekharul Islam</div>
67