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

68 lines
2.4 KiB
HTML

<vn-card class="summary">
<h5>
<a ng-if="::$ctrl.department.id"
vn-tooltip="Go to the department"
ui-sref="department.card.summary({id: {{::$ctrl.department.id}}})"
name="goToSummary">
<vn-icon-button icon="launch"></vn-icon-button>
</a>
<span>{{department.name}}</span>
</h5>
<vn-horizontal class="vn-pa-md">
<vn-one>
<h4 ng-show="$ctrl.isHr">
<a
ui-sref="department.card.basicData({id:$ctrl.department.id})">
<span translate vn-tooltip="Go to">Basic data</span>
</a>
</h4>
<h4
translates
ng-show="!$ctrl.isHr">
Basic data
</h4>
<vn-label-value label="Nombre:"
value="{{department.name}}">
</vn-label-value>
<vn-label-value label="Code:" no-ellipsize
value="{{department.code}}">
</vn-label-value>
<vn-label-value label="Chat:"
value="{{department.chat}}">
</vn-label-value>
<vn-label-value
label="Boss:">
<span
ng-click="workerDescriptor.show($event, worker.boss.id)"
class="link">
{{::worker.boss.nickname}}
</span>
</vn-label-value>
<vn-label-value label="Email:"
value="{{department.notificationEmail}}">
</vn-label-value>
<vn-label-value label="Cliente autoconsumo"
value="{{department.workerFk}}">
</vn-label-value>
</vn-one>
<vn-one>
<h4 translate>User data</h4>
<vn-label-value label="User id"
value="{{worker.userFk}}">
</vn-label-value>
<vn-label-value label="User"
value="{{worker.user.name}}">
</vn-label-value>
<vn-label-value label="Role"
value="{{worker.user.role.name}}">
</vn-label-value>
<vn-label-value label="Extension"
value="{{worker.sip.extension}}">
</vn-label-value>
</vn-one>
</vn-horizontal>
</vn-card>
<vn-worker-department-descriptor-popover
vn-id="workerDepartmentDescriptor">
</vn-worker-department-descriptor-popover>