Gunnar Mills | 7de3866 | 2018-07-18 13:01:48 -0500 | [diff] [blame] | 1 | <loader loading="loading"></loader> |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 2 | <div id="configuration-date-time"> |
beccabroek | edf1ab4 | 2019-02-15 16:26:38 -0600 | [diff] [blame] | 3 | <h1>Date and time settings</h1> |
| 4 | <div class="column small-12 page-header"> |
| 5 | <h2>Set date and time manually or configure a Network Time Protocol (NTP) Server</h2> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 6 | </div> |
| 7 | <form class="time__form" role="form" action=""> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 8 | <fieldset> |
| 9 | <div class="column large-8"> |
| 10 | <div class="row column"> |
| 11 | <label class="control-radio" for="ntp-time">Obtain Automatically from a Network Time Protocol (NTP) Server |
Gunnar Mills | 2f955bd | 2018-10-13 16:56:10 -0500 | [diff] [blame] | 12 | <input type="radio" id="ntp-time" ng-model="time.mode" value="NTP"> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 13 | <span class="control__indicator control__indicator-on"></span> |
| 14 | </label> |
| 15 | </div> |
| 16 | <div class="row column date-time__ntp-servers-wrap"> |
| 17 | <fieldset class="date-time__ntp-servers" ng-repeat="server in ntp.servers track by $index"> |
Gunnar Mills | 9e39772 | 2018-09-21 10:59:50 -0500 | [diff] [blame] | 18 | <label for="ntp-server{{$index+1}}">NTP Server Address {{$index+1}} <span ng-if="$first">(Primary)</span></label> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 19 | <div class="inline"> |
Gunnar Mills | 2f955bd | 2018-10-13 16:56:10 -0500 | [diff] [blame] | 20 | <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/> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 21 | </div> |
Yoshie Muranaka | c86ce3c | 2019-06-05 12:30:30 -0500 | [diff] [blame] | 22 | <button class="btn date-time__dns-remove btn-tertiary" ng-click="removeNTPField($index)">Remove</button> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 23 | </fieldset> |
| 24 | </div> |
| 25 | <div class="row column date-time__ntp-servers-wrap"> |
Yoshie Muranaka | c86ce3c | 2019-06-05 12:30:30 -0500 | [diff] [blame] | 26 | <button type="button" class="btn btn-primary" ng-click="addNTPField()">Add new NTP server</button> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 27 | </div> |
| 28 | <div class="row column"> |
| 29 | <label class="control-radio" for="manual-time">Manually set date and time |
Gunnar Mills | 2f955bd | 2018-10-13 16:56:10 -0500 | [diff] [blame] | 30 | <input type="radio" id="manual-time" ng-model="time.mode" value="Manual"/> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 31 | <span class="control__indicator control__indicator-on"></span> |
| 32 | </label> |
| 33 | </div> |
| 34 | <ul class="date-time__metadata-wrapper"> |
| 35 | <li class="date-time__metadata-block"> |
Gunnar Mills | 2f955bd | 2018-10-13 16:56:10 -0500 | [diff] [blame] | 36 | <p class="content-label">BMC <span ng-if="time.owner != 'Split'">and Host</span> Time</p> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 37 | <div class="inline"> |
Gunnar Mills | 2f955bd | 2018-10-13 16:56:10 -0500 | [diff] [blame] | 38 | <input type="date" ng-model="bmc.date" ng-readonly="time.mode == 'NTP'" min="2018-01-01" max="2099-12-31"/> |
| 39 | <input type="time" ng-model="bmc.date" ng-readonly="time.mode == 'NTP'" /> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 40 | <p class="courier-bold">{{bmc.timezone}}</p> |
| 41 | </div> |
| 42 | </li> |
Gunnar Mills | 2f955bd | 2018-10-13 16:56:10 -0500 | [diff] [blame] | 43 | <li class="date-time__metadata-block" ng-if="time.owner == 'Split'"> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 44 | <p class="content-label">Host Time</p> |
| 45 | <div class="inline"> |
| 46 | <!--- Ideally, would just use one input, datetime-local, but datetime-local is not supported on Firefox.---> |
| 47 | <input type="date" ng-model="host.date" min="2018-01-01" max="2099-12-31"/> |
| 48 | <input type="time" ng-model="host.date"/> |
| 49 | <p class="courier-bold">{{host.timezone}}</p> |
| 50 | </div> |
| 51 | </li> |
| 52 | <li class="date-time__metadata-block"> |
Derick Montague | 1ffa209 | 2019-04-01 17:57:27 -0500 | [diff] [blame] | 53 | <label for="date-time-owner" class="content-label">Time Owner</label> |
| 54 | <select id="date-time-owner" ng-model="time.owner" class="date-time__owner-dropdown"> |
| 55 | <option class="courier-bold" ng-repeat="owner in timeOwners">{{owner}}</option> |
| 56 | </select> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 57 | </li> |
| 58 | </ul> |
| 59 | </div> |
| 60 | </fieldset> |
| 61 | <div class="time__submit-wrapper"> |
Dixsie Wolmers | fdcb35e | 2019-09-26 14:00:04 -0500 | [diff] [blame] | 62 | <button type="button" class="btn btn-primary" ng-click="saveDateTimeSettings()">Save settings</button> |
Yoshie Muranaka | c86ce3c | 2019-06-05 12:30:30 -0500 | [diff] [blame] | 63 | <button type="button" class="btn btn-secondary" ng-click="refresh()">Cancel</button> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 64 | </div> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 65 | </form> |
Gunnar Mills | 7de3866 | 2018-07-18 13:01:48 -0500 | [diff] [blame] | 66 | </div> |