summaryrefslogtreecommitdiffstats
path: root/views/users/signup.html.php
blob: 185fcae5a8fd726b275ab05e563616666b08f309 (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
34
35
36
37
38
39
40
41
<?php
$this->styles($this->html->style("/css/signup.css"));
?>

<?php if (isset($key)): ?>
Confirmation Link: <a href="<?=$link ?>/<?=$key->key ?>"> Link </a>
<?php else: ?>
<?php if(isset($user)): ?>
<?=$this->form->create($user); ?>
<?php else: ?>
<?=$this->form->create(); ?>
<?php endif; ?>
	<?=$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; ?>

<!--
	<div id="signup">
		<h2>Sign up:</h2>
		<form method="post" action="/users/signup">
			<table>
				<tr>
					<td><label for="username">Username</label></td>
					<td><input type="text" name="username" id="username">
				</tr>
				<tr>
					<td><label for="password">Password</label></td>
					<td><input type="password" id="password" name="password"></td>
				</tr>
				<tr>
					<td><label for="email">Email</label></td>
					<td><input type="text" id="email" name="email"></td>
				</tr>
			</table>
			<input class="button green" type="submit" value="Sign up">
		</form>
	</div>
-->