ZwiiCMS/core/module/install/view/postinstall/postinstall.php

122 lines
3.1 KiB
PHP
Raw Normal View History

2022-09-21 15:09:25 +02:00
<p>
<?php echo helper::translate('Renseignez les champs ci-dessous pour finaliser l\'installation.'); ?>
2022-09-21 15:09:25 +02:00
</p>
<?php echo template::formOpen('installForm'); ?>
2023-04-12 21:38:12 +02:00
<div class="row">
<div class="col12">
<details open>
<summary>
<span class="title">
<?php echo helper::translate('Compte administrateur'); ?>
</span>
</summary>
<div class="row">
2023-06-12 21:13:33 +02:00
<div class="col6">
<?php echo template::text('installFirstname', [
2023-04-12 21:38:12 +02:00
'autocomplete' => 'off',
2023-06-12 21:13:33 +02:00
'label' => 'Prénom'
2023-04-12 21:38:12 +02:00
]); ?>
</div>
<div class="col6">
2023-06-12 21:13:33 +02:00
<?php echo template::text('installLastname', [
2023-04-12 21:38:12 +02:00
'autocomplete' => 'off',
2023-06-12 21:13:33 +02:00
'label' => 'Nom'
2023-04-12 21:38:12 +02:00
]); ?>
</div>
2023-06-12 21:13:33 +02:00
</div>
<div class="row">
2023-04-12 21:38:12 +02:00
<div class="col6">
2023-06-12 21:13:33 +02:00
<?php echo template::text('installId', [
2023-04-12 21:38:12 +02:00
'autocomplete' => 'off',
2023-06-12 21:13:33 +02:00
'label' => 'Identifiant'
2023-04-12 21:38:12 +02:00
]); ?>
</div>
2023-06-12 21:13:33 +02:00
<div class="col6">
2023-04-12 21:38:12 +02:00
<?php echo template::mail('installMail', [
'autocomplete' => 'off',
'label' => 'Adresse électronique'
]); ?>
</div>
</div>
<div class="row">
<div class="col6">
2023-06-12 21:13:33 +02:00
<?php echo template::password('installPassword', [
2023-04-12 21:38:12 +02:00
'autocomplete' => 'off',
2023-06-12 21:13:33 +02:00
'label' => 'Mot de passe'
2023-04-12 21:38:12 +02:00
]); ?>
</div>
<div class="col6">
2023-06-12 21:13:33 +02:00
<?php echo template::password('installConfirmPassword', [
2023-04-12 21:38:12 +02:00
'autocomplete' => 'off',
2023-06-12 21:13:33 +02:00
'label' => 'Confirmation'
2023-04-12 21:38:12 +02:00
]); ?>
2022-09-21 15:09:25 +02:00
</div>
</div>
2023-04-12 21:38:12 +02:00
</details>
</div>
</div>
<div class="row">
<div class="col12">
<details close>
<summary>
<span class="title">
<?php echo helper::translate('Options avancées'); ?>
</span>
</summary>
2023-06-12 21:08:33 +02:00
<?php if ($_SESSION['ZWII_UI'] === 'fr_FR'): ?>
2023-04-12 21:38:12 +02:00
<div class="row">
<div class="col12">
<?php echo template::checkbox('installDefaultData', true, 'Ne pas charger l\'exemple de site (utilisateurs avancés)', [
'checked' => false
]);
?>
</div>
</div>
<?php endif; ?>
2022-09-21 15:09:25 +02:00
<div class="row">
<div class="col3">
<?php echo template::select('installProxyType', $module::$proxyType, [
'label' => 'Type de proxy'
]); ?>
</div>
<div class="col6">
2022-09-21 15:09:25 +02:00
<?php echo template::text('installProxyUrl', [
'label' => 'Adresse du proxy',
'placeholder' => 'cache.proxy.fr'
]); ?>
</div>
<div class="col3">
2022-09-21 15:09:25 +02:00
<?php echo template::text('installProxyPort', [
'label' => 'Port du proxy',
'placeholder' => '6060'
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
<?php echo template::select('installTheme', $module::$themes, [
2022-09-21 15:09:25 +02:00
'label' => 'Thème'
]); ?>
<?php echo template::hidden('installLanguage', [
'value' => $this->getUrl(2)
]); ?>
2022-09-21 15:09:25 +02:00
</div>
</div>
2023-04-12 21:38:12 +02:00
</div>
</div>
</details>
2022-09-21 15:09:25 +02:00
<div class="row">
<div class="col2">
<?php echo template::button('installPrevious', [
'class' => 'buttonGrey',
'href' => helper::baseUrl(true) . '?install',
'value' => template::ico('left')
]); ?>
</div>
<div class="col3 offset7">
<?php echo template::submit('installSubmit', [
'value' => 'Installer'
]); ?>
</div>
</div>
<?php echo template::formClose(); ?>