<div ng-if="$ctrl.model.renderDatepicker">
    <datepicker date-format="{{ $ctrl.format || 'MMM d, yyyy' }}"
                date-min-limit="{{ $ctrl.model.minDate }}"
                date-max-limit="{{ $ctrl.model.maxDate }}"
                date-set="{{ $ctrl.model.defaultDate }}"
                date-disabled-dates="{{ $ctrl.model.filteredDisabledDates }}"
                date-week-start-day="{{ $ctrl.model.firstDayOfWeek }}"
                date-typer="true">
        <input class="form-input-text {{ $ctrl.sizeCssClass }}"
               name="{{ $ctrl.name }}"
               ng-model="$ctrl.model.selectedDate"
               placeholder="{{ $ctrl.placeholderText }}"
               type="text"
               ng-required="!$ctrl.allowBlank"
               ng-readonly="!$ctrl.editable"
               ng-change="$ctrl.onDateSelection()">
    </datepicker>
</div>
