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

88 lines
2.9 KiB
HTML
Raw Normal View History

2019-11-22 09:42:05 +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>
2019-11-22 09:42:05 +00:00
<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-textfield
vn-one
vn-focus
label="Reference"
ng-model="$ctrl.dms.reference"
rule>
</vn-textfield>
<vn-autocomplete vn-one required="true"
label="Company"
ng-model="$ctrl.dms.companyId"
url="Companies"
show-field="code"
value-field="id">
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
<vn-autocomplete vn-one required="true"
label="Warehouse"
ng-model="$ctrl.dms.warehouseId"
2023-05-30 13:48:09 +00:00
data="warehouses"
2019-11-22 09:42:05 +00:00
show-field="name"
value-field="id">
</vn-autocomplete>
<vn-autocomplete vn-one required="true"
label="Type"
ng-model="$ctrl.dms.dmsTypeId"
url="DmsTypes"
show-field="name"
value-field="id">
</vn-autocomplete>
</vn-horizontal>
<vn-horizontal>
<vn-textarea
vn-one
required="true"
label="Description"
ng-model="$ctrl.dms.description"
rule>
</vn-textarea>
</vn-horizontal>
<vn-horizontal>
<vn-input-file
vn-one
label="File"
ng-model="$ctrl.dms.files"
on-change="$ctrl.onFileChange($files)"
2019-11-22 12:46:38 +00:00
accept="{{$ctrl.allowedContentTypes}}"
multiple="true">
<append>
<vn-icon vn-none
color-marginal
title="{{$ctrl.contentTypesInfo}}"
icon="info">
</vn-icon>
</append>
2019-11-22 09:42:05 +00:00
</vn-input-file>
</vn-horizontal>
<vn-vertical>
2021-02-05 11:09:48 +00:00
<vn-check disabled="watcher.orgData.hasFile"
2019-11-22 09:42:05 +00:00
label="Generate identifier for original file"
ng-model="$ctrl.dms.hasFile">
</vn-check>
</vn-vertical>
</vn-card>
<vn-button-bar>
<vn-submit label="Save"></vn-submit>
2019-11-22 12:46:38 +00:00
<vn-button ui-sref="worker.card.dms.index" label="Cancel"></vn-button>
2019-11-22 09:42:05 +00:00
</vn-button-bar>
</div>
</form>