coolify/resources/views/livewire/project/database/backup-edit/retention.blade.php
Andras Bacsai fc9e61b7b4 feat(services): open resource settings in a modal with restart limits
Move service application and database settings into an embedded modal with a footer, subtitle helper, and Docker restart-count control. Accept max_restart_count on the service applications API, cap compose YAML collection aliases, and tighten status, backup, and database sidebar layouts.
2026-09-10 17:39:56 +02:00

34 lines
2.2 KiB
PHP

<form wire:submit="submit">
<x-unsaved-bar action="submit" />
<x-application.settings-section title="Retention"
description="The first reached limit removes the oldest backup. Use 0 for unlimited retention.">
<div class="space-y-6">
<div>
<h3 class="mb-3 text-sm font-semibold text-black dark:text-fg">Local backups</h3>
<div class="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
<x-forms.input label="Backups to keep" id="databaseBackupRetentionAmountLocally"
type="number" min="0" helper="Maximum number of recent local backups." required />
<x-forms.input label="Days to keep" id="databaseBackupRetentionDaysLocally"
type="number" min="0" helper="Remove local backups older than this many days." required />
<x-forms.input label="Maximum storage (GB)"
id="databaseBackupRetentionMaxStorageLocally" type="number" min="0" step="any"
helper="Remove oldest local backups after this total size is reached." required />
</div>
</div>
<div class="border-t border-neutral-200 pt-6 dark:border-white/[0.06]">
<h3 class="mb-3 text-sm font-semibold text-black dark:text-fg">S3 backups</h3>
<div class="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
<x-forms.input label="Backups to keep" id="databaseBackupRetentionAmountS3"
type="number" min="0" helper="Maximum number of recent S3 backups." required />
<x-forms.input label="Days to keep" id="databaseBackupRetentionDaysS3"
type="number" min="0" helper="Remove S3 backups older than this many days." required />
<x-forms.input label="Maximum storage (GB)" id="databaseBackupRetentionMaxStorageS3"
type="number" min="0" step="any"
helper="Remove oldest S3 backups after this total size is reached." required />
</div>
</div>
</div>
</x-application.settings-section>
</form>