salix/modules/travel/front/thermograph/edit/index.html

88 lines
3.1 KiB
HTML
Raw Normal View History

2020-02-28 07:19:20 +00:00
<vn-watcher
vn-id="watcher"
data="$ctrl.dms">
</vn-watcher>
<form
name="form"
ng-submit="$ctrl.onSubmit()"
class="vn-ma-md"
enctype="multipart/form-data">
<div class="vn-w-md">
<vn-card class="vn-pa-lg">
<vn-horizontal>
<vn-autocomplete vn-one
label="Thermograph"
2020-02-28 13:18:55 +00:00
ng-model="$ctrl.thermograph.thermographId"
2020-02-28 07:19:20 +00:00
url="TravelThermographs"
show-field="thermographFk"
2020-02-28 13:18:55 +00:00
value-field="thermographFk"
disabled="true">
2020-02-28 07:19:20 +00:00
</vn-autocomplete>
<vn-textfield vn-one
label="State"
2020-02-28 13:18:55 +00:00
ng-model="$ctrl.thermograph.state"
2020-02-28 07:19:20 +00:00
rule>
</vn-textfield>
</vn-horizontal>
<vn-horizontal>
<vn-textfield vn-one
label="Reference"
2020-02-28 13:18:55 +00:00
ng-model="$ctrl.thermograph.reference"
2020-02-28 07:19:20 +00:00
rule>
</vn-textfield>
<vn-autocomplete vn-one
label="Type"
2020-02-28 13:18:55 +00:00
ng-model="$ctrl.thermograph.dmsTypeId"
2020-02-28 07:19:20 +00:00
url="DmsTypes"
show-field="name"
value-field="id">
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
<vn-autocomplete vn-one
label="Company"
2020-02-28 13:18:55 +00:00
ng-model="$ctrl.thermograph.companyId"
2020-02-28 07:19:20 +00:00
url="Companies"
show-field="code"
value-field="id">
</vn-autocomplete>
<vn-autocomplete vn-one
label="Warehouse"
2020-02-28 13:18:55 +00:00
ng-model="$ctrl.thermograph.warehouseId"
2020-02-28 07:19:20 +00:00
url="Warehouses"
show-field="name"
value-field="id">
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
<vn-textarea vn-one vn-focus
label="Description"
2020-02-28 13:18:55 +00:00
ng-model="$ctrl.thermograph.description"
2020-02-28 07:19:20 +00:00
rule>
</vn-textarea>
</vn-horizontal>
<vn-horizontal>
<vn-input-file
vn-one
label="File"
2020-02-28 13:18:55 +00:00
ng-model="$ctrl.thermograph.files"
on-change="$ctrl.onFileChange($files)"
2020-02-28 07:19:20 +00:00
accept="{{$ctrl.allowedContentTypes}}"
multiple="true">
<append>
<vn-icon vn-none
color-marginal
title="{{$ctrl.contentTypesInfo}}"
icon="info">
</vn-icon>
</append>
</vn-input-file>
</vn-horizontal>
</vn-card>
<vn-button-bar>
<vn-submit label="Save"></vn-submit>
<vn-button ui-sref="travel.card.thermograph.index" label="Cancel"></vn-button>
</vn-button-bar>
</div>
</form>