Migrate Forms interface patterns

This commit is contained in:
2026-08-03 13:08:43 +02:00
parent e2033640a1
commit e505536e6f
9 changed files with 429 additions and 31 deletions
+4 -2
View File
@@ -1,5 +1,6 @@
import { createElement, lazy } from "react";
import type { PlatformWebModule } from "@govoplan/core-webui";
import { generatedTranslations } from "./i18n/generatedTranslations";
import "./styles/forms.css";
@@ -7,10 +8,11 @@ const FormsPage = lazy(() => import("./features/forms/FormsPage"));
export const formsModule: PlatformWebModule = {
id: "forms",
label: "Form definitions",
label: "i18n:govoplan-forms.form_definitions",
version: "0.1.14",
dependencies: ["access"],
optionalDependencies: ["forms_runtime", "portal", "workflow_engine", "cases", "policy"],
translations: generatedTranslations,
routes: [
{
path: "/forms",
@@ -23,7 +25,7 @@ export const formsModule: PlatformWebModule = {
navItems: [
{
to: "/forms",
label: "Form definitions",
label: "i18n:govoplan-forms.form_definitions",
iconName: "list-tree",
anyOf: ["forms:definition:read"],
order: 36,