update styling
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -7,16 +7,10 @@ if (isset($page)) {
|
||||
$pageTranslations = $page ? $page->getTranslations() : [];
|
||||
?>
|
||||
|
||||
<div class="py-8">
|
||||
<h2 class="text-center text-2xl"><?= phpb_trans('website-manager.title') ?></h2>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
|
||||
<div class="manager-panel">
|
||||
<div class="manager-panel p-8 w-full">
|
||||
<form method="post" action="<?= phpb_url('website_manager', ['route' => 'page_settings', 'action' => $action]) ?><?= $pageUrlParam ?>">
|
||||
<h4 class="text-center text-lg">
|
||||
<div class="text-center text-3xl font-bold mb-8 mt-2">
|
||||
<?php
|
||||
if ($action === 'create'):
|
||||
echo phpb_trans('website-manager.add-new-page');
|
||||
@@ -24,7 +18,7 @@ $pageTranslations = $page ? $page->getTranslations() : [];
|
||||
echo phpb_trans('website-manager.edit-page');
|
||||
endif;
|
||||
?>
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<div class="max-w-lg p-4 mx-auto">
|
||||
<div class="form-control w-full mb-4">
|
||||
@@ -123,6 +117,3 @@ $pageTranslations = $page ? $page->getTranslations() : [];
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="mb-8 flex justify-center">
|
||||
<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()" />
|
||||
<input type="file" id="fileupload" class="file-input file-input-bordered file-input-primary w-full max-w-md" name="fileupload" onchange="uploadFile()" onselect="uploadFile()" />
|
||||
</div>
|
||||
|
||||
<div class="flex flex-wrap justify-center gap-4">
|
||||
|
||||
@@ -23,16 +23,16 @@ $pages = $pageRepository->getAll();
|
||||
endif;
|
||||
?>
|
||||
|
||||
<div x-data="{menus: <?= phpb_e($menusJson) ?>, pages: <?= phpb_e($menuPagesJson) ?>}" class="flex flex-col gap-8">
|
||||
<div x-data="{menus: <?= phpb_e($menusJson) ?>, pages: <?= phpb_e($menuPagesJson) ?>}" class="flex flex-col gap-12">
|
||||
<template x-for="menu in menus">
|
||||
<div class="">
|
||||
<div class="px-6 mb-4 flex justify-between">
|
||||
<div class="text-2xl font-bold" x-text="menu.name"></div>
|
||||
<div class="dropdown dropdown-end dropdown-hover" x-show="(menu.pages.length < pages.length)">
|
||||
<label tabindex="0" class="btn btn-circle btn-sm">
|
||||
<i class="text-2xl ph-bold ph-plus"></i>
|
||||
<label tabindex="0" class="btn btn-square btn-sm">
|
||||
<i class=" text-2xl ph ph-list-plus"></i>
|
||||
</label>
|
||||
<ul tabindex="0" class="dropdown-content menu p-2 shadow bg-base-100 rounded-box w-52">
|
||||
<ul tabindex="0" class="dropdown-content menu p-2 shadow bg-base-100 rounded-box w-52 z-10">
|
||||
<template x-for="page in pages.filter(p=> !menu.pages.map(m=>m.id).includes(p.id))">
|
||||
<li>
|
||||
<a href="javascript:void(0)" @click="menu.pages.push(page)">
|
||||
@@ -44,33 +44,43 @@ $pages = $pageRepository->getAll();
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="">
|
||||
<input type="hidden" :name="menu.name" :value="menu.pages.map(p=>p.id).join(',')">
|
||||
<input type="hidden" :name="menu.name" :value="menu.pages.map(p=>p.id).join(',')">
|
||||
<table class="table table-zebra w-full">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="w-5">ID</th>
|
||||
<th class="w-5/12"><?= phpb_trans('website-manager.name') ?></th>
|
||||
<th><?= phpb_trans('website-manager.route') ?></th>
|
||||
<th class="w-36"><?= phpb_trans('website-manager.actions') ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<template x-for="(page, index) in menu.pages">
|
||||
<div class="flex flex-nowrap gap-4 px-6 py-4 border-l border-r last:border-b border-t first-of-type:rounded-t last:rounded-b">
|
||||
<div class="flex-none w-6" x-text="page.id"></div>
|
||||
<div class="grow" x-text="page.title"></div>
|
||||
<div class="flex-none w-60" x-text="page.route"></div>
|
||||
<div class="flex-none">
|
||||
<button type="button" @click.stop.prevent="arraymove(menu.pages,index,index-1)" class="btn btn-outline btn-circle btn-xs" :disabled="index === 0">
|
||||
<i class="ph-fill ph-arrow-fat-up"></i>
|
||||
<tr>
|
||||
<th x-text="page.id"></th>
|
||||
<td x-text="page.title"></td>
|
||||
<td x-text="page.route"></td>
|
||||
<td>
|
||||
<button type="button" @click.stop.prevent="arraymove(menu.pages,index,index-1)" class="btn btn-outline btn-circle btn-sm" :disabled="index === 0">
|
||||
<i class="ph-duotone ph-arrow-fat-up text-xl"></i>
|
||||
</button>
|
||||
<button type="button" @click.stop.prevent="arraymove(menu.pages,index,index+1)" class="btn btn-outline btn-circle btn-xs" :disabled="index === menu.pages.length - 1">
|
||||
<i class="ph-fill ph-arrow-fat-down"></i>
|
||||
<button type="button" @click.stop.prevent="arraymove(menu.pages,index,index+1)" class="btn btn-outline btn-circle btn-sm" :disabled="index === menu.pages.length - 1">
|
||||
<i class="ph-duotone ph-arrow-fat-down text-xl"></i>
|
||||
</button>
|
||||
<button @click.stop.prevent="arraymove(menu.pages,index)" class="btn btn-outline btn-circle btn-error btn-xs">
|
||||
<i class="ph-duotone ph-trash"></i>
|
||||
<button @click.stop.prevent="arraymove(menu.pages,index)" class="btn btn-outline btn-circle btn-error btn-sm">
|
||||
<i class="ph-duotone ph-trash text-xl"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</template>
|
||||
</div>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
|
||||
<div class="text-center mt-8">
|
||||
<button class="btn btn-primary btn-sm">
|
||||
<button class="btn btn-primary">
|
||||
<?= phpb_trans('website-manager.save-menus'); ?>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
<?php
|
||||
if (phpb_flash('message')):
|
||||
?>
|
||||
<div class="alert alert-<?= phpb_flash('message-type') ?>">
|
||||
<?= phpb_flash('message') ?>
|
||||
<div class="alert alert-<?= phpb_flash('message-type') ?> mb-6">
|
||||
<i class="text-xl ph-duotone ph-info"></i>
|
||||
<span><?= phpb_flash('message') ?></span>
|
||||
</div>
|
||||
<?php
|
||||
endif;
|
||||
@@ -59,7 +60,7 @@
|
||||
|
||||
|
||||
<div class="text-center mt-8">
|
||||
<a href="<?= phpb_url('website_manager', ['route' => 'page_settings', 'action' => 'create']) ?>" class="btn btn-primary btn-sm">
|
||||
<a href="<?= phpb_url('website_manager', ['route' => 'page_settings', 'action' => 'create']) ?>" class="btn btn-primary">
|
||||
<?= phpb_trans('website-manager.add-new-page') ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -84,7 +84,7 @@ $settingIns = phpb_instance('setting');
|
||||
?>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary btn-sm mt-8">
|
||||
<button class="btn btn-primary mt-8">
|
||||
<?= phpb_trans('website-manager.save-settings'); ?>
|
||||
</button>
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace Plugi;
|
||||
|
||||
#[\AllowDynamicProperties]
|
||||
|
||||
class UploadedFile
|
||||
{
|
||||
/**
|
||||
|
||||
+16
-2
@@ -11,8 +11,22 @@ module.exports = {
|
||||
require("daisyui")
|
||||
],
|
||||
daisyui: {
|
||||
themes: ["lemonade","forest","cupcake"],
|
||||
darkTheme: "lemonade",
|
||||
themes: [
|
||||
{
|
||||
plugiLight: {
|
||||
"primary": "#374151",
|
||||
"secondary": "#374151",
|
||||
"accent": "#FCE44D",
|
||||
"neutral": "#000000",
|
||||
"base-100": "#ebeaeb",
|
||||
"info": "#5292e0",
|
||||
"success": "#65a30d",
|
||||
"warning": "#f3b06d",
|
||||
"error": "#e87d98",
|
||||
},
|
||||
},"emerald","night",
|
||||
],
|
||||
darkTheme: "night",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user