Commit 91af9521 authored by Evren Kutar's avatar Evren Kutar

add form field types fix for todo: password field type

parent e712a3df
'use strict'; 'use strict';
// TODO: password field fix
angular.module('zaerp.login', ['ngRoute', 'schemaForm']) angular.module('zaerp.login', ['ngRoute', 'schemaForm'])
...@@ -18,7 +16,7 @@ angular.module('zaerp.login', ['ngRoute', 'schemaForm']) ...@@ -18,7 +16,7 @@ angular.module('zaerp.login', ['ngRoute', 'schemaForm'])
type: "object", type: "object",
properties: { properties: {
email: { email: {
type: "string", type: "email",
title: "Email" title: "Email"
}, },
pass: { pass: {
...@@ -43,7 +41,16 @@ angular.module('zaerp.login', ['ngRoute', 'schemaForm']) ...@@ -43,7 +41,16 @@ angular.module('zaerp.login', ['ngRoute', 'schemaForm'])
remember: false remember: false
}; };
$scope.form = [ $scope.form = [
"*", {
key: "email",
type: "email"
},
{
key: "pass",
type: "password"
},
"remember",
"who",
{ {
type: "submit", type: "submit",
title: "Save" title: "Save"
......
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