<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Please login ...</title>
<style type="text/css">
body {
text-align: center;
}
#wrapper {
margin-left: auto;
margin-right: auto;
width: 960px;
}
#content {
text-align: left;
}
.msg {
padding: 20px;
width: 100%;
min-height: 50px;
}
.msg.error {
border: 1px dashed red;
background-color: #FF6666;
}
.msg.success {
border: 1px dashed green;
background-color: #66FF66;
}
#header {
background-color: #282828;
height: 150px;
}
#header a {
color: white;
}
form input{
width: 400px;
display: block;
}
form label{
display: block;
font-weight: bold;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="header">
<h1>Login</h1>
</div>
<div id="content">
<?php if (count($view->getMessages()) > 0):?>
<?php foreach($view->getMessages() as $message):?>
<?php if ($message instanceof \gnomephp\message\ErrorMessage):?>
<div class="msg error">
<?php echo $message; ?>
</div>
<?php endif;?>
<?php if ($message instanceof \gnomephp\message\SuccessMessage):?>
<div class="msg success">
<?php echo $message; ?>
</div>
<?php endif;?>
<?php endforeach;?>
<?php endif;?>
<form action="<?php echo $view->url->linkTo('security_login')?>" method="post">
<fieldset>
<label for="username">Username</label>
<input type="text" id="username" name="username" value="" />
<label for="password">Password</label>
<input type="password" id="password" name="password" value="" />
<input type="submit" value="Login" />
</fieldset>
</form>
</div>
</div>
</body>