<?php echo $header; ?>

<section class="login content">

    <?php $user = filter_var(Input::previous('user'), FILTER_SANITIZE_STRING); ?>

  <form method="post" action="<?php echo Uri::to('admin/login'); ?>">
    <input name="token" type="hidden" value="<?php echo $token; ?>">

    <fieldset>
      <p><label for="label-user"><?php echo __('users.username'); ?>:</label>
          <?php echo Form::text('user', $user, [
              'id'             => 'label-user',
              'autocapitalize' => 'off',
              'autofocus'      => 'true',
              'placeholder'    => __('users.username')
          ]); ?></p>

      <p><label for="label-pass"><?php echo __('users.password'); ?>:</label>
          <?php echo Form::password('pass', [
              'id'           => 'pass',
              'placeholder'  => __('users.password'),
              'autocomplete' => 'off'
          ]); ?></p>

      <p class="buttons"><a
          href="<?php echo Uri::to('admin/amnesia'); ?>"><?php echo __('users.forgotten_password'); ?></a>
        <button type="submit"><?php echo __('global.login'); ?></button>
      </p>
    </fieldset>
  </form>

</section>

<?php echo $footer; ?>
