zncstrap/webskins/_default_/tmpl/LoginBar.tmpl
2014-05-21 15:41:26 +08:00

23 lines
1.0 KiB
Cheetah

<div class="container" style="padding-top: 30px">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<? IF LoggedIn ?>
<center><a href="<? VAR URIPrefix TOP ?>/logout" class="btn btn-danger"><i class="fa fa-sign-out"></i> Sign Out</a></center><hr>
<? ELSE IF !ModName && PageName == "login" ?>
<span class="logoutbox">&nbsp;</span>
<? ELSE ?>
<div class="main">
<form role="form" action="<? VAR URIPrefix TOP ?>/login" method="post">
<div class="form-group">
<input type="text" class="form-control input-lg" id="inputUsername" name="user" required="required" placeholder="Username" autocomplete="off">
</div>
<div class="form-group">
<input type="password" class="form-control input-lg" id="inputPassword" name="pass" required="required" placeholder="Password" autocomplete="off">
</div>
<button type="submit" class="btn btn-primary pull-right" name="submitted" value="1"><i class="fa fa-sign-in"></i> Sign In</button>
</form>
</div>
<? ENDIF ?>
</div>
</div>
</div>