Initial Kaffeekasse SaaS restart

This commit is contained in:
2026-06-15 17:13:38 +02:00
commit b08eb93547
54 changed files with 4617 additions and 0 deletions
+56
View File
@@ -0,0 +1,56 @@
<?php require __DIR__ . '/../partials/layout-top.php'; ?>
<section class="page-head">
<span class="eyebrow">Setup</span>
<h1>Plattform installieren</h1>
<p>Der Installer schreibt `.env`, legt das MySQL-Schema an und erstellt den ersten Plattform-Admin. Danach ist das Self-Service-Onboarding fuer Mandanten freigeschaltet.</p>
</section>
<form class="card form-card" method="post" action="/install">
<?= csrf_field($csrf) ?>
<div class="form-grid">
<label>
<span>App-URL</span>
<input type="url" name="app_url" value="<?= e((string) old('app_url', $config['url'])) ?>" required>
</label>
<label>
<span>DB-Host</span>
<input type="text" name="db_host" value="<?= e((string) old('db_host', '127.0.0.1')) ?>" required>
</label>
<label>
<span>DB-Port</span>
<input type="number" name="db_port" value="<?= e((string) old('db_port', '3306')) ?>" required>
</label>
<label>
<span>DB-Name</span>
<input type="text" name="db_name" value="<?= e((string) old('db_name')) ?>" required>
</label>
<label>
<span>DB-User</span>
<input type="text" name="db_user" value="<?= e((string) old('db_user')) ?>" required>
</label>
<label>
<span>DB-Passwort</span>
<input type="password" name="db_pass" value="<?= e((string) old('db_pass')) ?>">
</label>
<label>
<span>Mail-Absender</span>
<input type="email" name="mail_from" value="<?= e((string) old('mail_from', 'noreply@example.com')) ?>">
</label>
<label>
<span>Admin-Name</span>
<input type="text" name="admin_name" value="<?= e((string) old('admin_name')) ?>" required>
</label>
<label>
<span>Admin-E-Mail</span>
<input type="email" name="admin_email" value="<?= e((string) old('admin_email')) ?>" required>
</label>
<label>
<span>Admin-Passwort</span>
<input type="password" name="admin_password" minlength="12" required>
</label>
</div>
<button class="button button-primary" type="submit">Installation abschliessen</button>
</form>
<?php require __DIR__ . '/../partials/layout-bottom.php'; ?>