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

37 lines
1.1 KiB
HTML

<vn-crud-model
vn-id="model"
url="/client/api/clientObservations"
filter="$ctrl.filter"
link="{clientFk: $ctrl.$stateParams.id}"
data="notes"
auto-load="true">
</vn-crud-model>
<div class="vn-w-md">
<vn-card pad-medium>
<div class="note"
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.user.nickname}}</vn-one>
<vn-auto>{{::note.created | dateTime:'dd/MM/yyyy HH:mm'}}</vn-auto>
</vn-horizontal>
<vn-horizontal class="text">
{{::note.text}}
</vn-horizontal>
</div>
<div ng-if="model.data.length == 0" ad-small translate>
No results
</div>
</vn-card>
</div>
<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>