CORD GUI -- Login page now takes emails to log into different accounts. Bundle page layout WIP.

Change-Id: I4af52d68f481b637a9b5576ddaba0bad1d113c28
diff --git a/apps/demo/cord-gui/src/main/webapp/app/view/login/login.html b/apps/demo/cord-gui/src/main/webapp/app/view/login/login.html
index 0ce4112..cc22598 100644
--- a/apps/demo/cord-gui/src/main/webapp/app/view/login/login.html
+++ b/apps/demo/cord-gui/src/main/webapp/app/view/login/login.html
@@ -9,9 +9,11 @@
             <div class="outline"></div>
                 <h2>Subscriber Portal</h2>
                 <form>
-                    <input type="text" placeholder="email">
+                    <input ng-model="email" type="text" placeholder="email">
                     <input type="password" placeholder="password">
-                    <a href="#/home"><input type="button" value="Log In"></a>
+                    <a href="#/home">
+                        <input ng-click="login()" type="button" value="Log In">
+                    </a>
                 </form>
         </div>
     </div>
diff --git a/apps/demo/cord-gui/src/main/webapp/app/view/login/login.js b/apps/demo/cord-gui/src/main/webapp/app/view/login/login.js
index e13a0ef..279ab4f 100644
--- a/apps/demo/cord-gui/src/main/webapp/app/view/login/login.js
+++ b/apps/demo/cord-gui/src/main/webapp/app/view/login/login.js
@@ -16,11 +16,25 @@
 
 (function () {
     'use strict';
+    var urlSuffix = '/rs/login';
 
     angular.module('cordLogin', [])
-        .controller('CordLoginCtrl', ['$log', '$scope',
-            function ($log, $scope) {
-            $scope.page.curr = 'login';
-            $log.debug('Cord Login Ctrl has been created.');
+        .controller('CordLoginCtrl', ['$log', '$scope', '$resource',
+            function ($log, $scope, $resource) {
+                var LoginData, resource;
+                $scope.page.curr = 'login';
+
+                $scope.login = function () {
+                    var email;
+                    if (!$scope.email) {
+                        email = 'mom@user.org';
+                    } else {
+                        email = $scope.email
+                    }
+                    LoginData = $resource($scope.shared.url + urlSuffix + '/' + email);
+                    resource = LoginData.get();
+                };
+
+                $log.debug('Cord Login Ctrl has been created.');
         }]);
 }());