2019-11-22 09:42:05 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
2020-04-03 15:52:47 +00:00
|
|
|
url="WorkerDms/filter"
|
|
|
|
link="{worker: $ctrl.$params.id}"
|
2019-11-22 09:42:05 +00:00
|
|
|
limit="20"
|
|
|
|
data="$ctrl.workerDms"
|
|
|
|
order="dmsFk DESC"
|
|
|
|
auto-load="true">
|
|
|
|
</vn-crud-model>
|
|
|
|
<vn-data-viewer
|
|
|
|
model="model"
|
|
|
|
class="vn-w-lg">
|
|
|
|
<vn-card>
|
|
|
|
<vn-table model="model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
|
|
|
<vn-th field="dmsFk" shrink>Id</vn-th>
|
|
|
|
<vn-th field="reference" shrink>Reference</vn-th>
|
|
|
|
<vn-th expand>Description</vn-th>
|
|
|
|
<vn-th field="hasFile" shrink>Original</vn-th>
|
|
|
|
<vn-th field="created">Created</vn-th>
|
|
|
|
<vn-th shrink></vn-th>
|
|
|
|
<vn-th shrink></vn-th>
|
|
|
|
<vn-th shrink></vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="document in $ctrl.workerDms">
|
|
|
|
<vn-td number shrink>{{::document.dmsFk}}</vn-td>
|
2020-04-03 15:52:47 +00:00
|
|
|
<vn-td expand>
|
|
|
|
<span title="{{::document.reference}}">
|
|
|
|
{{::document.reference}}
|
2019-11-22 09:42:05 +00:00
|
|
|
</span>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td expand>
|
2020-04-03 15:52:47 +00:00
|
|
|
<span title="{{::document.description}}">
|
|
|
|
{{::document.description}}
|
2019-11-22 09:42:05 +00:00
|
|
|
</span>
|
2020-04-03 15:52:47 +00:00
|
|
|
</vn-td >
|
2019-11-22 09:42:05 +00:00
|
|
|
<vn-td shrink>
|
|
|
|
<a target="_blank"
|
|
|
|
title="{{'Download file' | translate}}"
|
2020-04-03 15:52:47 +00:00
|
|
|
href="api/workerDms/{{::document.dmsFk}}/downloadFile?access_token={{::$ctrl.vnToken.token}}">{{::document.file}}
|
2019-11-22 09:42:05 +00:00
|
|
|
</a>
|
|
|
|
</vn-td>
|
2020-03-02 06:50:07 +00:00
|
|
|
<vn-td>
|
2020-04-03 15:52:47 +00:00
|
|
|
{{::document.created | date:'dd/MM/yyyy HH:mm'}}
|
2019-11-22 09:42:05 +00:00
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink>
|
|
|
|
<a target="_blank"
|
2020-04-03 15:52:47 +00:00
|
|
|
href="api/workerDms/{{::document.dmsFk}}/downloadFile?access_token={{::$ctrl.vnToken.token}}">
|
2019-11-22 09:42:05 +00:00
|
|
|
<vn-icon-button
|
|
|
|
icon="cloud_download"
|
|
|
|
title="{{'Download file' | translate}}">
|
|
|
|
</vn-icon-button>
|
|
|
|
</a>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink>
|
2020-04-03 15:52:47 +00:00
|
|
|
<vn-icon-button ui-sref="worker.card.edit({dmsId: {{::document.dmsFk}}})"
|
2019-11-22 09:42:05 +00:00
|
|
|
icon="edit"
|
|
|
|
title="{{'Edit file' | translate}}">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td shrink>
|
|
|
|
<vn-icon-button
|
|
|
|
icon="delete"
|
|
|
|
ng-click="$ctrl.showDeleteConfirm($index)"
|
|
|
|
title="{{'Remove file' | translate}}"
|
|
|
|
tabindex="-1">
|
|
|
|
</vn-icon-button>
|
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</vn-card>
|
|
|
|
</vn-data-viewer>
|
|
|
|
<vn-worker-descriptor-popover
|
|
|
|
vn-id="workerDescriptor">
|
|
|
|
</vn-worker-descriptor-popover>
|
2020-04-03 15:52:47 +00:00
|
|
|
<a ui-sref="worker.card.create"
|
2019-11-22 09:42:05 +00:00
|
|
|
vn-tooltip="Upload file"
|
|
|
|
vn-bind="+"
|
|
|
|
fixed-bottom-right>
|
|
|
|
<vn-float-button icon="add"></vn-float-button>
|
|
|
|
</a>
|
|
|
|
<vn-confirm
|
|
|
|
vn-id="confirm"
|
|
|
|
message="This file will be deleted"
|
|
|
|
question="Are you sure you want to continue?"
|
|
|
|
on-response="$ctrl.deleteDms($response)">
|
|
|
|
</vn-confirm>
|