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

88 lines
2.9 KiB
HTML
Raw Normal View History

2019-07-15 09:40:11 +00:00
<vn-watcher
vn-id="watcher"
data="$ctrl.dms">
</vn-watcher>
2023-05-25 09:41:14 +00:00
<vn-crud-model
auto-load="true"
url="Warehouses"
data="warehouses">
</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">
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"
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"
2023-05-25 09:41:14 +00:00
data="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"
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)"
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>
2019-07-15 09:40:11 +00:00
</vn-input-file>
</vn-horizontal>
<vn-vertical>
<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>