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"
|
2023-07-14 10:18:41 +00:00
|
|
|
ng-src="{{$root.imagePath('user', '520x520', $ctrl.worker.id)}}"
|
|
|
|
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>
|
2023-07-14 10:18:41 +00:00
|
|
|
<vn-item ng-click="$ctrl.handleExcluded()" translate>
|
|
|
|
{{$ctrl.workerExcluded
|
|
|
|
? 'Click to allow the user to be disabled'
|
|
|
|
: 'Click to exclude the user from getting disabled'}}
|
|
|
|
</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
|
2023-07-14 10:18:41 +00:00
|
|
|
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
|
2023-07-14 10:18:41 +00:00
|
|
|
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
|
2023-07-14 10:18:41 +00:00
|
|
|
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
|
2023-07-14 10:18:41 +00:00
|
|
|
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
|
2023-07-14 10:18:41 +00:00
|
|
|
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 -->
|
2023-07-14 10:18:41 +00:00
|
|
|
<vn-upload-photo
|
|
|
|
vn-id="uploadPhoto"
|
2020-11-27 12:10:39 +00:00
|
|
|
on-response="$ctrl.onUploadResponse()">
|
2023-07-14 10:18:41 +00:00
|
|
|
</vn-upload-photo>
|