Skip to content

Commit

Permalink
Merge pull request #1801 from gchq/BAI-1453-change-order-of-template-…
Browse files Browse the repository at this point in the history
…page-options

Switched order of create from template and scratch for new models
  • Loading branch information
IR96334 authored Jan 31, 2025
2 parents 6a4645d + 053f575 commit ad90284
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions frontend/src/entry/overview/TemplatePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,17 @@ export default function TemplatePage({ entry }: TemplatePageProps) {
>
<Stack spacing={2}>
<Typography component='h3' variant='h6' color='primary'>
Create from a template
Create from schema
</Typography>
<Typography>
Create a {`${EntryCardKindLabel[entry.kind]}`} from scratch using a predefined schema.
</Typography>
<Typography>Create a model card using an existing model as a template.</Typography>
<Button
sx={{ width: '100%' }}
variant='contained'
href={`/${entry.kind}/${entry.id}/template`}
href={`/${entry.kind}/${entry.id}/schema`}
LinkComponent={Link}
variant='contained'
sx={{ width: '100%' }}
data-test='createSchemaFromScratchButton'
disabled={!!entry.settings.mirror?.sourceModelId}
>
Create
Expand All @@ -68,17 +71,14 @@ export default function TemplatePage({ entry }: TemplatePageProps) {
>
<Stack spacing={2}>
<Typography component='h3' variant='h6' color='primary'>
Create from schema
</Typography>
<Typography>
Create a {`${EntryCardKindLabel[entry.kind]}`} from scratch using a predefined schema.
Create from a template
</Typography>
<Typography>Create a model card using an existing model as a template.</Typography>
<Button
href={`/${entry.kind}/${entry.id}/schema`}
LinkComponent={Link}
variant='contained'
sx={{ width: '100%' }}
data-test='createSchemaFromScratchButton'
variant='contained'
href={`/${entry.kind}/${entry.id}/template`}
LinkComponent={Link}
disabled={!!entry.settings.mirror?.sourceModelId}
>
Create
Expand Down

0 comments on commit ad90284

Please sign in to comment.