mirror of
https://github.com/nasa/openmct.git
synced 2024-12-22 22:42:24 +00:00
aaa0ff768d
Get date-time as a UNIX timestamp (in milliseconds since start of 1970) add the model level for date-time controls. WTD-530.
62 lines
2.0 KiB
HTML
62 lines
2.0 KiB
HTML
<div class='form-control complex datetime'>
|
|
|
|
<div class='field-hints'>
|
|
<span class='hint date'>Date</span>
|
|
<span class='hint time sm'>Hour</span>
|
|
<span class='hint time sm'>Min</span>
|
|
<span class='hint time sm'>Sec</span>
|
|
<span class='hint timezone'>Timezone</span>
|
|
</div>
|
|
|
|
|
|
<ng-form name="mctControl">
|
|
<div class='fields' ng-controller="DateTimeController">
|
|
<span class='field control date'>
|
|
<input type='text'
|
|
name='date'
|
|
placeholder="YYYY-DDD"
|
|
ng-pattern="/\d\d\d\d-\d\d\d/"
|
|
ng-model='datetime.date'
|
|
ng-required='true'/>
|
|
</span>
|
|
<span class='field control time sm'>
|
|
<input type='text'
|
|
name='hour'
|
|
maxlength='2'
|
|
min='0'
|
|
max='23'
|
|
integer
|
|
ng-pattern='/\d+/'
|
|
ng-model="datetime.hour"
|
|
ng-required='true'/>
|
|
</span>
|
|
<span class='field control time sm'>
|
|
<input type='text'
|
|
name='min'
|
|
maxlength='2'
|
|
min='0'
|
|
max='59'
|
|
integer
|
|
ng-pattern='/\d+/'
|
|
ng-model="datetime.min"
|
|
ng-required='true'/>
|
|
</span>
|
|
<span class='field control time sm'>
|
|
<input type='text'
|
|
name='sec'
|
|
maxlength='2'
|
|
min='0'
|
|
max='59'
|
|
integer
|
|
ng-pattern='/\d+/'
|
|
ng-model="datetime.sec"
|
|
ng-required='true'/>
|
|
</span>
|
|
<span class='field control timezone'>
|
|
UTC
|
|
</span>
|
|
</div>
|
|
</ng-form>
|
|
|
|
|
|
</div> |