2017-01-12 11:46:24 -08:00
|
|
|
- content_for :page_title do
|
2017-04-12 08:11:49 -07:00
|
|
|
= t('admin.settings.title')
|
2017-01-12 11:46:24 -08:00
|
|
|
|
|
|
|
%table.table
|
|
|
|
%colgroup
|
|
|
|
%col{ width: '35%' }/
|
|
|
|
%thead
|
|
|
|
%tr
|
2017-04-12 08:11:49 -07:00
|
|
|
%th= t('admin.settings.setting')
|
|
|
|
%th= t('admin.settings.click_to_edit')
|
2017-01-12 11:46:24 -08:00
|
|
|
%tbody
|
2017-01-12 18:24:41 -08:00
|
|
|
%tr
|
|
|
|
%td{ rowspan: 2 }
|
2017-04-12 08:11:49 -07:00
|
|
|
%strong= t('admin.settings.contact_information.label')
|
|
|
|
%td= best_in_place @settings['site_contact_username'], :value, url: admin_setting_path(@settings['site_contact_username']), place_holder: t('admin.settings.contact_information.username')
|
2017-01-12 18:24:41 -08:00
|
|
|
%tr
|
2017-04-12 08:11:49 -07:00
|
|
|
%td= best_in_place @settings['site_contact_email'], :value, url: admin_setting_path(@settings['site_contact_email']), place_holder: t('admin.settings.contact_information.email')
|
2017-02-10 13:37:11 -08:00
|
|
|
%tr
|
|
|
|
%td
|
2017-04-12 08:11:49 -07:00
|
|
|
%strong= t('admin.settings.site_title')
|
2017-02-10 13:37:11 -08:00
|
|
|
%td= best_in_place @settings['site_title'], :value, url: admin_setting_path(@settings['site_title'])
|
2017-01-12 11:46:24 -08:00
|
|
|
%tr
|
|
|
|
%td
|
2017-04-12 08:11:49 -07:00
|
|
|
%strong= t('admin.settings.site_description.title')
|
|
|
|
%p= t('admin.settings.site_description.desc_html')
|
2017-01-12 11:46:24 -08:00
|
|
|
%td= best_in_place @settings['site_description'], :value, as: :textarea, url: admin_setting_path(@settings['site_description'])
|
2017-01-12 11:54:14 -08:00
|
|
|
%tr
|
2017-01-12 18:24:41 -08:00
|
|
|
%td
|
2017-04-12 08:11:49 -07:00
|
|
|
%strong= t('admin.settings.site_description_extended.title')
|
|
|
|
%p= t('admin.settings.site_description_extended.desc_html')
|
2017-02-10 13:37:11 -08:00
|
|
|
%td= best_in_place @settings['site_extended_description'], :value, as: :textarea, url: admin_setting_path(@settings['site_extended_description'])
|
2017-04-04 06:26:57 -07:00
|
|
|
%tr
|
|
|
|
%td
|
2017-04-12 08:11:49 -07:00
|
|
|
%strong= t('admin.settings.registrations.open.title')
|
|
|
|
%td= best_in_place @settings['open_registrations'], :value, as: :checkbox, collection: { false: t('admin.settings.registrations.open.disabled'), true: t('admin.settings.registrations.open.enabled')}, url: admin_setting_path(@settings['open_registrations'])
|
2017-04-04 06:26:57 -07:00
|
|
|
%tr
|
|
|
|
%td
|
2017-04-12 08:11:49 -07:00
|
|
|
%strong= t('admin.settings.registrations.closed_message.title')
|
|
|
|
%p= t('admin.settings.registrations.closed_message.desc_html')
|
2017-04-04 06:26:57 -07:00
|
|
|
%td= best_in_place @settings['closed_registrations_message'], :value, as: :textarea, url: admin_setting_path(@settings['closed_registrations_message'])
|