add ext-form

This commit is contained in:
2026-11-22 16:09:43 +01:00
parent ef4be66673
commit 932c7d21fe
25 changed files with 2681 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
use Plugi\Extensions;
Extensions::addRoutes([
'/ext--form/submit' => dirname(__FILE__) . '/routes/submit.php',
'/ext--form/save-form' => dirname(__FILE__) . '/routes/saveForm.php',
'/ext--form/delete-form' => dirname(__FILE__) . '/routes/deleteForm.php',
'/ext--form/delete-entry' => dirname(__FILE__) . '/routes/deleteEntry.php',
]);
Extensions::addBlocks([
'form-wrapper' => __DIR__ . '/blocks/form-wrapper'
]);
Extensions::registerBackend('form', [
'title' => 'Form',
'include' => __DIR__ . '/admin/form.php',
'icon' => '<i class="ph ph-paper-plane-tilt"></i>',
]);