summaryrefslogtreecommitdiff
path: root/modules/auth/views
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-11-10 03:17:56 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-11-10 03:17:56 +0000
commit8858b957b05f9673ed29b6ad941cbeaefd29cd13 (patch)
tree8f49449a575e065e1adac29270ebf3c4d0730dcf /modules/auth/views
parent5e385398f00cd77ced7b91892c02c8c97db0848e (diff)
The start of the login functionality. It shows the login popup but doesn't do anything else. Just got tire of my changes being clobbered :-)
Diffstat (limited to 'modules/auth/views')
-rw-r--r--modules/auth/views/login.html.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/auth/views/login.html.php b/modules/auth/views/login.html.php
new file mode 100644
index 00000000..e2489db4
--- /dev/null
+++ b/modules/auth/views/login.html.php
@@ -0,0 +1,25 @@
+<div id="gLoginMenu">
+ <? if ($logged_in == false): ?>
+ <a href="<?=url::site("user/register") ?>"><?= _("Register") ?></a> |
+ <a href="#" id="login">Login</a>
+
+ <!-- @todo need a better way to get the javascript into the page. -->
+ <script type="text/javascript" src="<?=url::base() . "modules/auth/js/login.js" ?>"></script>
+ <!-- @todo integrate this into the theme. -->
+ <link rel="stylesheet" type="text/css" href="<?=url::base() . "modules/auth/css/login.css" ?>" media="screen,print,projection" />
+ <div id="gLoginPopup">
+ <a id="gLoginPopupClose">x</a>
+ <form id="gLogin" style="display:none;">
+ <label for="username">Username</label>
+ <input type="text" class="text" id="username" />
+ <label for="password">Password</label>
+ <input type="password" class="password" id="password" />
+ <input type="submit" class="submit" value="<?= url::site("auth/login") ?>" />
+ </form>
+ </div>
+ <? else: ?>
+ <a href="<?=url::site("auth/logout") ?>"><?= _("Logout") ?></a>
+ <? endif ?>
+
+
+</div> \ No newline at end of file