2020-05-06 12:38:09 +00:00
|
|
|
<vn-descriptor-content
|
|
|
|
module="worker"
|
2022-04-11 06:02:05 +00:00
|
|
|
description="$ctrl.worker.firstName +' '+ $ctrl.worker.lastName"
|
|
|
|
summary="$ctrl.$.summary">
|
2020-11-27 12:10:39 +00:00
|
|
|
<slot-before>
|
|
|
|
<div class="photo" text-center>
|
|
|
|
<img vn-id="photo"
|
|
|
|
ng-src="{{$root.imagePath('user', '520x520', $ctrl.worker.id)}}"
|
2020-12-10 12:21:11 +00:00
|
|
|
zoom-image="{{$root.imagePath('user', '1600x1600', $ctrl.worker.id)}}"
|
2020-11-27 12:10:39 +00:00
|
|
|
on-error-src/>
|
|
|
|
<vn-float-button ng-click="uploadPhoto.show('user', $ctrl.worker.id)"
|
|
|
|
icon="edit"
|
2020-12-11 14:04:55 +00:00
|
|
|
vn-visible-by="userPhotos">
|
2020-11-27 12:10:39 +00:00
|
|
|
</vn-float-button>
|
|
|
|
</div>
|
|
|
|
</slot-before>
|
2022-10-05 09:52:14 +00:00
|
|
|
<slot-menu>
|
2022-10-06 08:18:08 +00:00
|
|
|
<vn-item
|
2022-10-18 08:25:54 +00:00
|
|
|
ng-click="$ctrl.handleExcluded()"
|
2022-10-06 08:18:08 +00:00
|
|
|
translate
|
|
|
|
ng-if="!$ctrl.excluded">
|
2022-10-18 08:25:54 +00:00
|
|
|
Click to exclude the user from getting disabled
|
2022-10-06 08:18:08 +00:00
|
|
|
</vn-item>
|
|
|
|
<vn-item
|
2022-10-18 08:25:54 +00:00
|
|
|
ng-click="$ctrl.handleExcluded()"
|
2022-10-06 08:18:08 +00:00
|
|
|
translate
|
|
|
|
ng-if="$ctrl.excluded">
|
2022-10-18 08:25:54 +00:00
|
|
|
Click to allow the user to be disabled
|
2022-10-06 08:18:08 +00:00
|
|
|
</vn-item>
|
2022-10-05 09:52:14 +00:00
|
|
|
</slot-menu>
|
2020-04-30 10:48:52 +00:00
|
|
|
<slot-body>
|
2019-01-29 20:00:27 +00:00
|
|
|
<div class="attributes">
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="User"
|
2020-05-06 12:38:09 +00:00
|
|
|
value="{{$ctrl.worker.user.name}}">
|
2019-01-28 15:24:45 +00:00
|
|
|
</vn-label-value>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Email"
|
2019-03-15 11:58:26 +00:00
|
|
|
value="{{$ctrl.worker.user.emailUser.email}}">
|
2019-01-29 20:00:27 +00:00
|
|
|
</vn-label-value>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Department"
|
2019-02-18 11:54:33 +00:00
|
|
|
value="{{$ctrl.worker.department.department.name}}">
|
2019-01-29 20:00:27 +00:00
|
|
|
</vn-label-value>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Phone"
|
2020-01-20 10:03:40 +00:00
|
|
|
value="{{$ctrl.worker.phone}}">
|
2019-01-29 20:00:27 +00:00
|
|
|
</vn-label-value>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
|
|
|
label="Extension"
|
2019-02-18 11:54:33 +00:00
|
|
|
value="{{$ctrl.worker.sip.extension}}">
|
2019-01-29 20:00:27 +00:00
|
|
|
</vn-label-value>
|
|
|
|
</div>
|
2022-10-06 09:54:14 +00:00
|
|
|
<div class="icons">
|
|
|
|
<vn-icon
|
2022-10-18 08:25:54 +00:00
|
|
|
vn-tooltip="This user can't be disabled"
|
2022-10-06 09:54:14 +00:00
|
|
|
icon="person"
|
|
|
|
ng-if="$ctrl.worker.excluded">
|
|
|
|
</vn-icon>
|
|
|
|
</div>
|
2020-04-30 10:48:52 +00:00
|
|
|
<div class="quicklinks">
|
|
|
|
<div ng-transclude="btnOne">
|
|
|
|
<vn-quick-link
|
|
|
|
tooltip="Go to client"
|
|
|
|
state="['client.card.summary', {id: $ctrl.id}]"
|
|
|
|
icon="person">
|
|
|
|
</vn-quick-link>
|
|
|
|
</div>
|
2020-03-09 08:00:03 +00:00
|
|
|
<div ng-transclude="btnTwo">
|
|
|
|
<vn-quick-link
|
2021-08-13 12:53:39 +00:00
|
|
|
vn-acl="hr"
|
|
|
|
vn-acl-action="remove"
|
2020-03-09 08:00:03 +00:00
|
|
|
tooltip="Go to user"
|
|
|
|
state="['account.card.summary', {id: $ctrl.id}]"
|
|
|
|
icon="face">
|
|
|
|
</vn-quick-link>
|
|
|
|
</div>
|
2020-04-30 10:48:52 +00:00
|
|
|
<div ng-transclude="btnThree"></div>
|
|
|
|
</div>
|
|
|
|
</slot-body>
|
2020-11-27 12:10:39 +00:00
|
|
|
</vn-descriptor-content>
|
2022-04-11 06:02:05 +00:00
|
|
|
<vn-popup vn-id="summary">
|
|
|
|
<vn-worker-summary worker="$ctrl.worker"></vn-worker-summary>
|
|
|
|
</vn-popup>
|
2020-11-27 12:10:39 +00:00
|
|
|
|
|
|
|
<!-- Upload photo dialog -->
|
|
|
|
<vn-upload-photo
|
|
|
|
vn-id="uploadPhoto"
|
|
|
|
on-response="$ctrl.onUploadResponse()">
|
|
|
|
</vn-upload-photo>
|