Hübscher gemacht
This commit is contained in:
+65
-2
@@ -440,6 +440,67 @@ if ($currentUserIsMaster) {
|
||||
?>
|
||||
<?php require __DIR__ . '/header.php'; ?>
|
||||
|
||||
<style>
|
||||
.admin-users-table.permissions-matrix {
|
||||
width: auto;
|
||||
min-width: max-content;
|
||||
}
|
||||
|
||||
.admin-users-table.permissions-matrix thead th {
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.admin-users-table.permissions-matrix thead th.permissions-matrix-head {
|
||||
width: 22px;
|
||||
min-width: 22px;
|
||||
padding: 0.2rem 0.02rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.admin-users-table.permissions-matrix thead th.permissions-matrix-head > span {
|
||||
display: inline-flex;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
min-height: 96px;
|
||||
writing-mode: vertical-rl;
|
||||
transform: rotate(180deg);
|
||||
white-space: nowrap;
|
||||
font-size: 0.56rem;
|
||||
letter-spacing: 0;
|
||||
line-height: 1.05;
|
||||
}
|
||||
|
||||
.admin-users-table.permissions-matrix td {
|
||||
min-width: 22px;
|
||||
padding: 0.2rem 0.02rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.admin-users-table.permissions-matrix td input[type="checkbox"] {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.admin-users-table.permissions-matrix td:first-child,
|
||||
.admin-users-table.permissions-matrix th:first-child,
|
||||
.admin-users-table.permissions-matrix td:last-child,
|
||||
.admin-users-table.permissions-matrix th:last-child {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.admin-users-table.permissions-matrix td:first-child,
|
||||
.admin-users-table.permissions-matrix th:first-child {
|
||||
min-width: 150px;
|
||||
padding-right: 0.45rem;
|
||||
}
|
||||
|
||||
.admin-users-table.permissions-matrix td:last-child,
|
||||
.admin-users-table.permissions-matrix th:last-child {
|
||||
min-width: 92px;
|
||||
padding-left: 0.45rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="admin-users-layout">
|
||||
<section class="card admin-users-summary-card">
|
||||
<h2>Übersicht</h2>
|
||||
@@ -574,12 +635,12 @@ if ($currentUserIsMaster) {
|
||||
<h2>Seitenfreigaben</h2>
|
||||
<p class="hint">Nur Master-Benutzer dürfen hier festlegen, welche Seiten normale Nutzer im Menü sehen und direkt aufrufen dürfen.</p>
|
||||
<div class="admin-users-table-wrap">
|
||||
<table class="data-table admin-users-table">
|
||||
<table class="data-table admin-users-table permissions-matrix">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Benutzer</th>
|
||||
<?php foreach ($manageablePages as $pageKey => $pageLabel): ?>
|
||||
<th><?= h($pageLabel) ?></th>
|
||||
<th class="permissions-matrix-head"><span><?= h($pageLabel) ?></span></th>
|
||||
<?php endforeach; ?>
|
||||
<th>Speichern</th>
|
||||
</tr>
|
||||
@@ -609,6 +670,8 @@ if ($currentUserIsMaster) {
|
||||
name="page_keys[]"
|
||||
value="<?= h($pageKey) ?>"
|
||||
form="<?= h($permissionFormId) ?>"
|
||||
title="<?= h($pageLabel) ?>"
|
||||
aria-label="<?= h($pageLabel) ?>"
|
||||
<?= isset($userPermissions[$pageKey]) ? 'checked' : '' ?>
|
||||
<?= $isPrivilegedUser ? 'disabled' : '' ?>
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user