2015-10-27 19:56:08 +00:00
|
|
|
<span class="s-btn"
|
|
|
|
ng-controller="DateTimeFieldController">
|
|
|
|
<input type="text"
|
|
|
|
ng-model="textValue"
|
2015-11-25 19:12:41 +00:00
|
|
|
ng-blur="restoreValue(); structure.submit()"
|
2015-10-27 19:56:08 +00:00
|
|
|
ng-class="{ error: textInvalid }">
|
|
|
|
</input>
|
|
|
|
<a class="ui-symbol icon icon-calendar"
|
|
|
|
ng-if="structure.format === 'utc' || !structure.format"
|
2015-11-12 22:49:19 +00:00
|
|
|
ng-click="picker.active = !picker.active">
|
2015-10-27 19:56:08 +00:00
|
|
|
</a>
|
2015-11-12 22:49:19 +00:00
|
|
|
<mct-popup ng-if="picker.active">
|
|
|
|
<div mct-click-elsewhere="picker.active = false">
|
2015-10-27 19:56:08 +00:00
|
|
|
<mct-control key="'datetime-picker'"
|
|
|
|
ng-model="ngModel"
|
|
|
|
field="field"
|
|
|
|
options="{ hours: true }">
|
|
|
|
</mct-control>
|
|
|
|
</div>
|
|
|
|
</mct-popup>
|
|
|
|
</span>
|