2019-06-06 11:59:11 +00:00
|
|
|
<vn-watcher
|
|
|
|
vn-id="watcher"
|
|
|
|
data="$ctrl.dms">
|
|
|
|
</vn-watcher>
|
2019-10-04 22:16:57 +00:00
|
|
|
<form
|
|
|
|
name="form"
|
|
|
|
ng-submit="$ctrl.onSubmit()"
|
|
|
|
class="vn-ma-md"
|
|
|
|
enctype="multipart/form-data">
|
2019-06-06 11:59:11 +00:00
|
|
|
<div compact>
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2019-06-06 11:59:11 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield vn-one vn-focus
|
|
|
|
label="Reference"
|
|
|
|
field="$ctrl.dms.reference">
|
|
|
|
</vn-textfield>
|
|
|
|
<vn-autocomplete vn-one
|
|
|
|
label="Company"
|
|
|
|
field="$ctrl.dms.companyId"
|
|
|
|
url="/api/Companies"
|
|
|
|
show-field="code"
|
|
|
|
value-field="id">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete vn-one
|
|
|
|
label="Warehouse"
|
|
|
|
field="$ctrl.dms.warehouseId"
|
|
|
|
url="/api/Warehouses"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete vn-one
|
|
|
|
label="Type"
|
|
|
|
field="$ctrl.dms.dmsTypeId"
|
|
|
|
url="/api/DmsTypes"
|
|
|
|
show-field="name"
|
|
|
|
value-field="id">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textarea vn-one
|
|
|
|
label="Description"
|
|
|
|
field="$ctrl.dms.description">
|
|
|
|
</vn-textarea>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-input-file vn-one
|
|
|
|
label="File"
|
|
|
|
model="$ctrl.dms.files"
|
|
|
|
on-change="$ctrl.onFileChange(files)"
|
2019-08-08 06:37:03 +00:00
|
|
|
accept="{{$ctrl.allowedContentTypes}}"
|
|
|
|
multiple="true">
|
|
|
|
<t-right-icons>
|
|
|
|
<vn-icon vn-none
|
|
|
|
color-secondary
|
|
|
|
title="{{$ctrl.contentTypesInfo}}"
|
|
|
|
icon="info">
|
|
|
|
</vn-icon>
|
|
|
|
</t-right-icons>
|
2019-06-06 11:59:11 +00:00
|
|
|
</vn-input-file>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-vertical>
|
|
|
|
<vn-check
|
2019-07-16 11:37:25 +00:00
|
|
|
label="Generate identifier for original file"
|
2019-06-06 11:59:11 +00:00
|
|
|
field="$ctrl.dms.hasFile">
|
|
|
|
</vn-check>
|
|
|
|
</vn-vertical>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Upload"></vn-submit>
|
|
|
|
<vn-button ui-sref="ticket.card.dms.index" label="Cancel"></vn-button>
|
|
|
|
</vn-button-bar>
|
|
|
|
</div>
|
|
|
|
</form>
|