You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
2.3 KiB

  1. - content_for :page_title do
  2. = t('admin.settings.title')
  3. = simple_form_for @admin_settings, url: admin_settings_path, html: { method: :patch } do |f|
  4. .fields-group
  5. = f.input :site_title, placeholder: t('admin.settings.site_title')
  6. = f.input :site_description, wrapper: :with_block_label, as: :text, label: t('admin.settings.site_description.title'), hint: t('admin.settings.site_description.desc_html'), input_html: { rows: 8 }
  7. = f.input :site_contact_username, placeholder: t('admin.settings.contact_information.username')
  8. = f.input :site_contact_email, placeholder: t('admin.settings.contact_information.email')
  9. %hr/
  10. .fields-group
  11. = f.input :thumbnail, as: :file, wrapper: :with_block_label, label: t('admin.settings.thumbnail.title'), hint: t('admin.settings.thumbnail.desc_html')
  12. %hr/
  13. .fields-group
  14. = f.input :timeline_preview, as: :boolean, wrapper: :with_label, label: t('admin.settings.timeline_preview.title'), hint: t('admin.settings.timeline_preview.desc_html')
  15. .fields-group
  16. = f.input :open_registrations, as: :boolean, wrapper: :with_label, label: t('admin.settings.registrations.open.title'), hint: t('admin.settings.registrations.open.desc_html')
  17. .fields-group
  18. = f.input :open_deletion, as: :boolean, wrapper: :with_label, label: t('admin.settings.registrations.deletion.title'), hint: t('admin.settings.registrations.deletion.desc_html')
  19. .fields-group
  20. = f.input :closed_registrations_message, as: :text, wrapper: :with_block_label, label: t('admin.settings.registrations.closed_message.title'), hint: t('admin.settings.registrations.closed_message.desc_html'), input_html: { rows: 8 }
  21. %hr/
  22. .fields-group
  23. = f.input :site_extended_description, wrapper: :with_block_label, as: :text, label: t('admin.settings.site_description_extended.title'), hint: t('admin.settings.site_description_extended.desc_html'), input_html: { rows: 8 }
  24. = f.input :site_terms, wrapper: :with_block_label, as: :text, label: t('admin.settings.site_terms.title'), hint: t('admin.settings.site_terms.desc_html'), input_html: { rows: 8 }
  25. %hr/
  26. .fields-group
  27. = f.input :bootstrap_timeline_accounts, wrapper: :with_block_label, label: t('admin.settings.bootstrap_timeline_accounts.title'), hint: t('admin.settings.bootstrap_timeline_accounts.desc_html')
  28. .actions
  29. = f.button :button, t('generic.save_changes'), type: :submit