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

39 lines
1.2 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>
<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.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>
</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>