salix/modules/item/front/history/index.html

42 lines
1.4 KiB
HTML
Raw Normal View History

2018-07-16 07:28:32 +00:00
<vn-crud-model
vn-id="model"
url="/item/api/ItemLogs"
filter="::$ctrl.filter"
link="{originFk: $ctrl.$stateParams.id}"
limit="20"
2018-11-27 14:02:54 +00:00
data="logs" auto-load="false">
2018-07-16 07:28:32 +00:00
</vn-crud-model>
2018-03-01 22:41:27 +00:00
<vn-vertical>
2018-03-01 22:38:14 +00:00
<vn-card pad-large>
<vn-vertical>
2018-07-25 13:14:03 +00:00
<vn-title>History</vn-title>
2018-07-16 07:28:32 +00:00
<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>
2018-07-16 07:28:32 +00:00
<vn-pagination
model="model"
scroll-selector="ui-view">
</vn-pagination>
2018-03-01 22:38:14 +00:00
</vn-card>
</vn-vertical>