Files
plugi/extensions/plugi-ext-form/config.php
T
deepDiverPaul 102fbc9464 improve form submission handling and frontend assets
Replace Alpine form bindings with accessible vanilla JavaScript submission states and unique field IDs. Add the bundled frontend script and Rolldown build configuration, update the generated stylesheet, and extend submission handler tests.
2026-11-25 15:56:26 +01:00

50 lines
1.2 KiB
PHP

<?php
return [
"title" => "Form",
"author" => "Paul Spenke",
"identifier" => "form",
"licence" => "MIT",
"version" => "1.0.0",
"settings" => [
[
"name" => "email",
"label" => "Email",
"default" => "admin@example.com",
"type" => "text",
],
],
"assets" => [
[
"src" => "/assets/dist.css",
"type" => "style",
"location" => "header",
],
[
"src" => "/assets/dist.js",
"type" => "script",
"location" => "footer",
],
],
"tables" => [
"entries" => [
"columns" => [
"formId" => "int NOT NULL",
"data" => "longtext NOT NULL",
"created" => "timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP",
],
"uniqueKeys" => [],
],
"definitions" => [
"columns" => [
"name" => "varchar(255) NOT NULL",
"fields" => "longtext NOT NULL",
"finishers" => "longtext NOT NULL",
],
"uniqueKeys" => [
"name" => ["name"],
],
],
],
];