39 lines
1.2 KiB
HTML
39 lines
1.2 KiB
HTML
<vn-crud-model
|
|
vn-id="model"
|
|
url="/client/api/clientObservations"
|
|
filter="{order: 'created DESC'}"
|
|
link="{clientFk: $ctrl.$stateParams.id}"
|
|
data="notes"
|
|
auto-load="true">
|
|
</vn-crud-model>
|
|
<vn-vertical compact>
|
|
<vn-card pad-large>
|
|
<vn-vertical
|
|
ng-repeat="note in notes"
|
|
pad-small
|
|
border-solid
|
|
border-radius
|
|
margin-small-bottom>
|
|
<vn-horizontal margin-small-bottom style="color: #666">
|
|
<vn-one>{{::note.worker.firstName}} {{::note.worker.name}}</vn-one>
|
|
<vn-auto>{{::note.created | date:'dd/MM/yyyy HH:mm'}}</vn-auto>
|
|
</vn-horizontal>
|
|
<vn-horizontal class="text">
|
|
{{::note.text}}
|
|
</vn-horizontal>
|
|
</vn-vertical>
|
|
<vn-horizontal ng-if="model.data.length == 0">
|
|
<vn-one ad-small translate>
|
|
No results
|
|
</vn-one>
|
|
</vn-horizontal>
|
|
</vn-card>
|
|
</vn-vertical>
|
|
|
|
<a vn-tooltip="New note"
|
|
ui-sref="client.card.note.create({id: $ctrl.$stateParams.id})"
|
|
vn-bind="+"
|
|
fixed-bottom-right>
|
|
<vn-float-button icon="add"></vn-float-button>
|
|
</a>
|