From 0113d2e9c9ff34a6ffb10707cc76d34b67a0c367 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 19 Jan 2026 16:29:41 +0000
Subject: [PATCH] =Refactored window.getTemplate into a full templating class window.jvbTemplates. Refactored CRUD.js, UploadManager.js, FormController.js, PopulateForm.js with that in mind
---
inc/managers/CRUDManager.php | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/inc/managers/CRUDManager.php b/inc/managers/CRUDManager.php
index 49ec9c6..b868510 100644
--- a/inc/managers/CRUDManager.php
+++ b/inc/managers/CRUDManager.php
@@ -40,6 +40,9 @@
$this->config = $this->constant[$content];
$this->content = $content;
$this->cache = CacheManager::for($content);
+
+ $this->cache->clear();
+
// Create and configure skeleton
$this->skeleton = new CRUDSkeleton();
$this->configure();
@@ -60,7 +63,7 @@
// Initialize meta
$this->skeleton->initMeta($this->type, $this->content);
-
+ $this->skeleton->addSearch();
// Timeline if applicable
if (Features::forContent($this->content)->has('is_timeline')) {
@@ -81,14 +84,15 @@
// Statuses
if (Features::forContent($this->content)->has('is_calendar')) {
$this->skeleton->setCalendar();
- }else {
- $this->skeleton->setDefaultStatus();
}
+ $this->skeleton->setDefaultStatus();
+
// Views
$this->skeleton
- ->addViews(['grid', 'list', 'table'])
+ ->addViews()
->defaultView('grid');
+ $this->skeleton->addItemActions();
// Filters
$this->skeleton->addDateFilter();
--
Gitblit v1.10.0