Erster Durchstich mit updates
This commit is contained in:
parent
d3fd60b548
commit
3331f08091
60 changed files with 693 additions and 195 deletions
58
tippspiel/src/Views/register.php
Normal file
58
tippspiel/src/Views/register.php
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
<?php
|
||||
$pageTitle = 'Registrieren';
|
||||
require __DIR__ . '/partials/header.php';
|
||||
?>
|
||||
|
||||
<h1>Registrieren</h1>
|
||||
|
||||
<?php if (!empty($registrationClosed)): ?>
|
||||
<p>Die Registrierung neuer Spieler ist derzeit geschlossen. Bitte wende dich an einen Administrator.</p>
|
||||
<p><a href="/index.php?page=login">Zum Login</a></p>
|
||||
<?php require __DIR__ . '/partials/footer.php'; return; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($error)): ?>
|
||||
<p style="color: red;"><?php echo htmlspecialchars($error); ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<style>
|
||||
.form-group {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.form-group label {
|
||||
display: inline-block;
|
||||
width: 200px;
|
||||
text-align: right;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.form-group button {
|
||||
margin-left: calc(200px + 10px);
|
||||
}
|
||||
</style>
|
||||
<form action="/index.php?page=register" method="post">
|
||||
<div class="form-group">
|
||||
<label for="firstname">Vorname:</label>
|
||||
<input type="text" id="firstname" name="firstname" value="<?php echo htmlspecialchars($_POST['firstname'] ?? ''); ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="lastname">Nachname:</label>
|
||||
<input type="text" id="lastname" name="lastname" value="<?php echo htmlspecialchars($_POST['lastname'] ?? ''); ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email">E-Mail:</label>
|
||||
<input type="email" id="email" name="email" value="<?php echo htmlspecialchars($_POST['email'] ?? ''); ?>" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password">Passwort:</label>
|
||||
<input type="password" id="password" name="password" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password_confirm">Passwort bestätigen:</label>
|
||||
<input type="password" id="password_confirm" name="password_confirm" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="submit">Registrieren</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<?php require __DIR__ . '/partials/footer.php'; ?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue