2020-08-12 22:03:45 +02:00
|
|
|
<?= $this->extend('install/_layout') ?>
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2020-08-14 20:27:57 +02:00
|
|
|
<?= form_open(route_to('create-superadmin'), [
|
2020-08-12 22:03:45 +02:00
|
|
|
'class' => 'flex flex-col max-w-sm mx-auto',
|
|
|
|
]) ?>
|
2020-08-14 20:27:57 +02:00
|
|
|
<?= csrf_field() ?>
|
2020-08-12 22:03:45 +02:00
|
|
|
|
|
|
|
<?= form_fieldset('', ['class' => 'flex flex-col mb-6']) ?>
|
|
|
|
<legend class="mb-4 text-xl"><?= lang(
|
|
|
|
'Install.form.create_superadmin'
|
|
|
|
) ?></legend>
|
|
|
|
<?= form_label(lang('Install.form.email'), 'email') ?>
|
|
|
|
<?= form_input([
|
|
|
|
'id' => 'email',
|
|
|
|
'name' => 'email',
|
|
|
|
'class' => 'form-input mb-4',
|
|
|
|
'type' => 'email',
|
2020-08-14 20:27:57 +02:00
|
|
|
'required' => 'required',
|
|
|
|
'value' => old('email'),
|
2020-08-12 22:03:45 +02:00
|
|
|
]) ?>
|
|
|
|
|
|
|
|
<?= form_label(lang('Install.form.username'), 'username') ?>
|
|
|
|
<?= form_input([
|
|
|
|
'id' => 'username',
|
|
|
|
'name' => 'username',
|
|
|
|
'class' => 'form-input mb-4',
|
2020-08-14 20:27:57 +02:00
|
|
|
'required' => 'required',
|
|
|
|
'value' => old('username'),
|
2020-08-12 22:03:45 +02:00
|
|
|
]) ?>
|
|
|
|
|
|
|
|
<?= form_label(lang('Install.form.password'), 'password') ?>
|
|
|
|
<?= form_input([
|
|
|
|
'id' => 'password',
|
|
|
|
'name' => 'password',
|
2020-08-14 20:27:57 +02:00
|
|
|
'class' => 'form-input mb-4',
|
2020-08-12 22:03:45 +02:00
|
|
|
'type' => 'password',
|
2020-08-14 20:27:57 +02:00
|
|
|
'required' => 'required',
|
|
|
|
'autocomplete' => 'new-password',
|
2020-08-12 22:03:45 +02:00
|
|
|
]) ?>
|
|
|
|
<?= form_fieldset_close() ?>
|
|
|
|
|
2020-10-02 17:38:16 +02:00
|
|
|
<?= button(
|
|
|
|
lang('Install.form.submit_create_superadmin'),
|
|
|
|
null,
|
|
|
|
['variant' => 'primary'],
|
|
|
|
['type' => 'submit', 'class' => 'self-end']
|
|
|
|
) ?>
|
2020-08-12 22:03:45 +02:00
|
|
|
|
|
|
|
<?= form_close() ?>
|
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|