update plugi ui

This commit is contained in:
Paul Spenke
2023-06-09 17:04:38 +08:00
parent 186c88fe29
commit ec48164c46
14 changed files with 116 additions and 68 deletions
@@ -2,19 +2,28 @@
return [
'pages' => [
'title' => phpb_trans('website-manager.pages'),
'include' => __DIR__ . '/pages.php',
'title' => phpb_trans('website-manager.pages'),
'include' => __DIR__ . '/pages.php',
'icon' => '<i class="ph ph-file"></i>',
],
'menus' => [
'title' => phpb_trans('website-manager.menus'),
'include' => __DIR__ . '/menus.php',
'title' => phpb_trans('website-manager.menus'),
'include' => __DIR__ . '/menus.php',
'icon' => '<i class="ph ph-list"></i>',
],
'files' => [
'title' => phpb_trans('website-manager.files'),
'include' => __DIR__ . '/files.php',
'title' => phpb_trans('website-manager.files'),
'include' => __DIR__ . '/files.php',
'icon' => '<i class="ph ph-folder-notch-open"></i>',
],
'settings' => [
'title' => phpb_trans('website-manager.settings'),
'include' => __DIR__ . '/settings.php',
'title' => phpb_trans('website-manager.settings'),
'include' => __DIR__ . '/settings.php',
'icon' => '<i class="ph ph-gear"></i>',
],
'info' => [
'title' => phpb_trans('website-manager.info'),
'include' => __DIR__ . '/info.php',
'icon' => '<i class="ph ph-info"></i>',
],
];
@@ -2,7 +2,7 @@
<input type="file" id="fileupload" class="file-input file-input-bordered file-input-sm file-input-primary w-full max-w-md" name="fileupload" onchange="uploadFile()" onselect="uploadFile()" />
</div>
<div class="flex flex-wrap gap-4">
<div class="flex flex-wrap justify-center gap-4">
<?php
foreach ($files as $file) :
?>
@@ -17,6 +17,15 @@ foreach ($files as $file) :
<?php
endforeach;
?>
<?php
if (count($files) === 0) :
?>
<div class="relative">
No files...
</div>
<?php
endif;
?>
</div>
<script>
@@ -1,4 +1,4 @@
<div class="main-spacing">
<?php
if (phpb_flash('message')):
?>
@@ -9,8 +9,7 @@
endif;
?>
<div class="table-responsive">
<table class="table table-zebra">
<table class="table table-zebra w-full">
<thead>
<tr>
<th class="w-5">ID</th>
@@ -57,8 +56,7 @@
?>
</tbody>
</table>
</div>
</div>
<div class="text-center mt-8">
<a href="<?= phpb_url('website_manager', ['route' => 'page_settings', 'action' => 'create']) ?>" class="btn btn-primary btn-sm">