Changeset a151cadb204796478796e90e9f8e96e679cc66a0
- Timestamp:
- 08/07/11 14:33:59 (10 months ago)
- Author:
- Xemle <xemle@phtagr.org>
- Children:
- 907a0bad7bc78fb0dfa42ae4e77417288294d680
- Parents:
- b68035bccb671cc1bfb479f6e1968c3cf5579d7e
- git-author:
- Xemle <xemle@phtagr.org> / 2011-08-07T14:33:10Z+0200
- git-committer:
- Xemle <xemle@phtagr.org> / 2011-08-07T14:33:59Z+0200
- Message:
-
Improve login screen
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r850e6a1
|
ra151cad
|
|
| 41 | 41 | )); |
| 42 | 42 | } |
| | 43 | $this->layout = 'backend'; |
| 43 | 44 | } |
| 44 | 45 | |
| 45 | 46 | function beforeRender() { |
| 46 | | $this->layout = 'backend'; |
| 47 | 47 | parent::beforeRender(); |
| 48 | 48 | } |
| … |
… |
|
| 168 | 168 | } |
| 169 | 169 | $this->set('register', $this->Option->getValue($this->getUser(), 'user.register.enable', 0)); |
| | 170 | $this->layout = 'default'; |
| 170 | 171 | } |
| 171 | 172 | |
-
|
r6d8e7c4
|
ra151cad
|
|
| 1 | 1 | <?php echo $session->flash(); ?> |
| 2 | 2 | |
| 3 | | <?php echo $form->create('User', array('action' => 'login')); ?> |
| | 3 | <?php echo $form->create('User', array('action' => 'login', 'class' => 'login')); ?> |
| 4 | 4 | <fieldset> |
| 5 | 5 | <legend><?php __('Login'); ?></legend> |
| … |
… |
|
| 11 | 11 | <?php |
| 12 | 12 | $signup = ''; |
| | 13 | echo $form->submit(__('Login', true)); |
| | 14 | echo $html->link(__('Forgot your password', true), 'password'); |
| 13 | 15 | if ($register) { |
| 14 | | $signup = $html->link(__('Sign Up', true), 'register'); |
| | 16 | echo $html->link(__('Sign Up', true), 'register'); |
| 15 | 17 | } |
| 16 | | echo $html->tag('ul', |
| 17 | | $html->tag('li', $form->submit(__('Login', true)), array('escape' => false)) |
| 18 | | . $html->tag('li', $html->link(__('Forgot your password', true), 'password'), array('escape' => false)) |
| 19 | | . $signup, |
| 20 | | array('class' => 'buttons', 'escape' => false)); |
| 21 | 18 | echo $form->end(); |
| | 19 | $script = <<<'JS' |
| | 20 | (function($) { |
| | 21 | $(document).ready(function() { |
| | 22 | $(':submit').button(); |
| | 23 | $('.message').addClass("ui-widget ui-corner-all ui-state-highlight"); |
| | 24 | }); |
| | 25 | })(jQuery); |
| | 26 | JS; |
| | 27 | echo $this->Html->scriptBlock($script, array('inline' => false)); |
| 22 | 28 | ?> |
-
|
r89daa06
|
ra151cad
|
|
| 35 | 35 | border: 0 |
| 36 | 36 | > legend |
| | 37 | color: white |
| | 38 | +column(6, true) |
| 37 | 39 | font-family: Ubuntu-bold |
| 38 | | width: 81.5% |
| 39 | | border-bottom: 1px solid darken(white, 10%) |
| | 40 | text-align: right |
| 40 | 41 | > div |
| 41 | 42 | padding: 5px 0 |
| … |
… |
|
| 81 | 82 | > .submit, > div > .submit |
| 82 | 83 | +prepend(6) |
| | 84 | |
| | 85 | form.login |
| | 86 | +column(6) |
| | 87 | +prepend(8) |
| | 88 | margin: 20px 0 30px 0 |
| | 89 | legend |
| | 90 | text-align: left |
| | 91 | margin: 0 |
| | 92 | font-size: 15pt |
| | 93 | fieldset |
| | 94 | label |
| | 95 | +column(6) |
| | 96 | text-align: left |
| | 97 | input[type=text], |
| | 98 | input[type=password] |
| | 99 | padding: 4px |
| | 100 | clear: left |
| | 101 | font-size: 15pt |
| | 102 | > div.submit |
| | 103 | display: inline-block |
| | 104 | padding: 0 10px 0 0 |
| | 105 | input[type=submit] |
-
|
r1d64c4b
|
ra151cad
|
|
| 101 | 101 | display: block |
| 102 | 102 | +border-radius(5px) |
| 103 | | margin: 20px |
| 104 | 103 | padding: 10px |
| 105 | 104 | background-color: #efffd0 |
| 106 | | +linear-gradient(colour-stops(#efffd0, darken(#ffd, 20%))) |
| 107 | 105 | border: 1px solid darken(#ffd, 20%) |
| 108 | | +box-shadow(#cda, 2px, 2px, 1px) |