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
09a0905c
Commit
09a0905c
authored
Jun 17, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
student_add js to student controller js and implement on app routes js
parent
02054713
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
20 deletions
+25
-20
app_routes.js
app/app_routes.js
+1
-1
student_add.js
app/components/student/student_add.js
+0
-19
student_controller.js
app/components/student/student_controller.js
+24
-0
No files found.
app/app_routes.js
View file @
09a0905c
...
...
@@ -26,7 +26,7 @@ app.config(['$routeProvider', function ($routeProvider) {
controller
:
'StudentAddCtrl'
,
resolve
:
{
loadMyCtrl
:
[
'$ocLazyLoad'
,
function
(
$ocLazyLoad
)
{
return
$ocLazyLoad
.
load
(
'components/student/student_
add
.js'
);
return
$ocLazyLoad
.
load
(
'components/student/student_
controller
.js'
);
}],
loadMyService
:
[
'$ocLazyLoad'
,
function
(
$ocLazyLoad
)
{
return
$ocLazyLoad
.
load
(
'zetalib/forms/form_service.js'
);
...
...
app/components/student/student_add.js
deleted
100644 → 0
View file @
02054713
/**
* Copyright (C) 2015 ZetaOps Inc.
*
* This file is licensed under the GNU General Public License v3
* (GPLv3). See LICENSE.txt for details.
*/
'use strict'
;
var
studentAdd
=
angular
.
module
(
'zaerp.student.add'
,
[
'ngRoute'
,
'schemaForm'
,
'formService'
]);
studentAdd
.
controller
(
'StudentAddCtrl'
,
function
(
$scope
,
$http
,
$timeout
,
$log
,
Generator
,
RESTURL
){
$scope
.
form
=
Generator
.
generate
(
'add_student'
,
''
);
$log
.
info
(
$scope
.
form
);
$http
.
get
(
RESTURL
.
url
+
'add_student'
).
then
(
function
(
res
){
$log
.
info
(
res
.
data
);
});
});
\ No newline at end of file
app/components/student/student_controller.js
0 → 100644
View file @
09a0905c
/**
* Copyright (C) 2015 ZetaOps Inc.
*
* This file is licensed under the GNU General Public License v3
* (GPLv3). See LICENSE.txt for details.
*/
'use strict'
;
/**
* student module is base module object for student operations
*/
var
student
=
angular
.
module
(
'zaerp.student.add'
,
[
'ngRoute'
,
'schemaForm'
,
'formService'
]);
/**
* StudentAddCtrl
* to add student, provide form with form generator
*/
student
.
controller
(
'StudentAddCtrl'
,
function
(
$scope
,
$http
,
$timeout
,
$log
,
$routeParams
,
Generator
){
$scope
.
schema
=
Generator
.
get_form
(
'add_student'
,
$routeParams
);
$log
.
info
(
$scope
.
schema
);
});
\ No newline at end of file
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