mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-19 15:53:21 +02:00
60 lines
1.7 KiB
PHP
60 lines
1.7 KiB
PHP
<?= $this->extend('_layout') ?>
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<form action="<?= route_to('database-config') ?>" method="POST" class="flex flex-col w-full max-w-sm gap-y-4" autocomplete="off">
|
|
<?= csrf_field() ?>
|
|
|
|
<div class="flex flex-col mb-2">
|
|
<div class="flex items-center">
|
|
<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-pine-700 border-pine-700">2/4</span>
|
|
<Heading tagName="h1"><?= lang(
|
|
'Install.form.database_config',
|
|
) ?></Heading>
|
|
</div>
|
|
|
|
<p class="mt-2 text-sm text-gray-600"><?= lang(
|
|
'Install.form.database_config_hint',
|
|
) ?></p>
|
|
</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>
|
|
|
|
<?= $this->endSection() ?>
|