moved model agency
This commit is contained in:
parent
80bbd9e5d4
commit
f24e16b81d
|
@ -12,7 +12,12 @@
|
||||||
<vn-title>Create Route</vn-title>
|
<vn-title>Create Route</vn-title>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-date-picker vn-one label="Date" model="$ctrl.delivery.date"></vn-date-picker>
|
<vn-date-picker vn-one label="Date" model="$ctrl.delivery.date"></vn-date-picker>
|
||||||
<vn-textfield vn-one label="Agency" field="$ctrl.delivery.agency"></vn-textfield>
|
<vn-autocomplete vn-one
|
||||||
|
label="Agency"
|
||||||
|
url="/route/api/Agencies"
|
||||||
|
field="$ctrl.delivery.agency"
|
||||||
|
>
|
||||||
|
</vn-autocomplete>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-textfield vn-one label="Driver" field="$ctrl.delivery.driver"></vn-textfield>
|
<vn-textfield vn-one label="Driver" field="$ctrl.delivery.driver"></vn-textfield>
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
var app = require('../../server/server');
|
|
||||||
|
|
||||||
module.exports = function(Agency) {
|
|
||||||
require('../methods/agency/list.js')(Agency);
|
|
||||||
};
|
|
|
@ -47,5 +47,9 @@
|
||||||
},
|
},
|
||||||
"Zone": {
|
"Zone": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"Agency": {
|
||||||
|
"dataSource": "vn",
|
||||||
|
"public": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
module.exports = function(Agency) {
|
||||||
|
require('../methods/agency/list.js')(Agency);
|
||||||
|
};
|
|
@ -11,10 +11,6 @@
|
||||||
"name": {
|
"name": {
|
||||||
"type": "String",
|
"type": "String",
|
||||||
"required": false
|
"required": false
|
||||||
},
|
|
||||||
"tpv":{
|
|
||||||
"type": "Number",
|
|
||||||
"required": false
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"acls": [
|
"acls": [
|
Loading…
Reference in New Issue