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>
|
2023-09-26 06:15:19 +00:00
|
|
|
<vn-user-photo user-id="{{$ctrl.worker.id}}"/>
|
2020-11-27 12:10:39 +00:00
|
|
|
</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>
|
2024-02-22 14:42:54 +00:00
|
|
|
<vn-item ng-if="!$ctrl.worker.user.emailVerified && $ctrl.vnConfig.storage.currentUserWorkerId !=$ctrl.worker.id" ng-click="setPassword.show()" translate>
|
2024-02-12 15:10:58 +00:00
|
|
|
Change password
|
2023-10-16 13:58:25 +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
|
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-08-31 11:02:56 +00:00
|
|
|
label="Phone"
|
|
|
|
>
|
|
|
|
<vn-link-phone
|
2023-09-01 10:38:35 +00:00
|
|
|
phone-number="$ctrl.worker.phone"
|
2023-08-31 11:02:56 +00:00
|
|
|
></vn-link-phone>
|
2019-01-29 20:00:27 +00:00
|
|
|
</vn-label-value>
|
2020-04-30 10:48:52 +00:00
|
|
|
<vn-label-value
|
2023-08-31 11:02:56 +00:00
|
|
|
label="Extension"
|
2023-11-15 12:16:31 +00:00
|
|
|
>
|
2023-08-31 11:02:56 +00:00
|
|
|
<vn-link-phone
|
|
|
|
phone-number="$ctrl.worker.sip.extension"
|
|
|
|
></vn-link-phone>
|
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
|
|
|
|
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>
|
2023-11-15 12:16:31 +00:00
|
|
|
<vn-dialog
|
2023-10-16 13:58:25 +00:00
|
|
|
vn-id="setPassword"
|
|
|
|
on-accept="$ctrl.setPassword($ctrl.worker.password)"
|
|
|
|
message="Reset password"
|
|
|
|
>
|
|
|
|
<tpl-body>
|
2023-11-15 12:16:31 +00:00
|
|
|
<vn-textfield
|
2023-10-16 13:58:25 +00:00
|
|
|
vn-one
|
|
|
|
label="New password"
|
|
|
|
required="true"
|
|
|
|
ng-model="$ctrl.newPassword"
|
|
|
|
type="password"
|
|
|
|
info="{{'Password requirements' | translate:$ctrl.passRequirements}}"
|
|
|
|
>
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-textfield
|
|
|
|
label="Repeat password"
|
|
|
|
ng-model="$ctrl.repeatPassword"
|
|
|
|
type="password">
|
|
|
|
</vn-textfield>
|
|
|
|
</tpl-body>
|
|
|
|
<tpl-buttons>
|
|
|
|
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
|
|
|
|
<button response="accept" translate>Confirm</button>
|
|
|
|
</tpl-buttons>
|
|
|
|
</vn-dialog>
|