Commit e2b54f39 authored by Bahadir Can Yildiz's avatar Bahadir Can Yildiz

ADD rref #5340. Added wf and token params on request.

parent 037687ae
...@@ -31,13 +31,16 @@ angular.module('ulakbus') ...@@ -31,13 +31,16 @@ angular.module('ulakbus')
templateUrl: 'components/uitemplates/form_service_pg.html', templateUrl: 'components/uitemplates/form_service_pg.html',
controller: 'FormServicePg' controller: 'FormServicePg'
}) })
// use crud without selected user // use crud without selected user
// important: regex urls must be defined later than static ones // important: regex urls must be defined later than static ones
.when('/:wf/', { .when('/:wf/', {
templateUrl: 'components/crud/templates/crud-preload.html', templateUrl: 'components/crud/templates/crud-preload.html',
controller: 'CRUDController' controller: 'CRUDController'
}) })
.when('/cwf/:wf/:token', {
templateUrl: 'components/crud/templates/crud.html',
controller: 'CRUDController'
})
.when('/:wf/do/:cmd', { .when('/:wf/do/:cmd', {
templateUrl: 'components/crud/templates/crud.html', templateUrl: 'components/crud/templates/crud.html',
controller: 'CRUDListFormController' controller: 'CRUDListFormController'
...@@ -60,6 +63,7 @@ angular.module('ulakbus') ...@@ -60,6 +63,7 @@ angular.module('ulakbus')
}) })
.otherwise({redirectTo: '/dashboard'}); .otherwise({redirectTo: '/dashboard'});
}]) }])
.factory('IsOnline', function () { .factory('IsOnline', function () {
......
...@@ -68,7 +68,8 @@ angular.module('ulakbus.crud', ['schemaForm', 'ui.bootstrap', 'ulakbus.formServi ...@@ -68,7 +68,8 @@ angular.module('ulakbus.crud', ['schemaForm', 'ui.bootstrap', 'ulakbus.formServi
id: scope.param_id || routeParams.param_id, id: scope.param_id || routeParams.param_id,
wf: routeParams.wf, wf: routeParams.wf,
object_id: routeParams.key, object_id: routeParams.key,
filters: {} filters: {},
token: scope.token || routeParams.token
}; };
if (scope.param_id) { if (scope.param_id) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment