field create

This commit is contained in:
2026-01-08 13:10:18 +02:00
parent 4d2497d96f
commit ebccac210a
15 changed files with 318 additions and 18 deletions
@@ -1,9 +1,11 @@
<script>
import ChannelLayout from "../../layouts/ChannelLayout.svelte";
import { post } from "../../modules/remote";
import { getApp } from "../../app";
let { channel, user, data } = $props();
let newSchemaName = $state("");
let newSchemaAlias = $state("");
const app = getApp();
function handleSchemaCreate(e) {
e.preventDefault();
@@ -15,7 +17,7 @@
},
(data, err) => {
if (err.isEmpty()) {
window.location.reload();
Turbo.visit(window.location.href);
}
},
);
@@ -79,8 +81,9 @@
<ul>
<li>
<a
href={`/fields/create?schema=${schema.id}&type=text`}
>Text</a
href={app.url(
`fields/create?schema=${schema.id}&type=text`,
)}>Text</a
>
</li>