superdesk/superdesk-client-core

View on GitHub
scripts/core/ui/views/datepicker-wrapper.html

Summary

Maintainability
Test Coverage
<div class="datepicker-wrapper" ng-show="open" ng-keydown="keydown($event)">
    <div class="datepicker-additional" ng-if="shortcuts">
        <div class="sd-display--contents" ng-repeat="b in shortcuts">
            <button class="btn btn--mini" ng-click="selectShortcut(b.value, b.term)">{{ b.label }}</button>
        </div>
    </div>
    <div class="datepicker-core" ng-transclude></div>
    <button class="btn btn--primary btn--small pull-right" ng-click="dateSelection()" translate>Confirm</button>
    <button class="btn btn--small pull-right" ng-click="close()" translate>Cancel</button>
</div>