2020-05-06 12:38:09 +00:00
|
|
|
<vn-descriptor-content
|
|
|
|
module="worker"
|
|
|
|
description="$ctrl.worker.firstName +' '+ $ctrl.worker.lastName">
|
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>
|
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>
|
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
|
|
|
|
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>
|
|
|
|
|
|
|
|
<!-- Upload photo dialog -->
|
|
|
|
<vn-upload-photo
|
|
|
|
vn-id="uploadPhoto"
|
|
|
|
on-response="$ctrl.onUploadResponse()">
|
|
|
|
</vn-upload-photo>
|