File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
apps/frontend/src/routes/(template)/create-from-template/[shareId] Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 1616 import type { PageData } from " ./$types"
1717 import * as Select from " $lib/components/ui/select/index.js"
1818 import { toast } from " svelte-sonner"
19+ import * as Dialog from " $lib/components/ui/dialog"
20+ import { Button } from " $lib/components/ui/button"
1921
2022 export let data: PageData
2123
9597 <Form .Field {form } name =" name" >
9698 <Form .Control let:attrs >
9799 <Form .Label for =" name" >Name</Form .Label >
98- <Input {...attrs } id ="name" type ="name" placeholder ="Enter new base name" bind:value ={$formData .name } />
100+ <div class =" flex items-center gap-2" >
101+ <Input
102+ {...attrs }
103+ id =" name"
104+ type =" name"
105+ class =" flex-1"
106+ placeholder =" Enter new base name"
107+ bind:value ={$formData .name }
108+ />
109+ <Dialog .Root >
110+ <Dialog .Trigger asChild let:builder >
111+ <Button builders ={[builder ]} variant =" secondary" class =" text-sm" >Preview</Button >
112+ </Dialog .Trigger >
113+ <Dialog .Content class =" sm:max-w-3/4 max-w-3/4 z-[100] h-[800px] !w-1/2 gap-0 space-y-0 p-0" >
114+ <iframe src ={" /s/b/" + shareId } class ="h-full w-full" title ={template ?.name }></iframe >
115+ </Dialog .Content >
116+ </Dialog .Root >
117+ </div >
99118 </Form .Control >
100119 <Form .Description />
101120 <Form .FieldErrors />
You can’t perform that action at this time.
0 commit comments