diff options
author | raylu <raylu@mixpanel.com> | 2011-07-10 15:49:34 -0700 |
---|---|---|
committer | raylu <raylu@mixpanel.com> | 2011-07-10 15:49:34 -0700 |
commit | d4b6945d87550ea6862aa4c00677ba9074585900 (patch) | |
tree | 85e0e4208007c3ffcfb027e93f7925fa103b2271 /views | |
parent | 033553d6f2dcc820cf424f082403944ee3aa83c1 (diff) | |
download | otakuhub-d4b6945d87550ea6862aa4c00677ba9074585900.tar.xz |
Style signup page
Diffstat (limited to 'views')
-rw-r--r-- | views/signup/index.html.php | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/views/signup/index.html.php b/views/signup/index.html.php index 5b26977..dd262e0 100644 --- a/views/signup/index.html.php +++ b/views/signup/index.html.php @@ -2,16 +2,31 @@ $this->styles($this->html->style("/css/signup.css")); ?> -<?php if (isset($key)): ?> -Confirmation Link: <a href="<?=$link ?>/<?=$key->key ?>"> Link </a> -<?php else: ?> -<?=$this->flashMessage->output(); ?> +<?php +if (isset($key)) +{ + echo "Confirmation Link: <a href=\"<?=$link ?>/<?=$key->key ?>\"> Link </a>"; +} +else +{ + $template = '<tr{:wrap}><td>{:label}</td><td>{:input}</td><td>{:error}</td></tr>'; + ?> + <?= $this->flashMessage->output(); ?> -<?=$this->form->create($user); ?> - <?=$this->form->field('username'); ?> - <?=$this->form->field('newpass', array('type' => 'password', 'label' => 'password')); ?> - <?=$this->form->field('email'); ?> - <?=$this->form->submit('Signup!'); ?> -<?=$this->form->end(); ?> -<?php endif; ?>
\ No newline at end of file + <div id="signup"> + <?= $this->form->create($user); ?> + <table> + <?= $this->form->field('username', + array('template' => $template, 'id' => 's_username')) ?> + <?= $this->form->field('newpass', + array('template' => $template, 'id' => 's_password', 'label' => 'Password')) ?> + <?= $this->form->field('email', + array('template' => $template, 'id' => 's_email')) ?> + </table> + <?= $this->form->submit('Signup!'); ?> + <?= $this->form->end(); ?> + </div> +<?php +} +?> |