diff options
| author | Thomas Hackl <hackl@data-quest.de> | 2025-08-05 14:22:48 +0200 |
|---|---|---|
| committer | Thomas Hackl <hackl@data-quest.de> | 2025-08-05 14:22:48 +0200 |
| commit | 58a43aa4175a088daa4f2d96f32874ed1a147a84 (patch) | |
| tree | 980bdf70389127874dd5789935db601dce9bdef8 /app | |
| parent | 5b794550b4fa0bc892d924088466bf0065ecf2d7 (diff) | |
Resolve "Neue Demodaten"
Closes #5779
Merge request studip/studip!4402
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/admin/install.php | 13 | ||||
| -rw-r--r-- | app/views/admin/install/prepare.php | 29 |
2 files changed, 12 insertions, 30 deletions
diff --git a/app/controllers/admin/install.php b/app/controllers/admin/install.php index e45c281..f5ac732 100644 --- a/app/controllers/admin/install.php +++ b/app/controllers/admin/install.php @@ -169,17 +169,8 @@ class Admin_InstallController extends Trails\Controller public function prepare_action() { $this->files = [ - 'studip.sql' => _('Datenbankschema'), - 'studip_default_data.sql' => _('Voreinstellungen'), - 'studip_resources_default_data.sql' => _('Struktur für Ressourcen'), - 'studip_demo_data.sql' => _('Allgemeine Beispieldaten'), - 'studip_mvv_demo_data.sql' => _('Demodaten für das Modul- und Veranstaltungsverzeichnis'), - 'studip_resources_demo_data.sql' => _('Demodaten für die Ressourcenverwaltung '), - ]; - $this->required = [ - 'studip.sql', - 'studip_default_data.sql', - 'studip_resources_default_data.sql', + 'studip-basic-installation.sql' => _('Basisinstallation ohne Daten'), + 'studip-demo-installation.sql' => _('Demoinstallation mit Beispieldaten') ]; $this->defaults = [ diff --git a/app/views/admin/install/prepare.php b/app/views/admin/install/prepare.php index bccb764..12738f3 100644 --- a/app/views/admin/install/prepare.php +++ b/app/views/admin/install/prepare.php @@ -7,32 +7,23 @@ */ ?> <p> - <?= _('In diesem Schritt wählen Sie aus, welche Beispieldaten in Ihre ' - . 'Datenbank eingespielt werden und geben einige Grunddaten zur ' - . 'Installation an, die in der Datenbank gespeichert werden.') ?> + <?= _('In diesem Schritt wählen Sie aus, welche Art von Installation erstellt werden soll: ein leeres System, ' + . 'in dem nur die für den Betrieb notwendigen Daten hinterlegt sind, oder ein Demosystem mit einigen ' + . 'Beispieldaten. Darüber hinaus geben Sie Weitere Grunddaten zur Installation an, die in der Datenbank ' + . 'gespeichert werden.') ?> <?= _('Die Grunddaten können Sie nach der Installation weiterhin bearbeiten.') ?> </p> <h3><?= _('SQL-Daten einspielen') ?></h3> -<ul> <?php $i = 0; foreach ($files as $file => $description): ?> - <li> - <label for="option-<?= $i ?>" class="plain"> - <?php if (in_array($file, $required)): ?> - <input type="hidden" name="files[]" value="<?= htmlReady($file) ?>"> - <input type="checkbox" checked disabled> - <?php else: ?> - <input type="checkbox" name="files[]" value="<?= htmlReady($file) ?>" - id="option-<?= $i ?>"> - <?php endif; ?> - <strong <?php if (in_array($file, $required)): ?>class="required"<?php endif; ?>> - <?= htmlReady($description) ?> - </strong><br> - <?= htmlReady($file) ?> + <div class="type-text"> + <label class="plain"> + <input type="radio" name="files[]" value="<?= htmlReady($file) ?>" required class="required" + <?= in_array($file, $_SESSION['STUDIP_INSTALLATION']['system']['files'] ?? []) ? ' checked' : '' ?>> + <?= htmlReady($description) ?> </label> - </li> + </div> <?php $i += 1; endforeach; ?> -</ul> <h3><?= _('Daten zum System') ?></h3> <div class="type-text required"> |
