generated from coulomb/repo-seed
Some checks failed
Test / test (push) Has been cancelled
Implements IHUB-WP-0009: closes four GAAF-2026 gaps before domain hub work begins. - TypeRegistry helper + controllers/views (hub_kind, hub_capability_manifest) - HubCapabilityManifest entity with validation and registry linkage - ARCHITECTURE-LAYERS.md + CI-enforced boundary contracts - Alembic migration 1743724800, fitness tests (Test/Architecture/) - GAAF spec, Operational Architecture spec, domain hub extension guide - Updates to CLAUDE.md, SCOPE.md, Schema.sql, Routes, FrontController, Types state_hub_sync: pending (tunnel was STALE at completion time; run fix-consistency) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
31 lines
1.0 KiB
Haskell
31 lines
1.0 KiB
Haskell
module Web.View.Widgets.Edit where
|
|
|
|
import Web.Types
|
|
import Generated.Types
|
|
import IHP.Prelude
|
|
import IHP.ViewPrelude
|
|
import Web.View.Widgets.New (renderForm)
|
|
|
|
data EditView = EditView
|
|
{ widget :: !Widget
|
|
, hubs :: ![Hub]
|
|
, adapterSpecs :: ![WidgetAdapterSpec]
|
|
, widgetTypes :: ![WidgetTypeRegistry]
|
|
, policyScopes :: ![PolicyScopeRegistry]
|
|
}
|
|
|
|
instance View EditView where
|
|
html EditView { .. } = [hsx|
|
|
<div class="max-w-lg">
|
|
<div class="flex items-center gap-2 text-sm text-gray-500 mb-4">
|
|
<a href={WidgetsAction} class="hover:text-gray-700">Widgets</a>
|
|
<span>/</span>
|
|
<a href={ShowWidgetAction { widgetId = widget.id }} class="hover:text-gray-700">{widget.name}</a>
|
|
<span>/</span>
|
|
<span>Edit</span>
|
|
</div>
|
|
<h1 class="text-2xl font-semibold mb-6">Edit Widget</h1>
|
|
{renderForm widget hubs adapterSpecs widgetTypes policyScopes}
|
|
</div>
|
|
|]
|