💄 Standardize go back to blueprints

This commit is contained in:
Fred KISSIE
2025-10-30 00:27:27 +01:00
parent 77364488c2
commit 72c9956190
3 changed files with 11 additions and 20 deletions

View File

@@ -1167,7 +1167,7 @@
"blueprints": "Blueprints", "blueprints": "Blueprints",
"blueprintsDescription": "Blueprints are declarative YAML configurations that define your resources and their settings", "blueprintsDescription": "Blueprints are declarative YAML configurations that define your resources and their settings",
"blueprintAdd": "Add Blueprint", "blueprintAdd": "Add Blueprint",
"blueprintGoBack": "Back to blueprints", "blueprintGoBack": "See all Blueprints",
"blueprintCreate": "Create blueprint", "blueprintCreate": "Create blueprint",
"blueprintCreateDescription2": "Follow the steps below to create and apply a new blueprint", "blueprintCreateDescription2": "Follow the steps below to create and apply a new blueprint",
"blueprintDetails": "Blueprint details", "blueprintDetails": "Blueprint details",

View File

@@ -47,18 +47,10 @@ export default async function BluePrintDetailPage(props: BluePrintsPageProps) {
return ( return (
<> <>
<div className="flex flex-col gap-2 items-start"> <SettingsSectionTitle
<Button variant="link" asChild className="gap-1 px-0"> title={t("blueprintDetails")}
<Link href={`/${params.orgId}/settings/blueprints`}> description={t("blueprintDetailsDescription")}
<ArrowLeft className="size-4 flex-none" /> />
{t("blueprintGoBack")}
</Link>
</Button>
<SettingsSectionTitle
title={t("blueprintDetails")}
description={t("blueprintDetailsDescription")}
/>
</div>
<BlueprintDetailsForm blueprint={blueprint} /> <BlueprintDetailsForm blueprint={blueprint} />
</> </>

View File

@@ -24,17 +24,16 @@ export default async function CreateBlueprintPage(
return ( return (
<> <>
<div className="flex flex-col gap-2 items-start"> <div className="flex gap-2 justify-between">
<Button variant="link" asChild className="gap-1 px-0">
<Link href={`/${orgId}/settings/blueprints`}>
<ArrowLeft className="size-4 flex-none" />{" "}
{t("blueprintGoBack")}
</Link>
</Button>
<SettingsSectionTitle <SettingsSectionTitle
title={t("blueprintCreate")} title={t("blueprintCreate")}
description={t("blueprintCreateDescription2")} description={t("blueprintCreateDescription2")}
/> />
<Button variant="outline" asChild>
<Link href={`/${orgId}/settings/blueprints`}>
{t("blueprintGoBack")}
</Link>
</Button>
</div> </div>
<CreateBlueprintForm orgId={orgId} /> <CreateBlueprintForm orgId={orgId} />