<?php declare(strict_types=1); ?>

<!-- Container -->
<div class="container">

<div class="row">
  <div class="col">
    <h1 class="page-title"><?php echo xss($viewModel->pageTitle()); ?></h1>
  </div>
</div>

<!-- Display change password form -->
<div class="row justify-content-center">
  <div class="col-md-4">
    <form class="form-horizontal" action="<?php echo TFISH_URL; ?>password/" method="post" role="form" accept-charset="UTF-8">

      <!-- Password -->
      <div class="row justify-content-center">
        <div class="col-md-4 form-group input-group">
          <input type="password" class="form-control" name="password" id="password" placeholder="<?php echo TFISH_NEW_PASSWORD; ?>" required>
          <span class="input-group-text" id="password-addon"><i class="fas fa-lock"></i></span>
        </div>
      </div>

      <!-- Confirm Password -->
      <div class="row justify-content-center">
        <div class="col-md-4 form-group input-group">
          <input type="password" class="form-control" name="confirm" id="confirm" placeholder="<?php echo TFISH_CONFIRM_PASSWORD; ?>">
          <span class="input-group-text" id="password-addon"><i class="fas fa-lock"></i></span>
        </div>
      </div>

      <!-- Submit -->
      <div class="row justify-content-center">
        <div class="col-md-4 form-group input-group clearfix">
          <input type="hidden" name="token" value="<?php echo xss($_SESSION['token']); ?>" />
          <input type="hidden" name="action" value="submit" />
          <button type="submit" class="btn btn-primary float-start"><?php echo TFISH_SUBMIT ?></button>
        </div>
      </div>

    </form>
  </div>
</div>

</div><!-- /.container -->
