From 51b87be068b2c10339e963fa5ff9a9e179aba642 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Mon, 2 Dec 2013 15:15:55 +0000 Subject: [PATCH] Login view --- application/controllers/UserController.php | 11 ++- .../views/default/scripts/footer.phtml | 13 ++-- .../views/default/scripts/user/login.phtml | 4 + public/themes/default/styles/signin.css | 73 +++++++++++++++++++ 4 files changed, 89 insertions(+), 12 deletions(-) create mode 100644 public/themes/default/styles/signin.css diff --git a/application/controllers/UserController.php b/application/controllers/UserController.php index 0b8836c8..e31c5b72 100644 --- a/application/controllers/UserController.php +++ b/application/controllers/UserController.php @@ -7,6 +7,9 @@ class UserController extends Zend_Controller_Action */ public function loginAction() { + $this->view->headLink() + ->appendStylesheet('/themes/default/styles/signin.css', 'all'); + $this->view->inlineScript() ->appendFile('/libs/jquery/jquery-1.10.1.min.js') ->appendFile('/libs/jquery/jquery.infieldlabel.min.js'); @@ -74,14 +77,14 @@ class UserController extends Zend_Controller_Action { $this->_helper->layout()->disableLayout(); $this->_helper->viewRenderer->setNoRender(true); - + $lang = $this->getRequest()->getParam('lang', null); - + $auth = Zend_Auth::getInstance(); $identity = $auth->getIdentity(); - + $identity->langtmp = $lang; - + $auth->getStorage()->write($identity); } diff --git a/application/views/default/scripts/footer.phtml b/application/views/default/scripts/footer.phtml index 7abfbf3c..a9b31490 100644 --- a/application/views/default/scripts/footer.phtml +++ b/application/views/default/scripts/footer.phtml @@ -1,9 +1,6 @@ -<<<<<<< .working
-

© Scores & Décisions.

-
======= -

-Scores & Décisions SAS - - -

>>>>>>> .merge-right.r987 +

© Scores & Décisions. + + +

+ \ No newline at end of file diff --git a/application/views/default/scripts/user/login.phtml b/application/views/default/scripts/user/login.phtml index 5ac7035f..8c6c8355 100644 --- a/application/views/default/scripts/user/login.phtml +++ b/application/views/default/scripts/user/login.phtml @@ -23,6 +23,10 @@ + + inlineScript(); ?> diff --git a/public/themes/default/styles/signin.css b/public/themes/default/styles/signin.css new file mode 100644 index 00000000..271f9e95 --- /dev/null +++ b/public/themes/default/styles/signin.css @@ -0,0 +1,73 @@ +body { + background-color: #eee; +} + +html, +body { + height: 100%; + /* The html and body elements cannot have any padding or margin. */ +} + +/* Wrapper for page content to push down footer */ +#wrap { + min-height: 100%; + height: auto !important; + height: 100%; + /* Negative indent footer by its height */ + margin: 0 auto -60px; + /* Pad bottom by footer height */ + padding: 0 0 60px; +} + +#wrap > .container { + padding: 60px 15px 0; +} +.container .credit { + margin: 20px 0; +} + +/* Set the fixed height of the footer here */ +#footer { + height: 60px; + background-color: #f5f5f5; +} + +#footer > .container { + padding-left: 15px; + padding-right: 15px; +} + +.form-signin { + max-width: 330px; + padding: 15px; + margin: 0 auto; +} +.form-signin .form-signin-heading, +.form-signin .checkbox { + margin-bottom: 10px; +} +.form-signin .checkbox { + font-weight: normal; +} +.form-signin .form-control { + position: relative; + font-size: 16px; + height: auto; + padding: 10px; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.form-signin .form-control:focus { + z-index: 2; +} +.form-signin input[type="text"] { + margin-bottom: -1px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} +.form-signin input[type="password"] { + margin-bottom: 10px; + border-top-left-radius: 0; + border-top-right-radius: 0; +} \ No newline at end of file