summaryrefslogtreecommitdiffstats
path: root/views/signup/index.html.php
blob: f7929f85377826819dbc4df71ffc629af986c18e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
$this->styles($this->html->style("/css/login_signup.css"));

if (isset($key))
{
	echo "Confirmation Link: ";
	echo $this->html->link("Link", array('controller' => 'signup',
										 'action' => 'confirm',
						     			 'args' => $key->key));
}
else
{
	$template = '<tr{:wrap}><td>{:label}</td><td>{:input}</td><td>{:error}</td></tr>';
	?>
	<?= $this->flashMessage->output(); ?>


	<div id="login_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', 'type' => 'password')) ?>
			<?= $this->form->field('email',
					array('template' => $template, 'id' => 's_email')) ?>
		</table>
	<?= $this->form->submit('Signup!'); ?>
	<?= $this->form->end(); ?>
	</div>
<?php
}
?>