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
f651553a
Commit
f651553a
authored
May 12, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add angular-schema-form to project and first run
parent
2cc0234a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
55 deletions
+18
-55
index.html
app/index.html
+8
-1
login.js
app/login/login.js
+9
-53
bower.json
bower.json
+1
-1
No files found.
app/index.html
View file @
f651553a
...
...
@@ -43,7 +43,14 @@
<script
src=
"bower_components/angular/angular.js"
></script>
<script
src=
"bower_components/angular-route/angular-route.js"
></script>
<script
src=
"bower_components/angular-resource/angular-resource.js"
></script>
<script
src=
"bower_components/schema-form/dist/schema-form.js"
></script>
<!--<script src="bower_components/angular-schema-form/dist/schema-form.js"></script>-->
<script
type=
"text/javascript"
src=
"bower_components/angular-sanitize/angular-sanitize.min.js"
></script>
<script
type=
"text/javascript"
src=
"bower_components/tv4/tv4.js"
></script>
<script
type=
"text/javascript"
src=
"bower_components/objectpath/lib/ObjectPath.js"
></script>
<script
type=
"text/javascript"
src=
"bower_components/angular-schema-form/dist/schema-form.min.js"
></script>
<script
type=
"text/javascript"
src=
"bower_components/angular-schema-form/dist/bootstrap-decorator.min.js"
></script>
<script
src=
"app.js"
></script>
<script
src=
"login/login.js"
></script>
<script
src=
"view2/view2.js"
></script>
...
...
app/login/login.js
View file @
f651553a
...
...
@@ -8,7 +8,7 @@ angular.module('zaerp.login', ['ngRoute', 'schemaForm'])
controller
:
'LoginCtrl'
});
}])
.
controller
(
'LoginCtrl'
,
function
()
{
.
controller
(
'LoginCtrl'
,
function
(
$scope
)
{
$scope
.
schema
=
{
title
:
"Login"
,
...
...
@@ -41,55 +41,11 @@ angular.module('zaerp.login', ['ngRoute', 'schemaForm'])
email
:
"user@example.com"
,
remember
:
false
};
//$scope.form = [
// "*",
// {
// type: "submit",
// title: "Save"
// }
//];
});
//
//angular.module('loginApp', [])
// .controller('FormController', [function ($scope) {
// $scope.schema =
// {
// title: "Login",
// type: "object",
// properties: {
// email: {
// type: "string",
// title: "Email",
// pattern: "^[A-Z]"
// },
// pass: {
// type: "string",
// title: "Password",
// pattern: "^[A-Z]"
// },
// remember: {
// type: "boolean",
// title: "Remember me?"
// },
// who: {
// title: "Who are you?",
// type: "string",
// enum: ["student", "stuff", "dean"]
// }
// },
// required: ["email", "pass", "who"]
// };
// $scope.fields = ["email", "pass", "who", "remember"];
// $scope.model = {
// email: "user@example.com",
// remember: false
// };
// $scope.form = [
// "*",
// {
// type: "submit",
// title: "Save"
// }
// ];
// }]);
\ No newline at end of file
$scope
.
form
=
[
"*"
,
{
type
:
"submit"
,
title
:
"Save"
}
];
});
\ No newline at end of file
bower.json
View file @
f651553a
...
...
@@ -10,7 +10,7 @@
"angular-mocks"
:
"1.3.x"
,
"angular-route"
:
"1.3.x"
,
"angular-resource"
:
"1.3.x"
,
"
schema-form"
:
"https://github.com/gaslight/angular-schema-form.git
"
,
"
angular-schema-form"
:
"*
"
,
"quantumui"
:
"*"
}
}
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