salix/modules/worker/front/calendar/index.html

36 lines
1.3 KiB
HTML

<vn-crud-model
url="/api/AbsenceTypes"
data="$ctrl.absenceTypes" auto-load="true">
</vn-crud-model>
<div class="main-with-right-menu">
<vn-card class="vn-pa-sm">
<vn-horizontal class="calendar-list">
<section class="calendar" ng-repeat="month in $ctrl.months">
<vn-calendar
data="$ctrl.events"
default-date="month"
display-controls="false">
</vn-calendar>
</section>
</vn-horizontal>
</vn-card>
<vn-side-menu side="right">
<vn-vertical class="vn-pa-sm">
<vn-vertical class="totalBox">
<h6 translate>Holidays</h6>
<vn-auto>
{{'Used' | translate}} {{$ctrl.calendar.holidaysEnjoyed}}
{{'of' | translate}} {{$ctrl.calendar.totalHolidays}} {{'days' | translate}}
</vn-auto>
</vn-vertical>
<div>
<vn-chip ng-repeat="legend in $ctrl.legends">
<vn-avatar
ng-style="{backgroundColor: legend.color}">
</vn-avatar>
{{legend.name}}
</vn-chip>
</div>
</vn-vertical>
</vn-side-menu>
</div>