mirror of
https://github.com/nasa/openmct.git
synced 2024-12-28 17:08:51 +00:00
9f2303face
nasa/openmctweb#297; avoid flag toggled to display date-time picker becoming lost in a child scope.
21 lines
694 B
HTML
21 lines
694 B
HTML
<span class="s-btn"
|
|
ng-controller="DateTimeFieldController">
|
|
<input type="text"
|
|
ng-model="textValue"
|
|
ng-class="{ error: textInvalid }">
|
|
</input>
|
|
<a class="ui-symbol icon icon-calendar"
|
|
ng-if="structure.format === 'utc' || !structure.format"
|
|
ng-click="picker.active = !picker.active">
|
|
</a>
|
|
<mct-popup ng-if="picker.active">
|
|
<div mct-click-elsewhere="picker.active = false">
|
|
<mct-control key="'datetime-picker'"
|
|
ng-model="ngModel"
|
|
field="field"
|
|
options="{ hours: true }">
|
|
</mct-control>
|
|
</div>
|
|
</mct-popup>
|
|
</span>
|