salix/modules/client/front/sample/create/index.html

46 lines
1.4 KiB
HTML
Raw Normal View History

2018-07-31 09:08:22 +00:00
<mg-ajax path="/client/api/ClientSamples" options="vnPost"></mg-ajax>
<vn-watcher
vn-id="watcher"
data="$ctrl.clientSample"
form="form"
save="post">
</vn-watcher>
2018-12-14 11:56:21 +00:00
<form name="form" ng-submit="$ctrl.onSubmit()" compact>
2018-07-31 09:08:22 +00:00
<vn-card pad-large>
<vn-horizontal>
<vn-autocomplete
vn-one
vn-id="sampleType"
field="$ctrl.clientSample.typeFk"
model="ClientSample.typeFk"
2018-10-18 07:24:20 +00:00
fields="['code','hasCompany']"
2018-07-31 09:08:22 +00:00
url="/client/api/Samples"
show-field="description"
value-field="id"
label="Sample">
</vn-autocomplete>
<vn-autocomplete
vn-one
field="$ctrl.clientSample.companyFk"
model="ClientSample.companyFk"
url="/client/api/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>
2018-07-31 09:08:22 +00:00
<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>