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() {
2222 </ div >
2323
2424 { /* General Section */ }
25- < div className = "grid grid-cols-[320px_1fr ] gap-28" >
25+ < div className = "grid grid-cols-[280px_1fr ] gap-28" >
2626 < div >
2727 < h2 className = "text-xl mb-2 text-left" > General</ h2 >
2828 < p className = "text-content-secondary text-sm text-left" >
@@ -60,7 +60,7 @@ export function DemoPage() {
6060 </ div >
6161
6262 { /* 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" >
6464 < div >
6565 < h2 className = "text-xl mb-2 text-left" > External Authentication</ h2 >
6666 < p className = "text-content-secondary text-sm text-left" >
@@ -79,16 +79,15 @@ export function DemoPage() {
7979 </ Button >
8080 </ div >
8181
82- < div className = "grid grid-cols-[320px_1fr ] gap-6 gap-28" >
82+ < div className = "grid grid-cols-[280px_1fr ] gap-6 gap-28" >
8383 < div >
8484 < h2 className = "text-xl mb-2 text-left" > Parameters</ h2 >
8585 < p className = "text-content-secondary text-sm text-left" >
8686 These are the settings used by your template.
8787 Please note that immutable parameters cannot be modified once the workspace is created.
8888 </ p >
8989 </ div >
90-
91- < DynamicForm />
90+ < DynamicForm />
9291 </ div >
9392 </ div >
9493 </ div >
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import { Label } from "./components/Label/Label";
2222import { Checkbox } from "./components/Checkbox/Checkbox" ;
2323import { Textarea } from "./components/Textarea/Textarea" ;
2424import { Badge } from "./components/Badge/Badge" ;
25+ import { Button } from "./components/Button/Button" ;
2526
2627export function DynamicForm ( ) {
2728 const serverAddress = "localhost:8100" ;
@@ -280,7 +281,9 @@ export function DynamicForm() {
280281 < span className = "mr-2" > { param . display_name || param . name } </ span >
281282 { ! param . mutable && < Badge variant = "warning" size = "sm" > Immutable</ Badge > }
282283 </ 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 >
284287 </ div >
285288 { param . description && < div className = "text-content-secondary text-sm" > { param . description } </ div > }
286289 < Controller
@@ -520,6 +523,14 @@ export function DynamicForm() {
520523 < FormProvider { ...methods } >
521524 < form className = "flex flex-col gap-10" >
522525 { 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 >
523534 </ form >
524535 </ FormProvider >
525536
You can’t perform that action at this time.
0 commit comments