Layout angepasst
This commit is contained in:
25
history.php
25
history.php
@@ -151,9 +151,26 @@ include('inc/header.php');
|
|||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?php foreach ($all_meetings as $meeting_id => $meeting): ?>
|
<?php foreach ($all_meetings as $meeting_id => $meeting): ?>
|
||||||
<div class="card shadow mb-4">
|
<div class="card shadow mb-4">
|
||||||
|
<?php
|
||||||
|
// Wochentag abkürzen (Mo., Di., Mi., ...)
|
||||||
|
$weekday_short = date('D', strtotime($meeting['date']));
|
||||||
|
$german_weekdays = [
|
||||||
|
'Mon' => 'Mo.',
|
||||||
|
'Tue' => 'Di.',
|
||||||
|
'Wed' => 'Mi.',
|
||||||
|
'Thu' => 'Do.',
|
||||||
|
'Fri' => 'Fr.',
|
||||||
|
'Sat' => 'Sa.',
|
||||||
|
'Sun' => 'So.'
|
||||||
|
];
|
||||||
|
$weekday = $german_weekdays[$weekday_short] ?? '';
|
||||||
|
$formatted_date = date('d.m.y', strtotime($meeting['date']));
|
||||||
|
$formatted_time = date('H:i', strtotime($meeting['date']));
|
||||||
|
?>
|
||||||
|
|
||||||
<div class="card-header d-flex justify-content-between bg-secondary bg-opacity-25 text-dark align-items-center">
|
<div class="card-header d-flex justify-content-between bg-secondary bg-opacity-25 text-dark align-items-center">
|
||||||
<div class="mb-0 fs-6 fs-md-5 fw-bold">
|
<div class="mb-0 fs-6 fs-md-5 fw-bold">
|
||||||
<span class="fw-normal me-2">am</span><?= date('d.m.y', strtotime($meeting['date'])) ?>
|
Treffen am <?= $weekday ?> <?= $formatted_date ?> um <?= $formatted_time ?> Uhr
|
||||||
</div>
|
</div>
|
||||||
<?php if ($_SESSION['role'] === 'admin'): ?>
|
<?php if ($_SESSION['role'] === 'admin'): ?>
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
@@ -177,7 +194,11 @@ include('inc/header.php');
|
|||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="d-flex flex-column text-muted fst-italic mb-2">
|
<div class="d-flex flex-column text-muted fst-italic mb-2">
|
||||||
<span>Farbe: <span class="fw-bold"><?= htmlspecialchars($meeting['color_name']) ?></span></span>
|
<div class="d-flex align-items-center mb-1">
|
||||||
|
<span>Farbe:</span>
|
||||||
|
<div class="ms-2" style="background-color: <?= htmlspecialchars($meeting['hex_code']); ?>; width: 20px; height: 20px; border: 1px solid #ccc; border-radius: 2px;"></div>
|
||||||
|
<span class="fw-bold ms-2"><?= htmlspecialchars($meeting['color_name']) ?></span>
|
||||||
|
</div>
|
||||||
<span>Grund: <?= htmlspecialchars($meeting['reason']) ?></span>
|
<span>Grund: <?= htmlspecialchars($meeting['reason']) ?></span>
|
||||||
</div>
|
</div>
|
||||||
<h6 class="mb-2">Teilnehmer:</h6>
|
<h6 class="mb-2">Teilnehmer:</h6>
|
||||||
|
|||||||
Reference in New Issue
Block a user