This commit is contained in:
Saeed Vaziry
2025-05-30 11:02:07 +02:00
parent 1b9f826bcb
commit 104cd2fce8
14 changed files with 572 additions and 266 deletions

View File

@ -107,25 +107,27 @@ export default function WorkerForm({ serverId, worker, children }: { serverId: n
/>
<InputError message={form.errors.numprocs} />
</FormField>
<div className="grid grid-cols-2 gap-6">
{/*auto start*/}
<FormField>
<div className="flex items-center space-x-2">
<Switch id="auto_start" checked={form.data.auto_start} onCheckedChange={(value) => form.setData('auto_start', value)} />
<Label htmlFor="auto_start">Auto start</Label>
<InputError message={form.errors.auto_start} />
</div>
</FormField>
{/*auto restart*/}
<FormField>
<div className="flex items-center space-x-2">
<Switch id="auto_restart" checked={form.data.auto_restart} onCheckedChange={(value) => form.setData('auto_restart', value)} />
<Label htmlFor="auto_restart">Auto restart</Label>
<InputError message={form.errors.auto_restart} />
</div>
</FormField>
</div>
</FormFields>
{/*auto start*/}
<FormField>
<div className="flex items-center space-x-2">
<Switch id="auto_start" checked={form.data.auto_start} onCheckedChange={(value) => form.setData('auto_start', value)} />
<Label htmlFor="auto_start">Auto start</Label>
<InputError message={form.errors.auto_start} />
</div>
</FormField>
{/*auto restart*/}
<FormField>
<div className="flex items-center space-x-2">
<Switch id="auto_restart" checked={form.data.auto_restart} onCheckedChange={(value) => form.setData('auto_restart', value)} />
<Label htmlFor="auto_restart">Auto restart</Label>
<InputError message={form.errors.auto_restart} />
</div>
</FormField>
</Form>
<DialogFooter>
<DialogClose asChild>