2022-10-22 20:44:41 +11:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('admin.settings.content_retention.title')
|
|
|
|
|
|
|
|
- content_for :heading do
|
|
|
|
%h2= t('admin.settings.title')
|
|
|
|
= render partial: 'admin/settings/shared/links'
|
|
|
|
|
|
|
|
= simple_form_for @admin_settings, url: admin_settings_content_retention_path, html: { method: :patch } do |f|
|
|
|
|
= render 'shared/error_messages', object: @admin_settings
|
|
|
|
|
|
|
|
%p.lead= t('admin.settings.content_retention.preamble')
|
|
|
|
|
|
|
|
.fields-group
|
2024-03-15 22:19:00 +11:00
|
|
|
= f.input :media_cache_retention_period,
|
|
|
|
input_html: { pattern: '[0-9]+' },
|
|
|
|
wrapper: :with_block_label
|
2024-04-27 01:17:41 +10:00
|
|
|
= f.input :backups_retention_period,
|
|
|
|
input_html: { pattern: '[0-9]+' },
|
|
|
|
wrapper: :with_block_label
|
|
|
|
|
|
|
|
%h4= t('admin.settings.content_retention.danger_zone')
|
|
|
|
|
|
|
|
.fields-group
|
2024-03-15 22:19:00 +11:00
|
|
|
= f.input :content_cache_retention_period,
|
|
|
|
hint: false,
|
|
|
|
input_html: { pattern: '[0-9]+' },
|
|
|
|
warning_hint: t('simple_form.hints.form_admin_settings.content_cache_retention_period'),
|
|
|
|
wrapper: :with_block_label
|
2022-10-22 20:44:41 +11:00
|
|
|
|
|
|
|
.actions
|
|
|
|
= f.button :button, t('generic.save_changes'), type: :submit
|