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

58 lines
2.1 KiB
HTML
Raw Normal View History

<vn-crud-model
url="AbsenceTypes"
2019-10-23 15:38:35 +00:00
data="absenceTypes"
auto-load="true">
</vn-crud-model>
2019-11-10 10:08:44 +00:00
<div class="vn-w-lg">
2020-07-15 09:35:34 +00:00
<vn-card class="vn-pa-sm calendars">
<vn-icon ng-if="::$ctrl.isSubordinate" icon="info" color-marginal
2020-07-11 16:30:27 +00:00
vn-tooltip="To start adding absences, click an absence type from the right menu and then on the day you want to add an absence">
</vn-icon>
<vn-calendar
ng-repeat="month in $ctrl.months"
data="$ctrl.events"
default-date="month"
format-day="$ctrl.formatDay($day, $element)"
display-controls="false"
hide-contiguous="true"
hide-year="true"
on-selection="$ctrl.onSelection($event, $days)">
</vn-calendar>
2019-11-10 10:08:44 +00:00
</vn-card>
2019-10-23 15:38:35 +00:00
</div>
<vn-side-menu side="right">
<div class="vn-pa-md">
<div class="totalBox" style="text-align: center;">
<h6 translate>Holidays</h6>
2019-10-18 19:36:30 +00:00
<div>
2019-10-23 15:38:35 +00:00
{{'Used' | translate}} {{$ctrl.calendar.holidaysEnjoyed}}
{{'of' | translate}} {{$ctrl.calendar.totalHolidays}} {{'days' | translate}}
2019-10-18 19:36:30 +00:00
</div>
2019-10-23 15:38:35 +00:00
</div>
2020-08-10 12:44:57 +00:00
<div class="vn-pt-md">
<vn-autocomplete label="Year"
data="$ctrl.yearFilter"
ng-model="$ctrl.year"
show-field="year"
value-field="year"
order="DESC">
</vn-autocomplete>
</div>
2019-10-30 15:57:14 +00:00
<div class="vn-pt-md" style="overflow: hidden;">
2020-07-15 09:35:34 +00:00
<vn-chip ng-repeat="absenceType in absenceTypes" ng-class="::{'selectable': $ctrl.isSubordinate}"
2020-07-07 12:29:57 +00:00
ng-click="$ctrl.pick(absenceType)">
2019-10-23 15:38:35 +00:00
<vn-avatar
ng-style="{backgroundColor: absenceType.rgb}">
2020-07-07 12:29:57 +00:00
<vn-icon icon="check" ng-if="absenceType.id == $ctrl.absenceType.id"></vn-icon>
2019-10-23 15:38:35 +00:00
</vn-avatar>
{{absenceType.name}}
</vn-chip>
</div>
</div>
2020-07-07 12:29:57 +00:00
</vn-side-menu>
<vn-confirm
vn-id="confirm"
message="This item will be deleted"
question="Are you sure you want to continue?">
</vn-confirm>