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

84 lines
2.9 KiB
HTML
Raw Normal View History

2020-05-06 12:38:09 +00:00
<vn-descriptor-content
module="worker"
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)}}"
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>
<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>
<slot-body>
2019-01-29 20:00:27 +00:00
<div class="attributes">
<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>
<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>
<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>
<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>
<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>
<div class="icons">
<vn-icon
vn-tooltip="This user can't be disabled"
icon="person"
ng-if="$ctrl.worker.excluded">
</vn-icon>
</div>
<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>
<div ng-transclude="btnTwo">
<vn-quick-link
vn-acl="hr"
vn-acl-action="remove"
tooltip="Go to user"
state="['account.card.summary', {id: $ctrl.id}]"
icon="face">
</vn-quick-link>
</div>
<div ng-transclude="btnThree"></div>
</div>
</slot-body>
2020-11-27 12:10:39 +00:00
</vn-descriptor-content>
<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"
2020-11-27 12:10:39 +00:00
on-response="$ctrl.onUploadResponse()">
</vn-upload-photo>