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

52 lines
1.7 KiB
HTML
Raw Normal View History

2023-05-16 10:12:25 +00:00
<vn-descriptor-content
2023-05-26 10:58:03 +00:00
module="worker"
2023-05-16 10:12:25 +00:00
description="$ctrl.department.name"
2023-05-26 10:58:03 +00:00
base-state="worker.department">
2023-05-15 11:15:33 +00:00
<slot-menu>
2023-05-30 11:21:57 +00:00
<vn-item
ng-click="deleteConfirmation.show()"
name="deleteDepartment"
translate>
2023-05-16 11:10:26 +00:00
Delete
2023-05-15 11:15:33 +00:00
</vn-item>
</slot-menu>
<slot-body>
<div class="attributes">
<vn-label-value
2023-05-26 10:58:03 +00:00
label="Chat"
value="{{$ctrl.department.chatName}}">
2023-05-15 11:15:33 +00:00
</vn-label-value>
<vn-label-value
2023-05-26 10:58:03 +00:00
label="Email"
value="{{$ctrl.department.emailNotification}}">
2023-05-15 11:15:33 +00:00
</vn-label-value>
<vn-label-value
2023-05-26 10:58:03 +00:00
label="Self-consumption customer"
value="{{$ctrl.department.client.name}}">
2023-05-15 11:15:33 +00:00
</vn-label-value>
<vn-label-value
2023-05-26 10:58:03 +00:00
label="Boss department"
value="{{$ctrl.department.worker.firstName}} {{$ctrl.department.worker.secondName}}">
2023-05-15 11:15:33 +00:00
</vn-label-value>
</div>
2023-05-31 09:24:11 +00:00
<vn-icon-button vn-anchor="{state: 'worker.index', params: {q: {departmentFk: $ctrl.$params.id}}}"
2023-05-30 13:13:16 +00:00
vn-tooltip="Department workers"
icon="icon-ticket">
</vn-icon-button>
2023-05-15 11:15:33 +00:00
</slot-body>
</vn-descriptor-content>
<vn-popup vn-id="summary">
<vn-worker-summary worker="$ctrl.worker"></vn-worker-summary>
</vn-popup>
2023-05-30 11:21:57 +00:00
<vn-confirm
vn-id="deleteConfirmation"
on-accept="$ctrl.deleteDepartment()"
question="You are going to delete this department">
</vn-confirm>
2023-05-15 11:15:33 +00:00
<!-- Upload photo dialog -->
2023-05-26 10:58:03 +00:00
<!-- <vn-upload-photo
vn-id="uploadPhoto"
2023-05-15 11:15:33 +00:00
on-response="$ctrl.onUploadResponse()">
2023-05-26 10:58:03 +00:00
</vn-upload-photo>