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

89 lines
3.0 KiB
HTML
Raw Permalink 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-30 13:48:09 +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)"
2020-02-28 13:18:55 +00:00
accept="{{$ctrl.allowedContentTypes}}"
required="true"
multiple="true">
<append>
<vn-icon vn-none
color-marginal
title="{{$ctrl.contentTypesInfo}}"
icon="info">
</vn-icon>
</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="client.card.dms.index" label="Cancel"></vn-button>
</vn-button-bar>
</div>
</form>