Adopt shared WebUI layout primitives
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { useEffect, useMemo, useState } from "react";
|
import { useEffect, useMemo, useState } from "react";
|
||||||
import {
|
import { ActionToolbar,
|
||||||
ActionBlockerHint,
|
ActionBlockerHint,
|
||||||
FormField,
|
FormField,
|
||||||
hasScope,
|
hasScope,
|
||||||
@@ -65,7 +65,7 @@ export default function PersonalViewsPanel({
|
|||||||
return (
|
return (
|
||||||
<div className="views-personal-panel">
|
<div className="views-personal-panel">
|
||||||
{options.length > 1 && (
|
{options.length > 1 && (
|
||||||
<div className="views-owner-toolbar">
|
<ActionToolbar className="views-owner-toolbar">
|
||||||
<FormField
|
<FormField
|
||||||
label="i18n:govoplan-views.view_owner"
|
label="i18n:govoplan-views.view_owner"
|
||||||
documentation={VIEWS_FIELD_DOCUMENTATION}
|
documentation={VIEWS_FIELD_DOCUMENTATION}
|
||||||
@@ -81,7 +81,7 @@ export default function PersonalViewsPanel({
|
|||||||
))}
|
))}
|
||||||
</select>
|
</select>
|
||||||
</FormField>
|
</FormField>
|
||||||
</div>
|
</ActionToolbar>
|
||||||
)}
|
)}
|
||||||
<ViewsAdminPanel
|
<ViewsAdminPanel
|
||||||
key={owner.key}
|
key={owner.key}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import {
|
|||||||
Square,
|
Square,
|
||||||
Trash2
|
Trash2
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
import {
|
import { FormGrid,
|
||||||
ActionBlockerHint,
|
ActionBlockerHint,
|
||||||
AdminPageLayout,
|
AdminPageLayout,
|
||||||
Button,
|
Button,
|
||||||
@@ -869,7 +869,7 @@ export default function ViewsAdminPanel({
|
|||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<div className="form-grid">
|
<FormGrid columns={1} collapseAt="standard" className="">
|
||||||
<FormField
|
<FormField
|
||||||
label="i18n:govoplan-views.name"
|
label="i18n:govoplan-views.name"
|
||||||
documentation={VIEWS_FIELD_DOCUMENTATION}
|
documentation={VIEWS_FIELD_DOCUMENTATION}
|
||||||
@@ -902,7 +902,7 @@ export default function ViewsAdminPanel({
|
|||||||
<p className="muted small-note">
|
<p className="muted small-note">
|
||||||
i18n:govoplan-views.first_draft_help
|
i18n:govoplan-views.first_draft_help
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</FormGrid>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
|
|
||||||
<AssignmentDialog
|
<AssignmentDialog
|
||||||
@@ -1244,7 +1244,7 @@ function AssignmentDialog({
|
|||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<div className="form-grid two responsive-form-grid">
|
<FormGrid columns={2} collapseAt="standard" className="">
|
||||||
<FormField
|
<FormField
|
||||||
label="i18n:govoplan-views.target_level"
|
label="i18n:govoplan-views.target_level"
|
||||||
help={editing !== "new" ? "i18n:govoplan-views.assignment_target_immutable" : undefined}
|
help={editing !== "new" ? "i18n:govoplan-views.assignment_target_immutable" : undefined}
|
||||||
@@ -1405,7 +1405,7 @@ function AssignmentDialog({
|
|||||||
help="i18n:govoplan-views.pin_revision_help"
|
help="i18n:govoplan-views.pin_revision_help"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</FormGrid>
|
||||||
{draft.mode === "required" && (
|
{draft.mode === "required" && (
|
||||||
<DismissibleAlert
|
<DismissibleAlert
|
||||||
tone={requiredMissing.length ? "danger" : "warning"}
|
tone={requiredMissing.length ? "danger" : "warning"}
|
||||||
|
|||||||
Reference in New Issue
Block a user