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

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

<div class="row justify-content-center">
  <div class="col">
    <?php if (isset($pageTitle)): ?>
    <div class="text-center"><h1><?php echo $pageTitle; ?></h1></div>
    <?php endif; ?>

    <!-- Display any warning messages -->
    <?php if (isset($output) && !empty($output)) echo '<div>' . $output . '</div>'; ?>
  </div>
</div>

<div class="row justify-content-center">
  <div class="col text-center">
    <p><?php echo TFISH_INSTALLATION_GUIDE; ?></p>
  </div>
</div>

<div class="row justify-content-center">
  <div class="col-md-6">
    <form class="form-horizontal" name="installation" action="index.php" method="post" accept-charset="UTF-8">

      <!--- Admin email -->
      <div class="row justify-content-center">
      <div class="col-md-6 form-group input-group">
        <input type="text" class="form-control" name="adminEmail" id="adminEmail" placeholder="<?php echo TFISH_INSTALLATION_ADMIN_EMAIL; ?>" required>
        <span class="input-group-text" id="email-addon"><i class="fas fa-at"></i></span>
      </div>
      </div>

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

      <!-- Database name -->
      <div class="row justify-content-center">
      <div class="col-md-6 form-group input-group">
        <input type="text" class="form-control" name="dbName" id="dbName" placeholder="<?php echo TFISH_INSTALLATION_DB_NAME; ?>" required>
        <span class="input-group-text" id="db-addon"><i class="fas fa-database"></i></span>
      </div>
      </div>

      <!-- Submit -->
      <div class="row justify-content-center">
      <div class="col-md-6 form-group input-group">
        <button type="submit" class="btn btn-primary float-start"><?php echo TFISH_SUBMIT ?></button>
      </div>
      </div>

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

</div>