salix/front/core/components/calendar/index.html

46 lines
1.5 KiB
HTML
Raw Normal View History

2018-11-12 10:31:58 +00:00
<div>
2019-10-23 15:38:35 +00:00
<div class="header">
<vn-button
icon="keyboard_arrow_left"
class="flat"
ng-click="$ctrl.movePrevious()"
translate-attr="::{title: 'Previous'}"
ng-if="$ctrl.displayControls"/>
</vn-button>
<div class="title">
<span translate>{{$ctrl.defaultDate | date: 'MMMM'}}</span>
<span ng-hide="::$ctrl.hideYear">{{$ctrl.defaultDate | date: 'yyyy'}}</span>
</div>
<vn-button
icon="keyboard_arrow_right"
class="flat"
ng-click="$ctrl.moveNext()"
translate-attr="::{title: 'Next'}"
ng-if="$ctrl.displayControls">
</vn-button>
</div>
<div class="weekdays">
<section
ng-repeat="day in ::$ctrl.weekDays"
translate-attr="::{title: day.name}"
2020-02-26 06:02:03 +00:00
ng-click="$ctrl.selectWeekDay($event, day.index)">
2019-10-23 15:38:35 +00:00
<span>{{::day.localeChar}}</span>
</section>
</div>
<div
class="days"
ng-class="{'hide-contiguous': $ctrl.hideContiguous}">
<section
ng-repeat="day in $ctrl.days"
class="day"
ng-class="::$ctrl.getDayClasses(day)"
vn-repeat-last
on-last="$ctrl.repeatLast()">
<div
class="day-number"
2020-02-26 06:02:03 +00:00
ng-click="$ctrl.select($event, day)">
2019-10-23 15:38:35 +00:00
{{::day | date: 'd'}}
2019-09-25 18:06:42 +00:00
</div>
2019-10-23 15:38:35 +00:00
</section>
</div>
2018-11-12 10:31:58 +00:00
</div>