Skip to content

Commit 8e91d95

Browse files
committed
refactor: Improve layout and add checkbox for task enablement in scheduled task form
1 parent 17d5563 commit 8e91d95

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

resources/views/livewire/project/shared/scheduled-task/show.blade.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<form wire:submit="submit" class="w-full">
1313
<div class="flex flex-col gap-2 pb-2">
14-
<div class="flex items-end gap-2 pt-4">
14+
<div class="flex gap-2 items-end pt-4">
1515
<h2>Scheduled Task</h2>
1616
<x-forms.button type="submit">
1717
Save
@@ -23,7 +23,10 @@
2323
step2ButtonText="Permanently Delete" />
2424

2525
</div>
26-
<div class="flex w-full gap-2">
26+
<div class="w-48">
27+
<x-forms.checkbox instantSave id="task.enabled" label="Enabled" />
28+
</div>
29+
<div class="flex gap-2 w-full">
2730
<x-forms.input placeholder="Name" id="task.name" label="Name" required />
2831
<x-forms.input placeholder="php artisan schedule:run" id="task.command" label="Command" required />
2932
<x-forms.input placeholder="0 0 * * * or daily" id="task.frequency" label="Frequency" required />

0 commit comments

Comments
 (0)