moved model agency

This commit is contained in:
dherrero 2017-10-11 15:00:18 +02:00
parent 80bbd9e5d4
commit f24e16b81d
6 changed files with 13 additions and 10 deletions

View File

@ -12,7 +12,12 @@
<vn-title>Create Route</vn-title>
<vn-horizontal>
<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-textfield vn-one label="Driver" field="$ctrl.delivery.driver"></vn-textfield>

View File

@ -1,5 +0,0 @@
var app = require('../../server/server');
module.exports = function(Agency) {
require('../methods/agency/list.js')(Agency);
};

View File

@ -47,5 +47,9 @@
},
"Zone": {
"dataSource": "vn"
},
"Agency": {
"dataSource": "vn",
"public": true
}
}

View File

@ -0,0 +1,3 @@
module.exports = function(Agency) {
require('../methods/agency/list.js')(Agency);
};

View File

@ -11,10 +11,6 @@
"name": {
"type": "String",
"required": false
},
"tpv":{
"type": "Number",
"required": false
}
},
"acls": [