summaryrefslogtreecommitdiffstats
path: root/views/users/signup.html.php
blob: 920827aa80d5d25dbe2c9a6299ca6d18459a3ac9 (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
<?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>
-->