Adopt shared WebUI layout primitives

This commit is contained in:
2026-08-18 10:42:53 +02:00
parent 11f175cbb3
commit 570709b0bd
3 changed files with 14 additions and 29 deletions
@@ -12,7 +12,7 @@ import {
Save,
Trash2
} from "lucide-react";
import {
import { FormGrid,
ActionBlockerHint,
AdminPageLayout,
Button,
@@ -990,7 +990,7 @@ function TemplateDialog({
</div>
}
>
<div className="postbox-form-grid two-columns">
<FormGrid columns={2} gap="small" collapseAt="narrow" className="postbox-form-grid">
<FormField label="Name" documentation={POSTBOX_FIELD_DOCUMENTATION}>
<input
value={draft.name}
@@ -1157,7 +1157,7 @@ function TemplateDialog({
/>
</div>
{linkedCopy.enabled ? (
<div className="postbox-form-grid two-columns">
<FormGrid columns={2} gap="small" collapseAt="narrow" className="postbox-form-grid">
<FormField label="Organization structure" documentation={POSTBOX_FIELD_DOCUMENTATION}>
<select
value={linkedCopy.structure_id || ""}
@@ -1344,10 +1344,10 @@ function TemplateDialog({
/>
</FormField>
) : <div />}
</div>
</FormGrid>
) : null}
</div>
</div>
</FormGrid>
{preview ? <TemplateImpactPreview preview={preview} /> : null}
<p className="postbox-form-note">
Available pattern variables include template, unit, function, and optional context names or slugs. Published revisions are immutable.
@@ -1444,7 +1444,7 @@ function ExactPostboxDialog({
</div>
}
>
<div className="postbox-form-grid two-columns">
<FormGrid columns={2} gap="small" collapseAt="narrow" className="postbox-form-grid">
<FormField label="Name" documentation={POSTBOX_FIELD_DOCUMENTATION}>
<input value={draft.name} onChange={(event) => onChange({ ...draft, name: event.target.value })} />
</FormField>
@@ -1491,7 +1491,7 @@ function ExactPostboxDialog({
onChange={(checked) => onChange({ ...draft, portal_visible: checked })}
/>
</div>
</div>
</FormGrid>
</Dialog>
);
}
@@ -1541,7 +1541,7 @@ function MaterializeDialog({
</div>
}
>
<div className="postbox-form-grid">
<FormGrid gap="small" className="postbox-form-grid">
<FormField label="Organization unit" documentation={POSTBOX_FIELD_DOCUMENTATION}>
<select
value={draft.organization_unit_id}
@@ -1571,7 +1571,7 @@ function MaterializeDialog({
<FormField label="Optional case or service context" documentation={POSTBOX_FIELD_DOCUMENTATION}>
<input value={draft.context_key} onChange={(event) => onChange({ ...draft, context_key: event.target.value })} />
</FormField>
</div>
</FormGrid>
</Dialog>
);
}
+5 -5
View File
@@ -18,7 +18,7 @@ import {
UserRoundCheck,
X
} from "lucide-react";
import {
import { FormGrid,
ActionBlockerHint,
Button,
ConfirmDialog,
@@ -938,7 +938,7 @@ export default function PostboxPage({
</div>
}
>
<div className="postbox-form-grid">
<FormGrid gap="small" className="postbox-form-grid">
<FormField label="Name" documentation={POSTBOX_FIELD_DOCUMENTATION}>
<input
value={groupingDraft.name}
@@ -962,7 +962,7 @@ export default function PostboxPage({
}
/>
</div>
</div>
</FormGrid>
<fieldset className="postbox-source-selector">
<legend>Source postboxes</legend>
{postboxes.map((postbox) => (
@@ -1014,7 +1014,7 @@ export default function PostboxPage({
</div>
}
>
<div className="postbox-compose-grid">
<FormGrid columns={2} gap="small" collapseAt="narrow" className="postbox-compose-grid">
<FormField label="Postbox" documentation={POSTBOX_FIELD_DOCUMENTATION}>
<select
value={messageDraft.postbox_id}
@@ -1099,7 +1099,7 @@ export default function PostboxPage({
/>
</FormField>
</div>
</div>
</FormGrid>
</Dialog>
<ConfirmDialog