46 lines
1.4 KiB
HTML
46 lines
1.4 KiB
HTML
<mg-ajax path="ClientSamples" options="vnPost"></mg-ajax>
|
|
<vn-watcher
|
|
vn-id="watcher"
|
|
data="$ctrl.clientSample"
|
|
form="form"
|
|
save="post">
|
|
</vn-watcher>
|
|
<form name="form" ng-submit="$ctrl.onSubmit()" compact>
|
|
<vn-card class="vn-pa-lg">
|
|
<vn-horizontal>
|
|
<vn-autocomplete
|
|
vn-one
|
|
vn-id="sampleType"
|
|
ng-model="$ctrl.clientSample.typeFk"
|
|
model="ClientSample.typeFk"
|
|
fields="['code','hasCompany']"
|
|
url="Samples/visible"
|
|
show-field="description"
|
|
value-field="id"
|
|
label="Sample">
|
|
</vn-autocomplete>
|
|
<vn-autocomplete
|
|
vn-one
|
|
ng-model="$ctrl.clientSample.companyFk"
|
|
model="ClientSample.companyFk"
|
|
url="Companies"
|
|
show-field="code"
|
|
value-field="id"
|
|
label="Company"
|
|
ng-if="sampleType.selection.hasCompany">
|
|
</vn-autocomplete>
|
|
</vn-horizontal>
|
|
</vn-card>
|
|
<vn-button-bar>
|
|
<vn-submit label="Send"></vn-submit>
|
|
<vn-button label="Preview" ng-click="$ctrl.showPreview()"></vn-button>
|
|
<vn-button ui-sref="client.card.sample.index" label="Cancel"></vn-button>
|
|
</vn-button-bar>
|
|
</form>
|
|
|
|
<vn-dialog
|
|
vn-id="show-preview"
|
|
on-open="$ctrl.onPreviewOpen()">
|
|
<tpl-body></tpl-body>
|
|
</vn-dialog>
|