angular-schema-form-uibdatepicker
Version:
A basic date and time picker for Angular Schema Form
23 lines (14 loc) • 920 B
HTML
<div class="form-group {{form.htmlClass}} schema-form-datepicker"
ng-class="{'has-error': hasError(), 'has-success': hasSuccess(), 'has-feedback': form.feedback !== false}">
<label class="control-label" ng-show="showTitle()">{{form.title}}</label>
<datepicker form="form"
ng-model="$$value$$"
schema-validate="form">
</datepicker>
<span ng-if="form.feedback !== false"
class="form-control-feedback"
ng-class="evalInScope(form.feedback) || {'glyphicon': true, 'glyphicon-ok': hasSuccess(), 'glyphicon-remove': hasError() }"
aria-hidden="true"></span>
<div class="help-block" aria-live='assertive' ng-show="((hasError() && errorMessage(schemaError())))" ng-bind-html="(hasError() && errorMessage(schemaError()))"></div>
<div class="help-block success" aria-live='assertive' ng-show="form.description" ng-bind-html="form.description"></div>
</div>