27 lines
1.7 KiB
JavaScript
27 lines
1.7 KiB
JavaScript
angular.module("template/datepicker/datepicker.html", []).run(["$templateCache", function($templateCache) {
|
|
$templateCache.put("template/datepicker/datepicker.html",
|
|
"<table>\n" +
|
|
" <thead>\n" +
|
|
" <tr>\n" +
|
|
" <th><button type=\"button\" class=\"btn btn-default btn-sm pull-left\" ng-click=\"move(-1)\"><i class=\"glyphicon glyphicon-chevron-left\"></i></button></th>\n" +
|
|
" <th colspan=\"{{rows[0].length - 2 + showWeekNumbers}}\"><button type=\"button\" class=\"btn btn-default btn-sm btn-block\" ng-click=\"toggleMode()\"><strong>{{title}}</strong></button></th>\n" +
|
|
" <th><button type=\"button\" class=\"btn btn-default btn-sm pull-right\" ng-click=\"move(1)\"><i class=\"glyphicon glyphicon-chevron-right\"></i></button></th>\n" +
|
|
" </tr>\n" +
|
|
" <tr ng-show=\"labels.length > 0\" class=\"h6\">\n" +
|
|
" <th ng-show=\"showWeekNumbers\" class=\"text-center\">#</th>\n" +
|
|
" <th ng-repeat=\"label in labels\" class=\"text-center\">{{label}}</th>\n" +
|
|
" </tr>\n" +
|
|
" </thead>\n" +
|
|
" <tbody>\n" +
|
|
" <tr ng-repeat=\"row in rows\">\n" +
|
|
" <td ng-show=\"showWeekNumbers\" class=\"text-center\"><em>{{ getWeekNumber(row) }}</em></td>\n" +
|
|
" <td ng-repeat=\"dt in row\" class=\"text-center\">\n" +
|
|
" <button type=\"button\" style=\"width:100%;\" class=\"btn btn-datepicker btn-sm\" ng-class=\"{'btn-info': dt.selected, 'btn-datepicker-disabled': dt.disabled}\" ng-click=\"select(dt.date)\" ng-disabled=\"dt.disabled\">" +
|
|
" <span ng-class=\"{'text-muted': dt.secondary}\">{{dt.label}}</span>" +
|
|
" </button>\n" +
|
|
" </td>\n" +
|
|
" </tr>\n" +
|
|
" </tbody>\n" +
|
|
"</table>\n" +
|
|
"");
|
|
}]); |