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

50 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-06-01 09:30:28 +00:00
<div class="quicklinks">
<div ng-transclude="btnOne">
<vn-quick-link vn-anchor="{state: 'worker.index', params: {q: {departmentFk: $ctrl.$params.id} } }"
2023-06-22 13:00:59 +00:00
vn-tooltip="Department workers"
2023-06-30 07:40:12 +00:00
icon="icon-worker">
2023-06-01 09:30:28 +00:00
</vn-quick-link>
</div>
</div>
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()"
2023-06-28 09:52:53 +00:00
question="Are you sure you want to delete this department?">
2023-05-30 11:21:57 +00:00
</vn-confirm>