show.html.haml 933 B

12345678910111213141516171819
  1. - content_for :page_title do
  2. = t('admin.settings.content_retention.title')
  3. - content_for :heading do
  4. %h2= t('admin.settings.title')
  5. = render partial: 'admin/settings/shared/links'
  6. = simple_form_for @admin_settings, url: admin_settings_content_retention_path, html: { method: :patch } do |f|
  7. = render 'shared/error_messages', object: @admin_settings
  8. %p.lead= t('admin.settings.content_retention.preamble')
  9. .fields-group
  10. = f.input :media_cache_retention_period, wrapper: :with_block_label, input_html: { pattern: '[0-9]+' }
  11. = f.input :content_cache_retention_period, wrapper: :with_block_label, input_html: { pattern: '[0-9]+' }, hint: false, warning_hint: t('simple_form.hints.form_admin_settings.content_cache_retention_period')
  12. = f.input :backups_retention_period, wrapper: :with_block_label, input_html: { pattern: '[0-9]+' }
  13. .actions
  14. = f.button :button, t('generic.save_changes'), type: :submit