Layout vereinheitlicht
This commit is contained in:
82
index.php
82
index.php
@@ -265,7 +265,7 @@ $german_weekdays = [
|
||||
];
|
||||
?>
|
||||
|
||||
<div class="container py-0">
|
||||
<div class="container pt-0">
|
||||
<?php if (isset($auto_declined) && $auto_declined === 'declined'): ?>
|
||||
<div class="alert alert-info alert-dismissible fade show" role="alert">
|
||||
Abwesenheitsmodus aktiv.
|
||||
@@ -289,10 +289,6 @@ $german_weekdays = [
|
||||
<?php unset($_SESSION['error_message']); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="text-center mb-4">
|
||||
<h2 class="fw-bold">Farbe des nächsten Treffens</h2>
|
||||
</div>
|
||||
|
||||
<?php if ($row): ?>
|
||||
<?php
|
||||
$english_weekday = date('D', strtotime($row['meeting_date']));
|
||||
@@ -303,13 +299,11 @@ $german_weekdays = [
|
||||
$color_row = mysqli_fetch_assoc(mysqli_stmt_get_result($color_stmt));
|
||||
?>
|
||||
<div class="card mx-auto bg-light shadow mb-4" style="max-width: 500px;">
|
||||
<div class="card-header bg-primary-subtle text-secondary d-flex justify-content-between align-items-center">
|
||||
<h4 class="mb-0">nächstes Treffens</h4>
|
||||
</div>
|
||||
<div class="card-body text-center">
|
||||
<div class="rounded-4 mb-3 mx-auto d-flex flex-column justify-content-center align-items-center color-box" style="background-image: linear-gradient(135deg, <?= htmlspecialchars($color_row['hex_code']) ?>, <?= darken_color($color_row['hex_code']) ?>);">
|
||||
<p class="fs-5 fw-semibold m-0" style="color: <?= get_readable_text_color($color_row['hex_code']) ?>;"><?= htmlspecialchars($color_row['name']) ?></p>
|
||||
<p class="fs-6 fw-normal m-0" style="color: <?= get_readable_text_color($color_row['hex_code']) ?>;"><?= htmlspecialchars($row['reason']) ?></p>
|
||||
</div>
|
||||
<p class="text-muted">nächster Termin:</p>
|
||||
<p class="text-muted h3 fw-bold mb-2"><?= $german_weekday . ' ' . date('d.m.Y H:i', strtotime($row['meeting_date'])) ?></p>
|
||||
<p class="text-muted h3 fw-bold mb-2"><?= $german_weekday . ' ' . date('d.m.Y H:i', strtotime($row['meeting_date'])) . " Uhr" ?></p>
|
||||
<?php
|
||||
$has_active_proposal = false;
|
||||
if ($row) {
|
||||
@@ -331,55 +325,66 @@ $german_weekdays = [
|
||||
Dein Terminverschiebungsvorschlag befindet sich noch in der Abstimmung.
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<button class="btn btn-sm btn-outline-primary" type="button" data-bs-toggle="collapse" data-bs-target="#rescheduleForm" aria-expanded="false" aria-controls="rescheduleForm">
|
||||
<button class="btn btn-sm btn-outline-secondary mb-2" type="button" data-bs-toggle="collapse" data-bs-target="#rescheduleForm" aria-expanded="false" aria-controls="rescheduleForm">
|
||||
Terminverschiebung vorschlagen
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Verschiebungsformular -->
|
||||
<div class="collapse" id="rescheduleForm">
|
||||
<div class="card card-body bg-light mt-3 mx-auto" style="max-width: 90%;">
|
||||
<h5>Anderen Termin vorschlagen</h5>
|
||||
<form method="POST">
|
||||
<div class="mb-3">
|
||||
<label for="new_date" class="form-label">Neuer Termin:</label>
|
||||
<input type="datetime-local" class="form-control" id="new_date" name="new_date" value="<?= date('Y-m-d\TH:i', strtotime($row['meeting_date'])) ?>" required>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="reason" class="form-label">Grund/Bemerkung:</label>
|
||||
<textarea class="form-control" id="reason" name="reason" rows="2" placeholder="Warum soll der Termin verschoben werden?"></textarea>
|
||||
</div>
|
||||
<div class="d-flex gap-2">
|
||||
<button type="submit" name="propose_reschedule" class="btn btn-sm btn-outline-primary">Vorschlag einreichen</button>
|
||||
<button type="button" class="btn btn-sm btn-outline-secondary" data-bs-toggle="collapse" data-bs-target="#rescheduleForm">Abbrechen</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Verschiebungsformular -->
|
||||
<div class="collapse" id="rescheduleForm">
|
||||
<div class="card card-body bg-light mt-3 mx-auto" style="max-width: 90%;">
|
||||
<h5>Anderen Termin vorschlagen</h5>
|
||||
<form method="POST">
|
||||
<div class="mb-3">
|
||||
<label for="new_date" class="form-label">Neuer Termin:</label>
|
||||
<input type="datetime-local" class="form-control" id="new_date" name="new_date" value="<?= date('Y-m-d\TH:i', strtotime($row['meeting_date'])) ?>" required>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="reason" class="form-label">Grund/Bemerkung:</label>
|
||||
<textarea class="form-control" id="reason" name="reason" rows="2" placeholder="Warum soll der Termin verschoben werden?"></textarea>
|
||||
</div>
|
||||
<div class="d-flex gap-2">
|
||||
<button type="submit" name="propose_reschedule" class="btn btn-sm btn-outline-primary">Vorschlag einreichen</button>
|
||||
<button type="button" class="btn btn-sm btn-outline-secondary" data-bs-toggle="collapse" data-bs-target="#rescheduleForm">Abbrechen</button>
|
||||
</div>
|
||||
</form>
|
||||
<!-- Horizontale Linie hier einfügen -->
|
||||
<hr class="my-2">
|
||||
|
||||
<p class="text-muted">Farbe des Treffens:</p>
|
||||
<div class="rounded-4 my-1 mx-auto d-flex flex-column justify-content-center align-items-center color-box" style="background-image: linear-gradient(135deg, <?= htmlspecialchars($color_row['hex_code']) ?>, <?= darken_color($color_row['hex_code']) ?>);">
|
||||
<p class="fs-5 fw-semibold m-0" style="color: <?= get_readable_text_color($color_row['hex_code']) ?>;"><?= htmlspecialchars($color_row['name']) ?></p>
|
||||
<p class="fs-6 fw-normal m-0" style="color: <?= get_readable_text_color($color_row['hex_code']) ?>;"><?= htmlspecialchars($row['reason']) ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex justify-content-center pt-2 pb-3" style="max-width: 500px; margin-left: auto; margin-right: auto; flex-direction: column; align-items: center;">
|
||||
<!-- Horizontale Linie hier einfügen -->
|
||||
<hr class="my-1">
|
||||
|
||||
<div class="d-flex justify-content-center py-2" style="max-width: 500px; margin-left: auto; margin-right: auto; flex-direction: column; align-items: center;">
|
||||
<?php if ($user_attendance_status === 'accepted'): ?>
|
||||
<p class="text-success fw-bold mb-4">Du hast zugesagt!</p>
|
||||
<p class="text-success fw-bold mb-3">Du hast zugesagt!</p>
|
||||
<div class="d-flex justify-content-center">
|
||||
<a href="index.php?action=decline&meeting_id=<?= htmlspecialchars($meeting_id); ?>" class="btn btn-sm btn-outline-danger me-2">Absagen</a>
|
||||
<a href="index.php?action=maybe&meeting_id=<?= htmlspecialchars($meeting_id); ?>" class="btn btn-sm btn-outline-info">noch unklar</a>
|
||||
</div>
|
||||
<?php elseif ($user_attendance_status === 'declined'): ?>
|
||||
<p class="text-danger fw-bold mb-4">Du hast abgesagt!</p>
|
||||
<p class="text-danger fw-bold mb-3">Du hast abgesagt!</p>
|
||||
<div class="d-flex justify-content-center">
|
||||
<a href="index.php?action=accept&meeting_id=<?= htmlspecialchars($meeting_id); ?>" class="btn btn-sm btn-outline-success me-2">Zusagen</a>
|
||||
<a href="index.php?action=maybe&meeting_id=<?= htmlspecialchars($meeting_id); ?>" class="btn btn-sm btn-outline-info">noch unklar</a>
|
||||
</div>
|
||||
<?php elseif ($user_attendance_status === 'maybe'): ?>
|
||||
<p class="text-muted fw-bold mb-4">Vielleicht dabei!</p>
|
||||
<p class="text-muted fw-bold mb-3">Vielleicht dabei!</p>
|
||||
<div class="d-flex justify-content-center">
|
||||
<a href="index.php?action=accept&meeting_id=<?= htmlspecialchars($meeting_id); ?>" class="btn btn-sm btn-outline-success me-2">Zusagen</a>
|
||||
<a href="index.php?action=decline&meeting_id=<?= htmlspecialchars($meeting_id); ?>" class="btn btn-sm btn-outline-danger">Absagen</a>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p class="text-muted fw-bold mb-4">Bist du dabei?</p>
|
||||
<p class="text-muted fw-bold mb-3">Bist du dabei?</p>
|
||||
<div class="d-flex justify-content-center">
|
||||
<a href="index.php?action=accept&meeting_id=<?= htmlspecialchars($meeting_id); ?>" class="btn btn-sm btn-outline-success me-2">Zusagen</a>
|
||||
<a href="index.php?action=decline&meeting_id=<?= htmlspecialchars($meeting_id); ?>" class="btn btn-sm btn-outline-danger me-2">Absagen</a>
|
||||
@@ -388,6 +393,9 @@ $german_weekdays = [
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<!-- Horizontale Linie hier einfügen -->
|
||||
<hr class="my-1">
|
||||
|
||||
<?php if ($next_payer_username): ?>
|
||||
<div class="text-center my-2 mx-auto" style="max-width: 500px; border-radius: 0.5rem;">
|
||||
<p class="fw-bold mb-1">Rechnung wird bezahlt von:</p>
|
||||
@@ -395,7 +403,7 @@ $german_weekdays = [
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="d-flex justify-content-center my-3" style="max-width: 500px; margin-left: auto; margin-right: auto;">
|
||||
<div class="d-flex justify-content-center my-1" style="max-width: 500px; margin-left: auto; margin-right: auto;">
|
||||
<a href="participant.php?id=<?= htmlspecialchars($row['id']) ?>" class="btn btn-sm btn-outline-secondary">Teilnahme eintragen</a>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user