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

<div class="text-left">
    
    <!-- Display any warning messages -->
    <?php if (isset($output) && !empty($output)) echo $output; ?>
    
    <div class="text-center"><p><?php echo TFISH_INSTALLATION_GUIDE; ?></p></div>

    <form class="form-horizontal" name="installation" action="index.php" method="post" accept-charset="UTF-8">
        
      <!--- Admin email -->
      <div class="col-md-6 offset-md-3 form-group input-group">
        <input type="text" class="form-control is-valid" name="adminEmail" id="adminEmail" placeholder="<?php echo TFISH_INSTALLATION_ADMIN_EMAIL; ?>" required>
        <div class="input-group-append">
          <span class="input-group-text" id="email-addon"><i class="fas fa-at"></i></span>
        </div>
      </div>

      <!-- Admin password -->
      <div class="col-md-6 offset-md-3 form-group input-group">
        <input type="password" class="form-control is-valid" name="adminPassword" id="adminPassword" placeholder="<?php echo TFISH_INSTALLATION_ADMIN_PASSWORD; ?>" required>
        <div class="input-group-append">
          <span class="input-group-text" id="password-addon"><i class="fas fa-lock"></i></span>
        </div>
      </div>
      
      <!-- Database name -->
      <div class="col-md-6 offset-md-3 form-group input-group">
        <input type="text" class="form-control is-valid" name="dbName" id="dbName" placeholder="<?php echo TFISH_INSTALLATION_DB_NAME; ?>" required>
        <div class="input-group-append">
          <span class="input-group-text" id="db-addon"><i class="fas fa-database"></i></span>
        </div>
      </div>

      <!-- Submit -->
      <div class="col-md-6 offset-md-3 form-group input-group">
        <button type="submit" class="btn btn-primary float-left"><?php echo TFISH_SUBMIT ?></button>
      </div>

    </form>	
    
</div>