{#
 # ---------------------------------------------------------------------
 #
 # GLPI - Gestionnaire Libre de Parc Informatique
 #
 # http://glpi-project.org
 #
 # @copyright 2015-2025 Teclib' and contributors.
 # @licence   https://www.gnu.org/licenses/gpl-3.0.html
 #
 # ---------------------------------------------------------------------
 #
 # LICENSE
 #
 # This file is part of GLPI.
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation, either version 3 of the License, or
 # (at your option) any later version.
 #
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
 #
 # ---------------------------------------------------------------------
 #}

<h3>{{ __('Database connection setup') }}</h3>

<form action="install.php" method="post" data-submit-once>

   <div class="mb-3">
      <label for="db_host" class="form-label">{{ __('SQL server (MariaDB or MySQL)') }}</label>
      <input type="text" class="form-control" id="db_host" name="db_host">
   </div>

   <div class="mb-3">
      <label for="db_user" class="form-label">{{ __('SQL user') }}</label>
      <input type="text" class="form-control" id="db_user" name="db_user">
   </div>

   <div class="mb-3">
      <label for="db_pass" class="form-label">{{ __('SQL password') }}</label>
      <input type="password" class="form-control" id="db_pass" name="db_pass">
   </div>

   <button type="submit" name="submit" class="btn btn-primary">
      {{ __("Continue") }}
      <i class="fas fa-chevron-right ms-1"></i>
   </button>

   <input type="hidden" name="update" value="{{ update }}">
   <input type="hidden" name="install" value="Etape_2">
   <input type="hidden" name="_glpi_csrf_token" value="{{ csrf_token() }}">
</form>
