salix/modules/client/front/credit/index/index.html

50 lines
1.5 KiB
HTML
Raw Normal View History

2018-07-16 06:00:04 +00:00
<vn-crud-model
vn-id="model"
url="ClientCredits"
2018-07-16 06:00:04 +00:00
filter="::$ctrl.filter"
2020-03-17 10:17:50 +00:00
link="{clientFk: $ctrl.$params.id}"
2018-07-16 06:00:04 +00:00
limit="20"
2019-10-02 17:24:42 +00:00
data="credits"
order="created DESC"
auto-load="true">
2018-07-16 06:00:04 +00:00
</vn-crud-model>
2019-10-02 17:24:42 +00:00
<vn-data-viewer
model="model"
class="vn-w-md">
2019-10-01 14:17:57 +00:00
<vn-card>
2019-10-02 17:24:42 +00:00
<vn-table model="model">
<vn-thead>
<vn-tr>
<vn-th field="created">Since</vn-th>
<vn-th field="workerFk">Employee</vn-th>
<vn-th field="amount" number>Credit</vn-th>
</vn-tr>
</vn-thead>
<vn-tbody>
<vn-tr ng-repeat="credit in credits track by credit.id">
2021-08-15 06:35:14 +00:00
<vn-td shrink-datetime>{{::credit.created | date:'dd/MM/yyyy HH:mm'}}</vn-td>
2020-09-03 13:11:16 +00:00
<vn-td>
<span
ng-click="workerDescriptor.show($event, credit.worker.userFk)"
class="link">
{{::credit.worker.user.name}}
</span>
</vn-td>
2019-10-02 17:24:42 +00:00
<vn-td number>{{::credit.amount | currency:'EUR':2}}</vn-td>
</vn-tr>
</vn-tbody>
</vn-table>
2018-03-01 22:38:14 +00:00
</vn-card>
2019-10-02 17:24:42 +00:00
</vn-data-viewer>
2019-10-01 14:17:57 +00:00
<vn-float-button
icon="add"
ui-sref="client.card.credit.create"
vn-acl="teamBoss"
vn-acl-action="remove"
vn-tooltip="New credit"
2019-10-01 14:17:57 +00:00
vn-bind="+"
fixed-bottom-right>
</vn-float-button>
2020-09-03 13:11:16 +00:00
<vn-worker-descriptor-popover
vn-id="workerDescriptor">
</vn-worker-descriptor-popover>