diff options
author | raylu <raylu@mixpanel.com> | 2011-07-10 17:31:57 -0700 |
---|---|---|
committer | raylu <raylu@mixpanel.com> | 2011-07-10 17:36:52 -0700 |
commit | de4d4edbcd7a6920d628d466283a7cc781a1e946 (patch) | |
tree | 1676c63304b41bdc7d7c2155bc91784aac678c0b /views/users | |
parent | 461ada92d70011c5de9673723668d8de185e0fcb (diff) | |
download | otakuhub-de4d4edbcd7a6920d628d466283a7cc781a1e946.tar.xz |
use signup style for login page; add remember me to login popup
Diffstat (limited to 'views/users')
-rw-r--r-- | views/users/login.html.php | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/views/users/login.html.php b/views/users/login.html.php index 0bfb2c5..39b6a4f 100644 --- a/views/users/login.html.php +++ b/views/users/login.html.php @@ -1,7 +1,21 @@ -<?=$this->flashMessage->output(); ?> -<?=$this->form->create(); ?> - <?=$this->form->field('username'); ?> - <?=$this->form->field('password', array('type' => 'password')); ?> - <?=$this->form->field('remember', array('type' => 'checkbox')); ?> - <?=$this->form->submit('Login!'); ?> -<?=$this->form->end(); ?>
\ No newline at end of file +<?php +$this->styles($this->html->style("/css/login_signup.css")); + +$template = '<tr{:wrap}><td>{:label}</td><td>{:input}</td><td>{:error}</td></tr>'; +?> + +<?= $this->flashMessage->output() ?> + +<div id="login_signup"> +<?= $this->form->create() ?> + <table> + <?= $this->form->field('username', + array('template' => $template, 'id' => 'l_username')) ?> + <?= $this->form->field('password', + array('template' => $template, 'type' => 'password', 'id' => 'l_password')) ?> + <?= $this->form->field('remember', + array('template' => $template, 'type' => 'checkbox', 'id' => 'l_remember')) ?> + </table> + <?= $this->form->submit('Login!') ?> +<?= $this->form->end(); ?> +</div> |