feat: import backups

This commit is contained in:
Andras Bacsai
2024-01-10 15:42:54 +01:00
parent 6bb45430c9
commit 6b24001876
5 changed files with 81 additions and 52 deletions

View File

@@ -4,7 +4,7 @@
<x-forms.input placeholder="Run cron" id="name" label="Name" required />
<x-forms.input placeholder="php artisan schedule:run" id="command" label="Command" required />
<x-forms.input placeholder="0 0 * * * or daily" id="frequency" label="Frequency" required />
<x-forms.input placeholder="php" id="container" label="Container name" />
<x-forms.input placeholder="php" id="container" helper="You can leave it empty if your resource only have one container." label="Container name" />
<x-forms.button onclick="newTask.close()" type="submit">
Save
</x-forms.button>

View File

@@ -8,7 +8,6 @@
<div class="flex flex-wrap gap-2">
@forelse($resource->scheduled_tasks as $task)
<a class="flex flex-col box"
@if ($resource->type() == 'application')
href="{{ route('project.application.scheduled-tasks', [...$parameters, 'task_uuid' => $task->uuid]) }}">
@elseif ($resource->type() == 'service')
@@ -19,7 +18,7 @@
<div>Last run: {{ data_get($task->latest_log, 'status', 'No runs yet') }}</div>
</a>
@empty
<div>No scheduled tasks configured.</div>
<div class="text-neutral-500">No scheduled tasks configured.</div>
@endforelse
</div>
</div>