2021-09-02 16:34:25 +00:00
|
|
|
<?= $this->extend('_layout') ?>
|
2020-10-08 16:38:30 +00:00
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2021-09-20 15:45:38 +00:00
|
|
|
<form action="<?= route_to('database-config') ?>" method="POST" class="flex flex-col w-full max-w-sm gap-y-4" autocomplete="off">
|
2020-10-08 16:38:30 +00:00
|
|
|
<?= csrf_field() ?>
|
|
|
|
|
2021-09-20 15:45:38 +00:00
|
|
|
<div class="flex flex-col mb-2">
|
|
|
|
<div class="flex items-center">
|
2021-11-05 14:36:34 +00:00
|
|
|
<span class="inline-flex items-center justify-center w-12 h-12 mr-2 text-sm font-semibold tracking-wider border-4 rounded-full text-accent-base border-accent-base">2/4</span>
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Heading tagName="h1"><?= lang(
|
2023-02-22 16:29:45 +00:00
|
|
|
'Install.form.database_config',
|
2024-05-09 17:55:41 +00:00
|
|
|
) ?></x-Heading>
|
2021-09-20 15:45:38 +00:00
|
|
|
</div>
|
2020-10-08 16:38:30 +00:00
|
|
|
|
2021-11-05 14:36:34 +00:00
|
|
|
<p class="mt-2 text-sm text-skin-muted"><?= lang(
|
2023-02-22 16:29:45 +00:00
|
|
|
'Install.form.database_config_hint',
|
|
|
|
) ?></p>
|
2021-09-20 15:45:38 +00:00
|
|
|
</div>
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-09-20 15:45:38 +00:00
|
|
|
name="db_hostname"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Install.form.db_hostname')) ?>"
|
2024-04-28 16:39:01 +00:00
|
|
|
value="<?= config('Database')->default['hostname'] ?>"
|
2024-05-09 17:55:41 +00:00
|
|
|
isRequired="true"
|
2023-08-21 16:13:03 +00:00
|
|
|
/>
|
2021-09-20 15:45:38 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-09-20 15:45:38 +00:00
|
|
|
name="db_name"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Install.form.db_name')) ?>"
|
2024-04-28 16:39:01 +00:00
|
|
|
value="<?= config('Database')->default['database'] ?>"
|
2024-05-09 17:55:41 +00:00
|
|
|
isRequired="true" />
|
2021-09-20 15:45:38 +00:00
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-09-20 15:45:38 +00:00
|
|
|
name="db_username"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Install.form.db_username')) ?>"
|
2024-04-28 16:39:01 +00:00
|
|
|
value="<?= config('Database')->default['username'] ?>"
|
2024-05-09 17:55:41 +00:00
|
|
|
isRequired="true"
|
2021-09-20 15:45:38 +00:00
|
|
|
autocomplete="off" />
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-09-20 15:45:38 +00:00
|
|
|
name="db_password"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Install.form.db_password')) ?>"
|
2024-04-28 16:39:01 +00:00
|
|
|
value="<?= config('Database')->default['password'] ?>"
|
2021-09-20 15:45:38 +00:00
|
|
|
type="password"
|
2024-05-09 17:55:41 +00:00
|
|
|
isRequired="true"
|
2021-09-20 15:45:38 +00:00
|
|
|
autocomplete="off" />
|
|
|
|
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Forms.Field
|
2021-09-20 15:45:38 +00:00
|
|
|
name="db_prefix"
|
2024-01-24 16:48:23 +00:00
|
|
|
label="<?= esc(lang('Install.form.db_prefix')) ?>"
|
|
|
|
hint="<?= esc(lang('Install.form.db_prefix_hint')) ?>"
|
2024-04-28 16:39:01 +00:00
|
|
|
value="<?= config('Database')->default['DBPrefix'] ?>" />
|
2024-12-17 15:06:08 +00:00
|
|
|
<?php // @icon("arrow-right-fill")?>
|
2024-05-09 17:55:41 +00:00
|
|
|
<x-Button variant="primary" type="submit" class="self-end" iconRight="arrow-right-fill"><?= lang('Install.form.next') ?></x-Button>
|
2021-09-20 15:45:38 +00:00
|
|
|
|
|
|
|
</form>
|
2020-10-08 16:38:30 +00:00
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|