Updated 4 files (automated)

mane
Mia Raindrops 2 weeks ago
parent 8d9ea8fa0c
commit e1745b20f6
Signed by: Mia Raindrops
GPG Key ID: EFBDC68435A574B7

@ -54,11 +54,26 @@ foreach (array_filter(scandir($_SERVER["DOCUMENT_ROOT"] . "/includes/data/reques
}
usort($keys, function ($a, $b) {
return strcmp($a["id"], $b["id"]);
return strcmp(getNameFromId($a["id"]), getNameFromId($b["id"]));
})
?>
<style>
.search-result span {
white-space: nowrap;
overflow: hidden !important;
text-overflow: ellipsis;
display: inline-block;
}
@media (max-width: 1250px) {
.search-result {
grid-template-columns: 1fr 2fr 0 !important;
}
}
</style>
<div class="container">
<br><br>
<a href="/admin"><?= l("lang_admin_title") ?></a>
@ -69,14 +84,14 @@ usort($keys, function ($a, $b) {
<div class="list-group" id="all-items">
<?php $entries = []; foreach ($keys as $item): $entries[] = ["id" => $item["id"], "name" => $item["name"] ?? null]; ?>
<a id="search-result-<?= $item["id"] ?>" class="search-result list-group-item list-group-item-action" href="/admin/edit/?id=<?= $item["id"] ?>">
<a id="search-result-<?= $item["id"] ?>" class="search-result list-group-item list-group-item-action" href="/admin/edit/?id=<?= $item["id"] ?>" style="display: grid; grid-template-columns: 1fr 2fr 2fr; grid-gap: 10px;">
<?= match ($item["type"]) {
"articles" => "<span class='badge bg-success rounded-pill'>" . l("lang_admin_types_articles") . "</span>",
"gallery" => "<span class='badge bg-success rounded-pill'>" . l("lang_admin_types_gallery") . "</span>",
"people" => "<span class='badge bg-success rounded-pill'>" . l("lang_admin_types_people") . "</span>",
"profiles" => "<span class='badge bg-success rounded-pill'>" . l("lang_admin_types_profiles") . "</span>",
"requests" => "<span class='badge bg-success rounded-pill'>" . l("lang_admin_types_requests") . "</span>",
} ?> <?= isset($item["name"]) ? $item["name"] . " <span class='text-muted'>($item[id])</span>" : $item["id"] ?>
"articles" => "<span style='width: max-content; display: flex; height: max-content; align-self: center;' class='badge bg-success rounded-pill'>" . l("lang_admin_types_articles") . "</span>",
"gallery" => "<span style='width: max-content; display: flex; height: max-content; align-self: center;' class='badge bg-success rounded-pill'>" . l("lang_admin_types_gallery") . "</span>",
"people" => "<span style='width: max-content; display: flex; height: max-content; align-self: center;' class='badge bg-success rounded-pill'>" . l("lang_admin_types_people") . "</span>",
"profiles" => "<span style='width: max-content; display: flex; height: max-content; align-self: center;' class='badge bg-success rounded-pill'>" . l("lang_admin_types_profiles") . "</span>",
"requests" => "<span style='width: max-content; display: flex; height: max-content; align-self: center;' class='badge bg-success rounded-pill'>" . l("lang_admin_types_requests") . "</span>",
} ?> <?= isset($item["name"]) ? "<span>" . $item["name"] . "</span><span class='text-muted' style='font-family: monospace;'>$item[id]</span>" : "<span style='font-family: monospace;'>" . $item["id"] . "</span>" ?>
</a>
<?php endforeach; ?>
</div>

@ -2,6 +2,7 @@
"title": {
"en": "[insert here]"
},
"language": "fr",
"contents": null,
"update": null,
"update_user": null

@ -2,6 +2,7 @@
"title": {
"en": "[insert here]"
},
"language": "fr",
"contents": null,
"update": null,
"update_user": null,

@ -2,6 +2,7 @@
"first_name": "[insert here]",
"last_name": "[insert here]",
"update": null,
"language": "fr",
"update_user": null,
"alts": [],
"born": null,

Loading…
Cancel
Save