<?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 -->
<form class="form-horizontal" action="<?php echo TFISH_URL; ?>password/" method="post" role="form" accept-charset="UTF-8">

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

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

<!-- Submit -->
<div class="form-group is-valid col-md-4 offset-md-4 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-left"><?php echo TFISH_SUBMIT ?></button>
</div>

</form>

</div>
