Commit f651553a authored by Evren Kutar's avatar Evren Kutar

add angular-schema-form to project and first run

parent 2cc0234a
...@@ -43,7 +43,14 @@ ...@@ -43,7 +43,14 @@
<script src="bower_components/angular/angular.js"></script> <script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-route/angular-route.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/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="app.js"></script>
<script src="login/login.js"></script> <script src="login/login.js"></script>
<script src="view2/view2.js"></script> <script src="view2/view2.js"></script>
......
...@@ -8,7 +8,7 @@ angular.module('zaerp.login', ['ngRoute', 'schemaForm']) ...@@ -8,7 +8,7 @@ angular.module('zaerp.login', ['ngRoute', 'schemaForm'])
controller: 'LoginCtrl' controller: 'LoginCtrl'
}); });
}]) }])
.controller('LoginCtrl', function () { .controller('LoginCtrl', function ($scope) {
$scope.schema = $scope.schema =
{ {
title: "Login", title: "Login",
...@@ -41,55 +41,11 @@ angular.module('zaerp.login', ['ngRoute', 'schemaForm']) ...@@ -41,55 +41,11 @@ angular.module('zaerp.login', ['ngRoute', 'schemaForm'])
email: "user@example.com", email: "user@example.com",
remember: false remember: false
}; };
//$scope.form = [ $scope.form = [
// "*", "*",
// { {
// type: "submit", type: "submit",
// title: "Save" title: "Save"
// } }
//]; ];
}); });
\ No newline at end of file
//
//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
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
"angular-mocks": "1.3.x", "angular-mocks": "1.3.x",
"angular-route": "1.3.x", "angular-route": "1.3.x",
"angular-resource": "1.3.x", "angular-resource": "1.3.x",
"schema-form": "https://github.com/gaslight/angular-schema-form.git", "angular-schema-form": "*",
"quantumui": "*" "quantumui": "*"
} }
} }
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