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

102 lines
3.4 KiB
HTML
Raw Permalink 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>
<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>
<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>
<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>
<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
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>
<vn-label-value
2023-08-31 11:02:56 +00:00
label="Extension"
>
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>
<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
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>
<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>
<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>