Added fields as required, added info icon
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
a3382300f9
commit
5fa9489f9a
|
@ -62,6 +62,18 @@
|
||||||
},
|
},
|
||||||
"loadPriority": {
|
"loadPriority": {
|
||||||
"type": "number"
|
"type": "number"
|
||||||
|
},
|
||||||
|
"supplierFk": {
|
||||||
|
"type": "number",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"travelFk": {
|
||||||
|
"type": "number",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"companyFk": {
|
||||||
|
"type": "number",
|
||||||
|
"required": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"relations": {
|
"relations": {
|
||||||
|
|
|
@ -7,6 +7,10 @@
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
<form name="form" ng-submit="$ctrl.onSubmit()" class="vn-w-md">
|
||||||
<vn-card class="vn-pa-lg">
|
<vn-card class="vn-pa-lg">
|
||||||
|
<vn-icon color-marginal
|
||||||
|
icon="info"
|
||||||
|
vn-tooltip="Required fields (*)">
|
||||||
|
</vn-icon>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
|
@ -16,21 +20,23 @@
|
||||||
search-function="{or: [{id: $search}, {name: {like: '%'+ $search +'%'}}]}"
|
search-function="{or: [{id: $search}, {name: {like: '%'+ $search +'%'}}]}"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
order="nickname"
|
order="nickname"
|
||||||
label="Supplier">
|
label="Supplier"
|
||||||
|
required="true">
|
||||||
<tpl-item>
|
<tpl-item>
|
||||||
{{::id}} - {{::nickname}}
|
{{::id}} - {{::nickname}}
|
||||||
</tpl-item>
|
</tpl-item>
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
ng-model="$ctrl.entry.travelFk"
|
ng-model="$ctrl.entry.travelFk"
|
||||||
url="Travels/filter"
|
url="Travels/filter"
|
||||||
search-function="$ctrl.searchFunction($search)"
|
search-function="$ctrl.searchFunction($search)"
|
||||||
value-field="t.id"
|
value-field="t.id"
|
||||||
order="t.id"
|
order="t.id"
|
||||||
label="Travel">
|
label="Travel"
|
||||||
|
required="true">
|
||||||
<tpl-item>
|
<tpl-item>
|
||||||
{{::agencyModeName}} - {{::warehouseInName}} ({{::shipped | date: 'dd/MM/yyyy'}}) →
|
{{::agencyModeName}} - {{::warehouseInName}} ({{::shipped | date: 'dd/MM/yyyy'}}) →
|
||||||
{{::warehouseOutName}} ({{::landed | date: 'dd/MM/yyyy'}})
|
{{::warehouseOutName}} ({{::landed | date: 'dd/MM/yyyy'}})
|
||||||
|
@ -43,7 +49,8 @@
|
||||||
label="Company"
|
label="Company"
|
||||||
show-field="code"
|
show-field="code"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
ng-model="$ctrl.entry.companyFk">
|
ng-model="$ctrl.entry.companyFk"
|
||||||
|
required="true">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
</vn-card>
|
</vn-card>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import ngModule from '../module';
|
import ngModule from '../module';
|
||||||
import Section from 'salix/components/section';
|
import Section from 'salix/components/section';
|
||||||
|
import './style.scss';
|
||||||
|
|
||||||
export default class Controller extends Section {
|
export default class Controller extends Section {
|
||||||
constructor($element, $) {
|
constructor($element, $) {
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
New entry: Nueva entrada
|
New entry: Nueva entrada
|
||||||
|
Required fields (*): Campos requeridos (*)
|
|
@ -0,0 +1,10 @@
|
||||||
|
vn-entry-create {
|
||||||
|
vn-card {
|
||||||
|
position: relative
|
||||||
|
}
|
||||||
|
vn-icon[icon="info"] {
|
||||||
|
position: absolute;
|
||||||
|
top: 16px;
|
||||||
|
right: 16px
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue