Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
ulakbus-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ulakbus
ulakbus-ui
Commits
012529d5
Commit
012529d5
authored
Nov 03, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
workflow scope url edit
parent
4a792e56
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
wf_controller.js
app/components/wf/wf_controller.js
+8
-8
No files found.
app/components/wf/wf_controller.js
View file @
012529d5
...
...
@@ -16,8 +16,8 @@ var wf = angular.module('ulakbus.wf', ['ui.bootstrap', 'schemaForm', 'formServic
* which provide a form with form generator.
*/
crud
.
controller
(
'WFAddEditCtrl'
,
function
(
$scope
,
$rootScope
,
$location
,
$http
,
$log
,
$modal
,
$timeout
,
Generator
,
$routeParams
)
{
$scope
.
url
=
$routeParams
.
model
;
wf
.
controller
(
'WFAddEditCtrl'
,
function
(
$scope
,
$rootScope
,
$location
,
$http
,
$log
,
$modal
,
$timeout
,
Generator
,
$routeParams
)
{
$scope
.
url
=
""
;
debugger
;
$scope
.
form_params
=
{
'model'
:
$routeParams
.
model
};
//if ($routeParams.id) {
// $scope.form_params['object_id'] = $routeParams.id;
...
...
@@ -49,11 +49,11 @@ crud.controller('WFAddEditCtrl', function ($scope, $rootScope, $location, $http,
});
/**
*
CRUD
List Controller
*
WorkFlow
List Controller
*/
crud
.
controller
(
'CRUD
ListCtrl'
,
function
(
$scope
,
$rootScope
,
Generator
,
$routeParams
)
{
$scope
.
url
=
'crud/'
;
wf
.
controller
(
'WF
ListCtrl'
,
function
(
$scope
,
$rootScope
,
Generator
,
$routeParams
)
{
$scope
.
url
=
""
;
$scope
.
form_params
=
$routeParams
;
if
(
$routeParams
.
nobjects
){
...
...
@@ -70,10 +70,10 @@ crud.controller('CRUDListCtrl', function ($scope, $rootScope, Generator, $routeP
});
/**
*
CRUD
Show Controller
*
WorkFlow
Show Controller
*/
crud
.
controller
(
'CRUD
ShowCtrl'
,
function
(
$scope
,
$rootScope
,
Generator
,
$routeParams
)
{
$scope
.
url
=
'crud/'
;
wf
.
controller
(
'WF
ShowCtrl'
,
function
(
$scope
,
$rootScope
,
Generator
,
$routeParams
)
{
$scope
.
url
=
""
;
$scope
.
form_params
=
{
"object_id"
:
$routeParams
.
id
,
"cmd"
:
"show"
,
"model"
:
$routeParams
.
model
};
// call generator's get_single_itemfunc
Generator
.
get_single_item
(
$scope
).
then
(
function
(
res
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment