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.

58 lines
2.2 KiB

  1. - content_for :page_title do
  2. = t('admin.settings.title')
  3. = form_tag(admin_settings_path, method: :put, class: 'simple_form', style: 'max-width: 100%') do
  4. %table.table
  5. %thead
  6. %tr
  7. %th{ width: '40%' }
  8. = t('admin.settings.setting')
  9. %th
  10. %tbody
  11. %tr
  12. %td
  13. %strong= t('admin.settings.contact_information.label')
  14. %td= text_field_tag :site_contact_username,
  15. @settings['site_contact_username'].value,
  16. place_holder: t('admin.settings.contact_information.username')
  17. %tr
  18. %td
  19. %strong= t('admin.accounts.email')
  20. %td= text_field_tag :site_contact_email,
  21. @settings['site_contact_email'].value,
  22. place_holder: t('admin.settings.contact_information.email')
  23. %tr
  24. %td
  25. %strong= t('admin.settings.site_title')
  26. %td= text_field_tag :site_title,
  27. @settings['site_title'].value
  28. %tr
  29. %td
  30. %strong= t('admin.settings.site_description.title')
  31. %p= t('admin.settings.site_description.desc_html')
  32. %td= text_area_tag :site_description,
  33. @settings['site_description'].value,
  34. rows: 8
  35. %tr
  36. %td
  37. %strong= t('admin.settings.site_description_extended.title')
  38. %p= t('admin.settings.site_description_extended.desc_html')
  39. %td= text_area_tag :site_extended_description,
  40. @settings['site_extended_description'].value,
  41. rows: 8
  42. %tr
  43. %td
  44. %strong= t('admin.settings.registrations.open.title')
  45. %td
  46. = select_tag :open_registrations,
  47. options_for_select({ t('admin.settings.registrations.open.disabled') => false, t('admin.settings.registrations.open.enabled') => true }, @settings['open_registrations'].value)
  48. %tr
  49. %td
  50. %strong= t('admin.settings.registrations.closed_message.title')
  51. %p= t('admin.settings.registrations.closed_message.desc_html')
  52. %td= text_area_tag :closed_registrations_message,
  53. @settings['closed_registrations_message'].value,
  54. rows: 8
  55. .simple_form.actions
  56. = button_tag t('generic.save_changes'), type: :submit, class: :btn