<?php
$thisPage="start";
include __DIR__ . "/../layout/header.php";
include __DIR__ . "/../layout/css/navi.css";
$blog = False;
$blog = True;?>
<!--Blog/views/user/login.php-->

<div class="container">
  <div class="starter-template">
    <h1>Login main</h1>

      <?php if (!empty($error)): ?>
        <p>
          <?php echo "Die Kombination aus Benutzername und Passwort ist falsch!"; // wird im LoginController gesetzt?>
        </p>
      <?php endif ?>

      <form method="POST" method "login" class="form-horizontal">
        <div class="form-group">
          <label class="control-label col-md-3">
            Benutzername:
          </label>
          <div class="col-md-9">
            <input type="text" name="username" class="form-control" />
          </div>
        </div>

        <div class="form-group">
          <label class="control-label col-md-3">
            Passwort:
          </label>
          <div class="col-md-9">
            <input type="password" name="password" class="form-control" />
          </div>
        </div>

        <input type="submit" value="Einloggen" class="btn btn-primary" />
      </form>
  </div>
</div>

<?php
  include __DIR__ . "/../layout/footer.php";
?>
