diff options
| author | Nathan Kinkade <nath@nkinka.de> | 2008-03-08 20:38:37 +0000 |
|---|---|---|
| committer | Nathan Kinkade <nath@nkinka.de> | 2008-03-08 20:38:37 +0000 |
| commit | 11dda4516fd699bed0dbea92e8e8976f199e31da (patch) | |
| tree | 6aa945dd61ac6444ca4bb58fe41b5003d5abf627 | |
| parent | 71d8569f0c49ca79c93a1eb3bc9130e862261911 (diff) | |
Rearrange header so that login and logout elements look and align better.
| -rw-r--r-- | css/site.css | 6 | ||||
| -rw-r--r-- | templates/header.tpl | 23 |
2 files changed, 18 insertions, 11 deletions
diff --git a/css/site.css b/css/site.css index 5daa63e..03a3b26 100644 --- a/css/site.css +++ b/css/site.css @@ -137,6 +137,12 @@ a:hover.whiteLink { text-decoration: underline; } +#loginLeft { + float: left; + text-align: right; + margin-right: 1em; +} + #systemMsgs { position: absolute; width: 59%; diff --git a/templates/header.tpl b/templates/header.tpl index ca7371d..2f08cdd 100644 --- a/templates/header.tpl +++ b/templates/header.tpl @@ -17,23 +17,24 @@ </div> {if isset($isLoggedIn)} - <div id='headerMiddle'></div> <div id='headerRight'> Hi {$smarty.session.user.username|escape:"html"}.<br /> [<a href='logout.php'>Logout</a>] </div> {else} - <form action='login.php' method='post' id='loginForm' onsubmit='return validateLoginFields();'> - <div id='headerMiddle'> - Login <input type='text' name='username' id='username' size='15' maxlength='25' /><br /> - Password <input type='password' name='password' id='password' size='15' maxlength='25' /> - </div> - <div id='headerRight'> - <input type='submit' name='doLogin' value='Login' style='margin-bottom: 1ex;' /><br /> - <a href='register.php'>Register</a>. - </div> - </form> + <div id='headerRight'> + <form action='login.php' method='post' id='loginForm' onsubmit='return validateLoginFields();'> + <div id='loginLeft'> + Login <input type='text' name='username' id='username' size='15' maxlength='25' /><br /> + Password <input type='password' name='password' id='password' size='15' maxlength='25' /> + </div> + <div id='loginRight'> + <input type='submit' name='doLogin' value='Login' style='margin-bottom: 1ex;' /><br /> + <a href='register.php'>Register</a>. + </div> + </form> + </div> {/if} <div id='headerLinkBar'> |
