diff --git a/css/src/main.css b/css/src/main.css index b016d3a47..23aa5db10 100644 --- a/css/src/main.css +++ b/css/src/main.css @@ -158,6 +158,8 @@ input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill, inpu z-index: 9999; } +.home label, +.createProfile label, .join label, .open label, .setup label { @@ -175,6 +177,8 @@ a:hover { color: #2980b9; } +.home input, +.createProfile input, .open input, .join input, .setup input, @@ -188,6 +192,8 @@ a:hover { color: #fff !important; } +.home select, +.createProfile select, .open select, .join select, .setup select, @@ -248,7 +254,7 @@ a:hover { background-color: #F8F8FB; } -.home, .open, .join, .waiting-copayers, .setup, .import, .settings { +.home, .createProfile, .open, .join, .waiting-copayers, .setup, .import, .settings { margin-top: 15%; color: #fff; } diff --git a/js/controllers/createProfile.js b/js/controllers/createProfile.js index 50e5d1a75..fc72460b9 100644 --- a/js/controllers/createProfile.js +++ b/js/controllers/createProfile.js @@ -4,7 +4,10 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun controllerUtils.redirIfLogged(); $scope.createProfile = function(form) { - + if (form && form.$invalid) { + notification.error('Error', 'Please enter the required fields'); + return; + } $scope.loading = true; copay.Identity.create(form.email.$modelValue, form.password.$modelValue, { pluginManager: pluginManager, diff --git a/js/controllers/home.js b/js/controllers/home.js index 5d2f5c52b..94ebc6d35 100644 --- a/js/controllers/home.js +++ b/js/controllers/home.js @@ -5,6 +5,10 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc controllerUtils.redirIfLogged(); $scope.openProfile = function(form) { + if (form && form.$invalid) { + notification.error('Error', 'Please enter the required fields'); + return; + } $scope.loading = true; copay.Identity.open(form.email.$modelValue, form.password.$modelValue, { pluginManager: pluginManager, diff --git a/views/createProfile.html b/views/createProfile.html index 065b38cab..e39eb8f01 100644 --- a/views/createProfile.html +++ b/views/createProfile.html @@ -12,31 +12,52 @@
-
+

Create Profile

-
-
- - - - - - -
+ +
+
+ + + +
+
+ + +
+ + + +

+ + {{'Passwords must match'|translate}} +

+
+ +
-
- - - - -
- Back -
diff --git a/views/home.html b/views/home.html index 10c72e0d2..698c94ad2 100644 --- a/views/home.html +++ b/views/home.html @@ -13,26 +13,23 @@
-
+

Login

-
-
- - - - -
+ + + +
-
- - -