17de38662SGunnar Mills<loader loading="loading"></loader> 2cd789508SIftekharul Islam<div id="configuration-date-time"> 3cd789508SIftekharul Islam <div class="row column"> 4*b7ea2790SGunnar Mills <h1>Date and time settings</h1> 5cd789508SIftekharul Islam </div> 6*b7ea2790SGunnar Mills <form class="time__form" role="form" action=""> 77de38662SGunnar Mills <div class="page-header"> 8*b7ea2790SGunnar Mills <h2 class="bold h4">Date and time set to Network Time Protocol (NTP) or manually</h2> 97de38662SGunnar Mills </div> 107de38662SGunnar Mills <fieldset> 117de38662SGunnar Mills <div class="column large-8"> 12*b7ea2790SGunnar Mills <div class="row column"> 13*b7ea2790SGunnar Mills <label class="control-radio" for="ntp-time">Obtain Automatically from a Network Time Protocol (NTP) Server 14*b7ea2790SGunnar Mills <input type="radio" id="ntp-time" ng-model="time_mode" value="NTP"> 15*b7ea2790SGunnar Mills <span class="control__indicator control__indicator-on"></span> 16*b7ea2790SGunnar Mills </label> 17*b7ea2790SGunnar Mills </div> 18*b7ea2790SGunnar Mills <div class="row column date-time__ntp-servers-wrap"> 19*b7ea2790SGunnar Mills <fieldset class="date-time__ntp-servers" ng-repeat="server in ntp.servers track by $index"> 20*b7ea2790SGunnar Mills <label for="ntp-server{{$index+1}}">NTP Server Address {{$index+1}}</label> 21*b7ea2790SGunnar 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/> 22*b7ea2790SGunnar Mills </fieldset> 23*b7ea2790SGunnar Mills <button type="button" class="btn-primary inline" ng-click="addNTPField()">Add new NTP server</button> 24*b7ea2790SGunnar Mills </div> 25*b7ea2790SGunnar Mills <div class="row column"> 26*b7ea2790SGunnar Mills <label class="control-radio" for="manual-time">Manually set date and time 27*b7ea2790SGunnar Mills <input type="radio" id="manual-time" ng-model="time_mode" value="Manual"/> 28*b7ea2790SGunnar Mills <span class="control__indicator control__indicator-on"></span> 29*b7ea2790SGunnar Mills </label> 30*b7ea2790SGunnar Mills </div> 317de38662SGunnar Mills <ul class="date-time__metadata-wrapper"> 327de38662SGunnar Mills <li class="date-time__metadata-block"> 3383dcedf1SGunnar Mills <p class="content-label">BMC <span ng-if="time_owner != 'Split'">and Host</span> Time</p> 34*b7ea2790SGunnar Mills <div class="inline"> 35*b7ea2790SGunnar Mills <input type="date" ng-model="bmc.date" ng-readonly="time_mode == 'NTP'" min="2018-01-01" max="2099-12-31"/> 36*b7ea2790SGunnar Mills <input type="time" ng-model="bmc.date" ng-readonly="time_mode == 'NTP'" /> 37*b7ea2790SGunnar Mills <p class="courier-bold">{{bmc.timezone}}</p> 38*b7ea2790SGunnar Mills </div> 397de38662SGunnar Mills </li> 4083dcedf1SGunnar Mills <li class="date-time__metadata-block" ng-if="time_owner == 'Split'"> 4183dcedf1SGunnar Mills <p class="content-label">Host Time</p> 42*b7ea2790SGunnar Mills <div class="inline"> 43*b7ea2790SGunnar Mills <!--- Ideally, would just use one input, datetime-local, but datetime-local is not supported on Firefox.---> 44*b7ea2790SGunnar Mills <input type="date" ng-model="host.date" min="2018-01-01" max="2099-12-31"/> 45*b7ea2790SGunnar Mills <input type="time" ng-model="host.date"/> 46*b7ea2790SGunnar Mills <p class="courier-bold">{{host.timezone}}</p> 47*b7ea2790SGunnar Mills </div> 4883dcedf1SGunnar Mills </li> 49c74d434cSGunnar Mills <li class="date-time__metadata-block"> 50*b7ea2790SGunnar Mills <label class="content-label">Time Owner</label> 51*b7ea2790SGunnar Mills <select ng-model="time_owner" class="date-time__owner-dropdown"> 52*b7ea2790SGunnar Mills <option class="courier-bold" ng-repeat="owner in time_owners">{{owner}}</option> 53*b7ea2790SGunnar Mills </select> 54c74d434cSGunnar Mills </li> 557de38662SGunnar Mills </ul> 567de38662SGunnar Mills </div> 577de38662SGunnar Mills </fieldset> 58*b7ea2790SGunnar Mills <div class="time__submit-wrapper"> 59*b7ea2790SGunnar Mills <button type="button" class="btn-primary inline" ng-click="setTime()">Save settings</button> 60*b7ea2790SGunnar Mills <button type="button" class="btn-secondary inline" ng-click="refresh()">Cancel</button> 61*b7ea2790SGunnar Mills </div> 62*b7ea2790SGunnar Mills <p class="success-msg" ng-show="set_time_success" role="alert">Success! Time changed!</p> 63*b7ea2790SGunnar Mills <p class="set_time_error error-msg" ng-show="set_time_error" role="alert">Error setting time!</p> 64*b7ea2790SGunnar Mills </form> 65cd789508SIftekharul Islam</div> 66