salix/modules/ticket/front/dms/create/index.html

100 lines
3.1 KiB
HTML
Raw Normal View History

<vn-watcher
vn-id="watcher"
data="$ctrl.dms">
</vn-watcher>
2020-09-17 18:12:52 +00:00
<vn-crud-model
auto-load="true"
url="Companies"
data="companies"
order="code">
</vn-crud-model>
<vn-crud-model
auto-load="true"
url="Warehouses"
data="warehouses"
order="name">
</vn-crud-model>
<vn-crud-model
auto-load="true"
url="DmsTypes"
data="dmsTypes"
order="name">
</vn-crud-model>
<form
name="form"
ng-submit="$ctrl.onSubmit()"
class="vn-ma-md"
enctype="multipart/form-data">
2019-11-10 10:08:44 +00:00
<div class="vn-w-md">
<vn-card class="vn-pa-lg">
<vn-horizontal>
2019-10-09 22:47:29 +00:00
<vn-textfield
vn-one
vn-focus
label="Reference"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.dms.reference"
rule>
</vn-textfield>
<vn-autocomplete vn-one
label="Company"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.dms.companyId"
2020-09-17 18:12:52 +00:00
data="companies"
show-field="code"
value-field="id">
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
<vn-autocomplete vn-one
label="Warehouse"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.dms.warehouseId"
2020-09-17 18:12:52 +00:00
data="warehouses"
show-field="name"
value-field="id">
</vn-autocomplete>
<vn-autocomplete vn-one
label="Type"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.dms.dmsTypeId"
2020-09-17 18:12:52 +00:00
data="dmsTypes"
show-field="name"
value-field="id">
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
2019-10-09 22:47:29 +00:00
<vn-textarea
vn-one
label="Description"
2019-10-09 22:47:29 +00:00
ng-model="$ctrl.dms.description"
rule>
</vn-textarea>
</vn-horizontal>
<vn-horizontal>
2019-10-28 20:40:24 +00:00
<vn-input-file
vn-one
label="File"
2019-10-28 20:40:24 +00:00
ng-model="$ctrl.dms.files"
on-change="$ctrl.onFileChange($files)"
accept="{{$ctrl.allowedContentTypes}}"
multiple="true">
2019-10-09 22:47:29 +00:00
<append>
<vn-icon vn-none
2019-11-10 10:08:44 +00:00
color-marginal
title="{{$ctrl.contentTypesInfo}}"
icon="info">
</vn-icon>
2019-10-09 22:47:29 +00:00
</append>
</vn-input-file>
</vn-horizontal>
<vn-vertical>
<vn-check
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">
</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>