2018-07-16 06:00:04 +00:00
|
|
|
<vn-crud-model
|
|
|
|
vn-id="model"
|
|
|
|
url="/client/api/clientObservations"
|
2019-01-31 13:14:39 +00:00
|
|
|
filter="$ctrl.filter"
|
2018-07-16 06:00:04 +00:00
|
|
|
link="{clientFk: $ctrl.$stateParams.id}"
|
2018-12-19 14:59:35 +00:00
|
|
|
data="notes"
|
|
|
|
auto-load="true">
|
2018-07-16 06:00:04 +00:00
|
|
|
</vn-crud-model>
|
2018-12-17 12:52:16 +00:00
|
|
|
<vn-vertical compact>
|
|
|
|
<vn-card pad-large>
|
2018-03-01 22:38:14 +00:00
|
|
|
<vn-vertical
|
2018-07-16 06:00:04 +00:00
|
|
|
ng-repeat="note in notes"
|
2018-03-01 22:38:14 +00:00
|
|
|
pad-small
|
|
|
|
border-solid
|
2018-01-29 11:37:54 +00:00
|
|
|
border-radius
|
2018-02-12 12:16:49 +00:00
|
|
|
margin-small-bottom>
|
|
|
|
<vn-horizontal margin-small-bottom style="color: #666">
|
2019-01-31 13:14:39 +00:00
|
|
|
<vn-one>{{::note.worker.user.nickname}}</vn-one>
|
2018-07-16 06:00:04 +00:00
|
|
|
<vn-auto>{{::note.created | date:'dd/MM/yyyy HH:mm'}}</vn-auto>
|
2017-11-21 13:22:59 +00:00
|
|
|
</vn-horizontal>
|
2018-03-01 22:38:14 +00:00
|
|
|
<vn-horizontal class="text">
|
2018-07-16 06:00:04 +00:00
|
|
|
{{::note.text}}
|
2017-11-21 13:22:59 +00:00
|
|
|
</vn-horizontal>
|
2018-03-01 22:38:14 +00:00
|
|
|
</vn-vertical>
|
2018-08-03 05:52:37 +00:00
|
|
|
<vn-horizontal ng-if="model.data.length == 0">
|
|
|
|
<vn-one ad-small translate>
|
|
|
|
No results
|
|
|
|
</vn-one>
|
|
|
|
</vn-horizontal>
|
2018-03-01 22:38:14 +00:00
|
|
|
</vn-card>
|
|
|
|
</vn-vertical>
|
2018-07-16 06:00:04 +00:00
|
|
|
|
2018-07-25 13:14:03 +00:00
|
|
|
<a vn-tooltip="New note"
|
|
|
|
ui-sref="client.card.note.create({id: $ctrl.$stateParams.id})"
|
|
|
|
vn-bind="+"
|
|
|
|
fixed-bottom-right>
|
2018-07-16 06:00:04 +00:00
|
|
|
<vn-float-button icon="add"></vn-float-button>
|
|
|
|
</a>
|