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
b3f6420a
Commit
b3f6420a
authored
Jun 11, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test for get form from fake server
parent
65654395
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
test_template.html
app/test_view_for_generator/test_template.html
+6
-0
testfile.js
app/test_view_for_generator/testfile.js
+13
-0
fake_rest_server.js
fake_rest_server.js
+2
-1
No files found.
app/test_view_for_generator/test_template.html
0 → 100644
View file @
b3f6420a
<div
ng-app=
"zaerp.dashboard"
>
<div
class=
"starter-template"
ng-controller=
"TestCtrl"
>
<h1>
Main Dashboard
</h1>
<div
ng-include=
" '' "
></div>
</div>
</div>
\ No newline at end of file
app/test_view_for_generator/testfile.js
0 → 100644
View file @
b3f6420a
'use strict'
;
var
testform
=
angular
.
module
(
'zaerp.test'
,
[
'ngRoute'
,
'schemaForm'
]);
testform
.
config
([
'$routeProvider'
,
function
(
$routeProvider
)
{
$routeProvider
.
when
(
'/test'
,
{
templateUrl
:
'test_view_for_generator/test_template.html'
,
controller
:
'TestCtrl'
});
}]);
testform
.
controller
(
'TestCtrl'
,
function
(
$scope
,
$q
,
$timeout
,
Generator
){
$scope
.
form
=
Generator
.
generate
(
'add_student'
,
''
);
});
\ No newline at end of file
fake_rest_server.js
View file @
b3f6420a
...
...
@@ -6,7 +6,8 @@ var login = new fake.Resource("login")
user
:
{
id
:
12
,
role
:
'admin'
}
},
success
:
true
});
var
form
=
new
fake
.
Resource
(
"add_student"
)
...
...
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