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>
|
2021-09-20 15:45:38 +00:00
|
|
|
<Heading tagName="h1"><?= lang(
|
2023-02-22 16:29:45 +00:00
|
|
|
'Install.form.database_config',
|
|
|
|
) ?></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>
|
|
|
|
|
|
|
|
<Forms.Field
|
|
|
|
name="db_hostname"
|
|
|
|
label="<?= lang('Install.form.db_hostname') ?>"
|
|
|
|
value="<?= config('Database')
|
|
|
|
->default['hostname'] ?>"
|
|
|
|
required="true" />
|
|
|
|
|
|
|
|
<Forms.Field
|
|
|
|
name="db_name"
|
|
|
|
label="<?= lang('Install.form.db_name') ?>"
|
|
|
|
value="<?= config('Database')->default['database'] ?>"
|
|
|
|
required="true" />
|
|
|
|
|
|
|
|
<Forms.Field
|
|
|
|
name="db_username"
|
|
|
|
label="<?= lang('Install.form.db_username') ?>"
|
|
|
|
value="<?= config('Database')->default['username'] ?>"
|
|
|
|
required="true"
|
|
|
|
autocomplete="off" />
|
|
|
|
|
|
|
|
<Forms.Field
|
|
|
|
name="db_password"
|
|
|
|
label="<?= lang('Install.form.db_password') ?>"
|
|
|
|
value="<?= config('Database')->default['password'] ?>"
|
|
|
|
type="password"
|
|
|
|
required="true"
|
|
|
|
autocomplete="off" />
|
|
|
|
|
|
|
|
<Forms.Field
|
|
|
|
name="db_prefix"
|
|
|
|
label="<?= lang('Install.form.db_prefix') ?>"
|
|
|
|
hint="<?= lang('Install.form.db_prefix_hint') ?>"
|
|
|
|
value="<?= config('Database')->default['DBPrefix'] ?>" />
|
|
|
|
|
|
|
|
<Button variant="primary" type="submit" class="self-end" iconRight="arrow-right"><?= lang('Install.form.next') ?></Button>
|
|
|
|
|
|
|
|
</form>
|
2020-10-08 16:38:30 +00:00
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|