2019-07-15 09:40: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-07-15 09:40:11 +00:00
|
|
|
<div compact>
|
2019-10-04 22:16:57 +00:00
|
|
|
<vn-card class="vn-pa-lg">
|
2019-07-15 09:40:11 +00:00
|
|
|
<vn-horizontal>
|
2019-10-09 22:47:29 +00:00
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
vn-focus
|
2019-07-15 09:40:11 +00:00
|
|
|
label="Reference"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.dms.reference"
|
|
|
|
rule>
|
2019-07-15 09:40:11 +00:00
|
|
|
</vn-textfield>
|
|
|
|
<vn-autocomplete vn-one required="true"
|
|
|
|
label="Company"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.dms.companyId"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Companies"
|
2019-07-15 09:40:11 +00:00
|
|
|
show-field="code"
|
|
|
|
value-field="id">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-autocomplete vn-one required="true"
|
|
|
|
label="Warehouse"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.dms.warehouseId"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="Warehouses"
|
2019-07-15 09:40:11 +00:00
|
|
|
show-field="name"
|
|
|
|
value-field="id">
|
|
|
|
</vn-autocomplete>
|
|
|
|
<vn-autocomplete vn-one required="true"
|
|
|
|
label="Type"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.dms.dmsTypeId"
|
2019-10-24 22:53:53 +00:00
|
|
|
url="DmsTypes"
|
2019-07-15 09:40:11 +00:00
|
|
|
show-field="name"
|
|
|
|
value-field="id">
|
|
|
|
</vn-autocomplete>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2019-10-09 22:47:29 +00:00
|
|
|
<vn-textarea
|
|
|
|
vn-one
|
|
|
|
required="true"
|
2019-07-15 09:40:11 +00:00
|
|
|
label="Description"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.dms.description"
|
|
|
|
rule>
|
2019-07-15 09:40:11 +00:00
|
|
|
</vn-textarea>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal>
|
2019-10-28 20:40:24 +00:00
|
|
|
<vn-input-file
|
|
|
|
vn-one
|
2019-07-15 09:40:11 +00:00
|
|
|
label="File"
|
2019-10-28 20:40:24 +00:00
|
|
|
ng-model="$ctrl.dms.files"
|
|
|
|
on-change="$ctrl.onFileChange($files)"
|
2019-08-08 06:37:03 +00:00
|
|
|
accept="{{$ctrl.allowedContentTypes}}"
|
|
|
|
multiple="true">
|
2019-10-09 22:47:29 +00:00
|
|
|
<append>
|
2019-08-08 06:37:03 +00:00
|
|
|
<vn-icon vn-none
|
|
|
|
color-secondary
|
|
|
|
title="{{$ctrl.contentTypesInfo}}"
|
|
|
|
icon="info">
|
|
|
|
</vn-icon>
|
2019-10-09 22:47:29 +00:00
|
|
|
</append>
|
2019-07-15 09:40:11 +00:00
|
|
|
</vn-input-file>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-vertical>
|
2019-07-17 08:55:58 +00:00
|
|
|
<vn-check disabled="true"
|
2019-07-16 11:37:25 +00:00
|
|
|
label="Generate identifier for original file"
|
2019-10-09 22:47:29 +00:00
|
|
|
ng-model="$ctrl.dms.hasFile">
|
2019-07-15 09:40:11 +00:00
|
|
|
</vn-check>
|
|
|
|
</vn-vertical>
|
|
|
|
</vn-card>
|
|
|
|
<vn-button-bar>
|
|
|
|
<vn-submit label="Save"></vn-submit>
|
|
|
|
<vn-button ui-sref="ticket.card.dms.index" label="Cancel"></vn-button>
|
|
|
|
</vn-button-bar>
|
|
|
|
</div>
|
|
|
|
</form>
|