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

98 lines
2.9 KiB
HTML
Raw Normal View History

<vn-crud-model
auto-load="true"
url="Companies"
data="companiesData"
order="code">
</vn-crud-model>
2020-09-17 18:12:52 +00:00
<vn-crud-model
auto-load="true"
url="Samples/visible"
data="samplesVisible"
order="description">
</vn-crud-model>
2018-07-31 09:08:22 +00:00
<vn-watcher
vn-id="watcher"
url="ClientSamples"
2018-07-31 09:08:22 +00:00
data="$ctrl.clientSample"
insert-mode="true"
form="form">
2018-07-31 09:08:22 +00:00
</vn-watcher>
<vn-crud-model
auto-load="true"
url="Companies"
data="companiesData"
order="code">
</vn-crud-model>
2019-11-10 10:08:44 +00:00
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
<vn-card class="vn-pa-lg">
<vn-horizontal>
<vn-autocomplete
vn-id="sampleType"
ng-model="$ctrl.clientSample.typeFk"
model="ClientSample.typeFk"
data="samplesVisible"
show-field="description"
label="Sample"
required="true">
</vn-autocomplete>
</vn-horizontal>
2018-07-31 09:08:22 +00:00
<vn-horizontal>
<vn-textfield
2019-11-04 12:55:20 +00:00
label="Recipient"
2020-02-18 10:14:02 +00:00
ng-model="$ctrl.clientSample.recipient"
info="Its only used when sample is sent"
required="true">
2019-11-04 12:55:20 +00:00
</vn-textfield>
<vn-textfield
label="Reply to"
ng-model="$ctrl.clientSample.replyTo"
info="To who should the recipient reply?"
required="true">
</vn-textfield>
</vn-horizontal>
<vn-horizontal ng-if="sampleType.selection.hasCompany || sampleType.selection.datepickerEnabled">
<vn-autocomplete
ng-model="$ctrl.companyId"
model="ClientSample.companyFk"
data="companiesData"
2018-07-31 09:08:22 +00:00
show-field="code"
label="Company"
ng-if="sampleType.selection.hasCompany"
required="true">
2018-07-31 09:08:22 +00:00
</vn-autocomplete>
<vn-date-picker
vn-one
label="From"
ng-model="$ctrl.clientSample.from"
ng-if="sampleType.selection.datepickerEnabled"
required="true">
</vn-date-picker>
2018-07-31 09:08:22 +00:00
</vn-horizontal>
</vn-card>
<vn-button-bar>
2020-12-13 13:57:42 +00:00
<vn-submit
2020-12-15 15:51:36 +00:00
disabled="!sampleType.selection"
2020-12-13 13:57:42 +00:00
label="Send">
</vn-submit>
<vn-button
2020-12-15 15:51:36 +00:00
disabled="!sampleType.selection.hasPreview"
label="Preview"
ng-click="$ctrl.showPreview()">
</vn-button>
2020-12-13 13:57:42 +00:00
<vn-button
2020-12-15 15:51:36 +00:00
class="cancel"
label="Cancel"
ui-sref="client.card.sample.index">
2020-12-13 13:57:42 +00:00
</vn-button>
2018-07-31 09:08:22 +00:00
</vn-button-bar>
</form>
<vn-dialog
vn-id="show-preview"
on-open="$ctrl.onPreviewOpen()">
2019-11-11 11:26:22 +00:00
<tpl-body class="client-sample-dialog">
<div class="loading">
<vn-spinner enable="true"></vn-spinner>
</div>
</tpl-body>
2018-07-31 09:08:22 +00:00
</vn-dialog>