Menü angepasst
This commit is contained in:
29
history.php
29
history.php
@@ -155,20 +155,25 @@ include('inc/header.php');
|
|||||||
<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'])) ?>
|
<span class="fw-normal me-2">am</span><?= date('d.m.y', strtotime($meeting['date'])) ?>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php if ($_SESSION['role'] === 'admin'): ?>
|
||||||
if ($_SESSION['role'] == 'admin') {
|
<div class="dropdown">
|
||||||
?>
|
<a href="#" class="text-secondary" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||||
<div>
|
<span class="material-icons">more_vert</span>
|
||||||
<a href="admin/participant.php?id=<?= $meeting_id ?>&source=history" style="text-decoration: none; border: none; outline: none;">
|
|
||||||
<span class="material-symbols-outlined text-dark">edit_calendar</span>
|
|
||||||
</a>
|
|
||||||
<a href="history.php?action=delete&id=<?= $meeting_id ?>" class="ms-1" style="text-decoration: none; border: none; outline: none;" onclick="return confirm('Möchtest du diesen Termin wirklich löschen?');">
|
|
||||||
<span class="material-symbols-outlined text-danger">delete_outline</span>
|
|
||||||
</a>
|
</a>
|
||||||
|
<ul class="dropdown-menu dropdown-menu-end">
|
||||||
|
<li>
|
||||||
|
<a class="dropdown-item d-flex align-items-center" href="participant.php?id=<?= $meeting_id ?>&source=history">
|
||||||
|
<span class="material-icons me-2">edit_calendar</span> Bearbeiten
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a class="dropdown-item d-flex align-items-center text-danger" href="history.php?action=delete&id=<?= $meeting_id ?>" onclick="return confirm('Möchtest du diesen Termin wirklich löschen?');">
|
||||||
|
<span class="material-icons me-2">delete_outline</span> Löschen
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php endif; ?>
|
||||||
}
|
|
||||||
?>
|
|
||||||
</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">
|
||||||
|
|||||||
Reference in New Issue
Block a user