2018-11-05 08:29:05 +00:00
|
|
|
<vn-vertical>
|
|
|
|
<vn-card pad-large>
|
|
|
|
<vn-vertical>
|
|
|
|
<vn-title>History</vn-title>
|
|
|
|
<vn-table model="$ctrl.model">
|
|
|
|
<vn-thead>
|
|
|
|
<vn-tr>
|
2019-03-20 10:49:11 +00:00
|
|
|
<vn-th field="creationDate">Date</vn-th>
|
2018-11-05 08:29:05 +00:00
|
|
|
<vn-th field="userFk" class="expendable">Changed by</vn-th>
|
|
|
|
<vn-th field="changedModel" class="expendable">Model</vn-th>
|
|
|
|
<vn-th field="action" class="expendable">Action</vn-th>
|
2018-11-26 12:12:59 +00:00
|
|
|
<vn-th field="changedModelValue" class="expendable">Name</vn-th>
|
2018-11-05 08:29:05 +00:00
|
|
|
<vn-th>Before</vn-th>
|
|
|
|
<vn-th>After</vn-th>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-thead>
|
|
|
|
<vn-tbody>
|
|
|
|
<vn-tr ng-repeat="log in $ctrl.model.data">
|
|
|
|
<vn-td>
|
2019-02-27 16:04:00 +00:00
|
|
|
{{::log.creationDate | dateTime:'dd/MM/yyyy HH:mm'}}
|
2018-11-05 08:29:05 +00:00
|
|
|
<div class="changes">
|
|
|
|
<div>
|
|
|
|
<span translate class="label">Changed by</span><span class="label">: </span>
|
2019-04-02 09:04:53 +00:00
|
|
|
<span
|
|
|
|
class="link"
|
|
|
|
ng-click="$ctrl.showWorkerDescriptor($event, log.user.id)"
|
|
|
|
translate
|
|
|
|
class="value">{{::log.user.name | dashIfEmpty}}
|
|
|
|
</span>
|
2018-11-05 08:29:05 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<span translate class="label">Model</span><span class="label">: </span>
|
2018-11-29 15:38:54 +00:00
|
|
|
<span translate class="value">{{::log.changedModel | dashIfEmpty}}</span>
|
2018-11-05 08:29:05 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<span translate class="label">Action</span><span class="label">: </span>
|
2018-11-29 15:38:54 +00:00
|
|
|
<span translate class="value">{{::$ctrl.actionsText[log.action] | dashIfEmpty}}</span>
|
2018-11-05 08:29:05 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
2018-11-29 15:03:59 +00:00
|
|
|
<span translate class="label">Name</span><span class="label">: </span>
|
2018-11-29 15:38:54 +00:00
|
|
|
<span translate class="value">{{::log.changedModelValue | dashIfEmpty}}</span>
|
2018-11-05 08:29:05 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td class="expendable">
|
2019-04-02 09:04:53 +00:00
|
|
|
<span
|
|
|
|
class="link"
|
|
|
|
ng-click="$ctrl.showWorkerDescriptor($event, log.user.id)"
|
|
|
|
translate
|
|
|
|
class="value">{{::log.user.name | dashIfEmpty}}
|
|
|
|
</span>
|
2018-11-05 08:29:05 +00:00
|
|
|
</vn-td>
|
|
|
|
<vn-td class="expendable">
|
|
|
|
{{::log.changedModel}}
|
|
|
|
</vn-td>
|
|
|
|
<vn-td translate class="expendable">
|
2018-11-29 15:03:59 +00:00
|
|
|
{{::$ctrl.actionsText[log.action]}}
|
2018-11-05 08:29:05 +00:00
|
|
|
</vn-td>
|
|
|
|
<vn-td class="expendable">
|
|
|
|
{{::log.changedModelValue}}
|
|
|
|
</vn-td>
|
|
|
|
<vn-td class="before">
|
|
|
|
<vn-one ng-repeat="old in log.oldProperties">
|
|
|
|
<div>
|
|
|
|
<span translate class="label">{{::old.key}}</span><span class="label">: </span>
|
|
|
|
<span translate class="value">{{::old.value}}</span>
|
|
|
|
</div>
|
|
|
|
</vn-one>
|
|
|
|
</vn-td>
|
|
|
|
<vn-td class="after">
|
2018-11-26 11:11:36 +00:00
|
|
|
<vn-one
|
|
|
|
ng-repeat="new in log.newProperties"
|
|
|
|
ng-if="!log.description"
|
|
|
|
id="newInstance">
|
2018-11-05 08:29:05 +00:00
|
|
|
<div>
|
|
|
|
<span translate class="label">{{::new.key}}</span><span class="label">: </span>
|
|
|
|
<span translate class="value">{{::new.value}}</span>
|
|
|
|
</div>
|
|
|
|
</vn-one>
|
2018-11-26 11:11:36 +00:00
|
|
|
<vn-one
|
|
|
|
ng-if="!log.newProperties"
|
|
|
|
id="description">
|
|
|
|
<div>
|
|
|
|
<span>{{log.description}}</span>
|
|
|
|
</div>
|
|
|
|
</vn-one>
|
2018-11-05 08:29:05 +00:00
|
|
|
</vn-td>
|
|
|
|
</vn-tr>
|
|
|
|
</vn-tbody>
|
|
|
|
</vn-table>
|
|
|
|
</vn-vertical>
|
2019-01-20 17:48:03 +00:00
|
|
|
<vn-pagination model="$ctrl.model"></vn-pagination>
|
2018-11-05 08:29:05 +00:00
|
|
|
</vn-card>
|
|
|
|
</vn-vertical>
|
2019-04-02 09:04:53 +00:00
|
|
|
<vn-worker-descriptor-popover
|
|
|
|
vn-id="workerDescriptor"
|
|
|
|
user-id="$ctrl.selectedWorker">
|
|
|
|
</vn-worker-descriptor-popover>
|