@@ -10,13 +10,15 @@ import {
10
10
} from "api/typesGenerated" ;
11
11
import { PremiumBadge } from "components/Badges/Badges" ;
12
12
import { Button } from "components/Button/Button" ;
13
+ import { FeatureStageBadge } from "components/FeatureStageBadge/FeatureStageBadge" ;
13
14
import {
14
15
FormFields ,
15
16
FormFooter ,
16
17
FormSection ,
17
18
HorizontalForm ,
18
19
} from "components/Form/Form" ;
19
20
import { IconField } from "components/IconField/IconField" ;
21
+ import { Link } from "components/Link/Link" ;
20
22
import { Spinner } from "components/Spinner/Spinner" ;
21
23
import { Stack } from "components/Stack/Stack" ;
22
24
import {
@@ -25,6 +27,7 @@ import {
25
27
} from "components/StackLabel/StackLabel" ;
26
28
import { type FormikTouched , useFormik } from "formik" ;
27
29
import type { FC } from "react" ;
30
+ import { docs } from "utils/docs" ;
28
31
import {
29
32
displayNameValidator ,
30
33
getFormHelpers ,
@@ -230,21 +233,37 @@ export const TemplateSettingsForm: FC<TemplateSettingsForm> = ({
230
233
size = "small"
231
234
id = "use_classic_parameter_flow"
232
235
name = "use_classic_parameter_flow"
233
- checked = { form . values . use_classic_parameter_flow }
234
- onChange = { form . handleChange }
236
+ checked = { ! form . values . use_classic_parameter_flow }
237
+ onChange = { ( event ) =>
238
+ form . setFieldValue (
239
+ "use_classic_parameter_flow" ,
240
+ ! event . currentTarget . checked ,
241
+ )
242
+ }
235
243
disabled = { false }
236
244
/>
237
245
}
238
246
label = {
239
247
< StackLabel >
240
- Use classic workspace creation form
248
+ < span className = "flex flex-row gap-2" >
249
+ Enable dynamic parameters for workspace creation
250
+ < FeatureStageBadge contentType = { "beta" } size = "sm" />
251
+ </ span >
241
252
< StackLabelHelperText >
242
- < span >
243
- Show the original workspace creation form and workspace
244
- parameters settings form without dynamic parameters or live
245
- updates. Recommended if your provisioners aren't updated or
246
- the dynamic form causes issues.
247
- </ span >
253
+ < div >
254
+ The new workspace form allows you to design your template
255
+ with new form types and identity-aware conditional
256
+ parameters. The form will only present options that are
257
+ compatible and available.
258
+ </ div >
259
+ < Link
260
+ className = "text-xs"
261
+ href = { docs (
262
+ "/admin/templates/extending-templates/parameters#dynamic-parameters-beta" ,
263
+ ) }
264
+ >
265
+ Learn more
266
+ </ Link >
248
267
</ StackLabelHelperText >
249
268
</ StackLabel >
250
269
}