Archived
1
0

added login thing

This commit is contained in:
nilsding
2014-08-18 15:30:09 +02:00
parent 4a9bf1565d
commit 780651e8b3
4 changed files with 50 additions and 4 deletions

View File

@@ -4,10 +4,10 @@
{if="$message"}
<div class="alert alert-info">{$message}</div>
{/if}
<form role="form" method="POST">
<form role="form" method="POST" action="ucp.php?page=login">
<div class="form-group">
<label for="InputUsername">Username</label>
<input type="text" class="form-control" id="InputUsername" name="user_name" placeholder="Enter username">
<input type="text" class="form-control" id="InputUsername" name="username" placeholder="Enter username">
</div>
<div class="form-group">
<label for="InputPassword">Password</label>

View File

@@ -18,8 +18,10 @@
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{$user_name}<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="ucp.php">Inbox{if="$new_words_count > 0"}{$new_words_count}{/if}</a></li>
<li><a href="ucp.php">Inbox{if="$new_words_count > 0"} ({$new_words_count}){/if}</a></li>
<li><a href="ucp.php?page=settings">Settings</a></li>
<li class="divider"></li>
<li><a href="ucp.php?page=logout">Logout</a></li>
{else}
<li><a href="ucp.php?page=login">Login</a></li>
{/if}