File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export function DemoPage() {
22
22
</ div >
23
23
24
24
{ /* General Section */ }
25
- < div className = "grid grid-cols-[320px_1fr ] gap-28" >
25
+ < div className = "grid grid-cols-[280px_1fr ] gap-28" >
26
26
< div >
27
27
< h2 className = "text-xl mb-2 text-left" > General</ h2 >
28
28
< p className = "text-content-secondary text-sm text-left" >
@@ -60,7 +60,7 @@ export function DemoPage() {
60
60
</ div >
61
61
62
62
{ /* External Authentication Section */ }
63
- < div className = "grid grid-cols-[320px_1fr ] gap-6 gap-28" >
63
+ < div className = "grid grid-cols-[280px_1fr ] gap-6 gap-28" >
64
64
< div >
65
65
< h2 className = "text-xl mb-2 text-left" > External Authentication</ h2 >
66
66
< p className = "text-content-secondary text-sm text-left" >
@@ -79,16 +79,15 @@ export function DemoPage() {
79
79
</ Button >
80
80
</ div >
81
81
82
- < div className = "grid grid-cols-[320px_1fr ] gap-6 gap-28" >
82
+ < div className = "grid grid-cols-[280px_1fr ] gap-6 gap-28" >
83
83
< div >
84
84
< h2 className = "text-xl mb-2 text-left" > Parameters</ h2 >
85
85
< p className = "text-content-secondary text-sm text-left" >
86
86
These are the settings used by your template.
87
87
Please note that immutable parameters cannot be modified once the workspace is created.
88
88
</ p >
89
89
</ div >
90
-
91
- < DynamicForm />
90
+ < DynamicForm />
92
91
</ div >
93
92
</ div >
94
93
</ div >
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import { Label } from "./components/Label/Label";
22
22
import { Checkbox } from "./components/Checkbox/Checkbox" ;
23
23
import { Textarea } from "./components/Textarea/Textarea" ;
24
24
import { Badge } from "./components/Badge/Badge" ;
25
+ import { Button } from "./components/Button/Button" ;
25
26
26
27
export function DynamicForm ( ) {
27
28
const serverAddress = "localhost:8100" ;
@@ -280,7 +281,9 @@ export function DynamicForm() {
280
281
< span className = "mr-2" > { param . display_name || param . name } </ span >
281
282
{ ! param . mutable && < Badge variant = "warning" size = "sm" > Immutable</ Badge > }
282
283
</ label >
283
- < output className = "text-sm font-medium tabular-nums" > { parameterValue ( param . value ) } </ output >
284
+ < div className = "bg-surface-secondary rounded-md px-2" >
285
+ < output className = "text-sm font-medium tabular-nums" > { parameterValue ( param . value ) } </ output >
286
+ </ div >
284
287
</ div >
285
288
{ param . description && < div className = "text-content-secondary text-sm" > { param . description } </ div > }
286
289
< Controller
@@ -520,6 +523,14 @@ export function DynamicForm() {
520
523
< FormProvider { ...methods } >
521
524
< form className = "flex flex-col gap-10" >
522
525
{ sortedParams && sortedParams . map ( ( param ) => renderParameter ( param ) ) }
526
+ < div className = "flex flex-row gap-4 justify-end mt-10" >
527
+ < Button variant = "outline" >
528
+ Cancel
529
+ </ Button >
530
+ < Button >
531
+ Create workspace
532
+ </ Button >
533
+ </ div >
523
534
</ form >
524
535
</ FormProvider >
525
536
You can’t perform that action at this time.
0 commit comments