Skip to content

Instantly share code, notes, and snippets.

@saltavenger
Created March 30, 2016 22:03
Show Gist options
  • Save saltavenger/a97e7d688ab1e287abcd5a14f3e55b1f to your computer and use it in GitHub Desktop.
Save saltavenger/a97e7d688ab1e287abcd5a14f3e55b1f to your computer and use it in GitHub Desktop.
<input ng-readonly="true"
id="c{{c.Id}}-date"
name="c{{c.Id}}-date"
uib-datepicker-popup="MM/dd/yyyy"
type="text"
ng-click="openPicker($event, c)"
class="input-element"
ng-model="dateValue"
is-open="datepicker[c.Id]"
ng-init="setDateValue(c.Value)"
close-text="Close"
datepicker-options="datepickerOptions"
min-date="today()"
max-date="maxDate"
ng-init="errorMessages['c' + c.Id + '-date'] = {required: '@UxResources.RequiredDate', min: '@UxResources.DateBeforeToday' , max: '@UxResources.DateTooFarInFuture' }"
show-error-messages
ng-required="renderOnForm(c.DisplayLocation) && c.IsRequired" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment