summaryrefslogtreecommitdiffstats
path: root/application/views
diff options
context:
space:
mode:
Diffstat (limited to 'application/views')
-rw-r--r--application/views/user/invite.php2
-rw-r--r--application/views/user/register.php26
2 files changed, 27 insertions, 1 deletions
diff --git a/application/views/user/invite.php b/application/views/user/invite.php
index f97804274..968315ac9 100644
--- a/application/views/user/invite.php
+++ b/application/views/user/invite.php
@@ -5,6 +5,6 @@
<p>Unused invitation keys:</p>
<p>
<?php foreach($query as $key => $item): ?>
- <?php echo $item["key"]; ?><br />
+ <?php echo anchor("user/register/".$item["key"], $item["key"]); ?><br />
<?php endforeach; ?>
</p>
diff --git a/application/views/user/register.php b/application/views/user/register.php
new file mode 100644
index 000000000..78af46e96
--- /dev/null
+++ b/application/views/user/register.php
@@ -0,0 +1,26 @@
+<?php if (!empty($error)) {
+ echo "<p>";
+ echo implode("<br />\n", $error);
+ echo "</p>";
+} ?>
+<?php echo form_open('user/register/'.$key); ?>
+ <table>
+ <tr>
+ <td>Username</td>
+ <td> <input type="text" name="username" value="<?=$values["username"]; ?>" /></td>
+ </tr><tr>
+ <td>Email</td>
+ <td> <input type="text" name="email" value="<?=$values["email"]; ?>" /></td>
+ </tr><tr>
+ <td>Password</td>
+ <td> <input type="password" name="password" /></td>
+ </tr><tr>
+ <td>Confirm password</td>
+ <td> <input type="password" name="password_confirm" /></td>
+ </tr><tr>
+ <td></td>
+ <td><input type="submit" value="Register" name="process" /></td>
+ </tr>
+ </table>
+</form>
+