blob: 491ab561428eb54bee7e1837ebed463b6c5709e8 [file] [log] [blame]
Gunnar Mills7de38662018-07-18 13:01:48 -05001<loader loading="loading"></loader>
Iftekharul Islamcd789502017-04-19 14:37:55 -05002<div id="configuration-date-time">
Gunnar Mills7de38662018-07-18 13:01:48 -05003 <div class="row column">
Gunnar Millsb7ea2792018-07-18 13:01:48 -05004 <h1>Date and time settings</h1>
Gunnar Mills7de38662018-07-18 13:01:48 -05005 </div>
Gunnar Millsb7ea2792018-07-18 13:01:48 -05006 <form class="time__form" role="form" action="">
7 <div class="page-header">
8 <h2 class="bold h4">Date and time set to Network Time Protocol (NTP) or manually</h2>
Gunnar Mills7de38662018-07-18 13:01:48 -05009 </div>
Gunnar Millsb7ea2792018-07-18 13:01:48 -050010 <fieldset>
11 <div class="column large-8">
12 <div class="row column">
13 <label class="control-radio" for="ntp-time">Obtain Automatically from a Network Time Protocol (NTP) Server
14 <input type="radio" id="ntp-time" ng-model="time_mode" value="NTP">
15 <span class="control__indicator control__indicator-on"></span>
16 </label>
17 </div>
18 <div class="row column date-time__ntp-servers-wrap">
19 <fieldset class="date-time__ntp-servers" ng-repeat="server in ntp.servers track by $index">
20 <label for="ntp-server{{$index+1}}">NTP Server Address {{$index+1}}</label>
21 <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/>
22 </fieldset>
23 <button type="button" class="btn-primary inline" ng-click="addNTPField()">Add new NTP server</button>
24 </div>
25 <div class="row column">
26 <label class="control-radio" for="manual-time">Manually set date and time
27 <input type="radio" id="manual-time" ng-model="time_mode" value="Manual"/>
28 <span class="control__indicator control__indicator-on"></span>
29 </label>
30 </div>
31 <ul class="date-time__metadata-wrapper">
32 <li class="date-time__metadata-block">
33 <p class="content-label">BMC <span ng-if="time_owner != 'Split'">and Host</span> Time</p>
34 <div class="inline">
35 <input type="date" ng-model="bmc.date" ng-readonly="time_mode == 'NTP'" min="2018-01-01" max="2099-12-31"/>
36 <input type="time" ng-model="bmc.date" ng-readonly="time_mode == 'NTP'" />
37 <p class="courier-bold">{{bmc.timezone}}</p>
38 </div>
39 </li>
40 <li class="date-time__metadata-block" ng-if="time_owner == 'Split'">
41 <p class="content-label">Host Time</p>
42 <div class="inline">
43 <!--- Ideally, would just use one input, datetime-local, but datetime-local is not supported on Firefox.--->
44 <input type="date" ng-model="host.date" min="2018-01-01" max="2099-12-31"/>
45 <input type="time" ng-model="host.date"/>
46 <p class="courier-bold">{{host.timezone}}</p>
47 </div>
48 </li>
49 <li class="date-time__metadata-block">
50 <label class="content-label">Time Owner</label>
51 <select ng-model="time_owner" class="date-time__owner-dropdown">
52 <option class="courier-bold" ng-repeat="owner in time_owners">{{owner}}</option>
53 </select>
54 </li>
55 </ul>
56 </div>
57 </fieldset>
58 <div class="time__submit-wrapper">
59 <button type="button" class="btn-primary inline" ng-click="setTime()">Save settings</button>
60 <button type="button" class="btn-secondary inline" ng-click="refresh()">Cancel</button>
61 </div>
62 <p class="success-msg" ng-show="set_time_success" role="alert">Success! Time changed!</p>
63 <p class="set_time_error error-msg" ng-show="set_time_error" role="alert">Error setting time!</p>
64 </form>
Gunnar Mills7de38662018-07-18 13:01:48 -050065</div>