42 lines
1.4 KiB
HTML
42 lines
1.4 KiB
HTML
<vn-crud-model
|
|
vn-id="model"
|
|
url="/item/api/ItemLogs"
|
|
filter="::$ctrl.filter"
|
|
link="{originFk: $ctrl.$stateParams.id}"
|
|
limit="20"
|
|
data="logs" auto-load="false">
|
|
</vn-crud-model>
|
|
|
|
<vn-vertical>
|
|
<vn-card pad-large>
|
|
<vn-vertical>
|
|
<vn-title>History</vn-title>
|
|
<vn-table model="model">
|
|
<vn-thead>
|
|
<vn-tr>
|
|
<vn-th field="description">Description</vn-th>
|
|
<vn-th field="action">Action</vn-th>
|
|
<vn-th field="userFk">Changed by</vn-th>
|
|
<vn-th field="creationDate" default-order="DESC">Date</vn-th>
|
|
</vn-tr>
|
|
</vn-thead>
|
|
<vn-tbody>
|
|
<vn-tr ng-repeat="itemLog in logs">
|
|
<vn-td>{{::itemLog.description}}</vn-td>
|
|
<vn-td>{{::itemLog.action}}</vn-td>
|
|
<vn-td>{{::itemLog.user.name}}</vn-td>
|
|
<vn-td>{{::itemLog.creationDate | date:'dd/MM/yyyy HH:mm'}}</vn-td>
|
|
</vn-tr>
|
|
</vn-tbody>
|
|
<vn-empty-rows ng-if="model.data.length === 0" translate>
|
|
No results
|
|
</vn-empty-rows>
|
|
</vn-table>
|
|
</vn-vertical>
|
|
<vn-pagination
|
|
model="model"
|
|
scroll-selector="ui-view">
|
|
</vn-pagination>
|
|
</vn-card>
|
|
</vn-vertical>
|