Commit 9c6c859e authored by Evren Kutar's avatar Evren Kutar

student add template and route

parent 96de1a07
...@@ -57,12 +57,12 @@ angular.module( ...@@ -57,12 +57,12 @@ angular.module(
}] }]
} }
}) })
.when('/test', { .when('/student_add', {
templateUrl: 'test_view_for_generator/test_template.html', templateUrl: 'student/student_add_template.html',
controller: 'TestCtrl', controller: 'StudentAddCtrl',
resolve: { resolve: {
loadMyCtrl: ['$ocLazyLoad', function($ocLazyLoad) { loadMyCtrl: ['$ocLazyLoad', function($ocLazyLoad) {
return $ocLazyLoad.load('test_view_for_generator/testfile.js'); return $ocLazyLoad.load('student/student_add.js');
}] }]
} }
}) })
......
<div ng-app="zaerp.student.add">
<div class="col-md-6" ng-controller="">
<h1>{{ form.name }}</h1>
<form name="{{ form.formname }}" sf-schema="schema" sf-form="form" sf-model="model" ng-submit="onSubmit()"></form>
</div>
</div>
\ No newline at end of file
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