2017-05-04 18:12:44 +02:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('admin.settings.title')
|
|
|
|
|
2017-05-04 20:37:57 +02:00
|
|
|
= form_tag(admin_settings_path, method: :put, class: 'simple_form', style: 'max-width: 100%') do
|
2017-05-04 18:12:44 +02:00
|
|
|
%table.table
|
|
|
|
%thead
|
|
|
|
%tr
|
2017-05-08 03:35:25 +02:00
|
|
|
%th{ width: '40%' }
|
2017-05-04 18:12:44 +02:00
|
|
|
= t('admin.settings.setting')
|
|
|
|
%th
|
|
|
|
%tbody
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%strong= t('admin.settings.contact_information.label')
|
2017-07-11 15:27:59 +02:00
|
|
|
%td= text_field_tag :site_contact_username, @settings['site_contact_username'].value, place_holder: t('admin.settings.contact_information.username')
|
2017-05-04 18:12:44 +02:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%strong= t('admin.accounts.email')
|
2017-07-11 15:27:59 +02:00
|
|
|
%td= text_field_tag :site_contact_email, @settings['site_contact_email'].value, place_holder: t('admin.settings.contact_information.email')
|
2017-05-04 18:12:44 +02:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%strong= t('admin.settings.site_title')
|
2017-07-11 15:27:59 +02:00
|
|
|
%td= text_field_tag :site_title, @settings['site_title'].value
|
2017-05-04 18:12:44 +02:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%strong= t('admin.settings.site_description.title')
|
|
|
|
%p= t('admin.settings.site_description.desc_html')
|
2017-07-11 15:27:59 +02:00
|
|
|
%td= text_area_tag :site_description, @settings['site_description'].value, rows: 8
|
2017-05-04 18:12:44 +02:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%strong= t('admin.settings.site_description_extended.title')
|
|
|
|
%p= t('admin.settings.site_description_extended.desc_html')
|
2017-07-11 15:27:59 +02:00
|
|
|
%td= text_area_tag :site_extended_description, @settings['site_extended_description'].value, rows: 8
|
2017-07-04 15:19:24 +02:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%strong= t('admin.settings.site_terms.title')
|
|
|
|
%p= t('admin.settings.site_terms.desc_html')
|
2017-07-11 15:27:59 +02:00
|
|
|
%td= text_area_tag :site_terms, @settings['site_terms'].value, rows: 8
|
2017-05-04 18:12:44 +02:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%strong= t('admin.settings.registrations.open.title')
|
2017-07-11 15:27:59 +02:00
|
|
|
%p= t('admin.settings.registrations.open.desc_html')
|
2017-05-04 18:12:44 +02:00
|
|
|
%td
|
2017-07-11 15:27:59 +02:00
|
|
|
= select_tag :open_registrations, options_for_select({ t('simple_form.no') => false, t('simple_form.yes') => true }, @settings['open_registrations'].value)
|
2017-05-04 18:12:44 +02:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%strong= t('admin.settings.registrations.closed_message.title')
|
|
|
|
%p= t('admin.settings.registrations.closed_message.desc_html')
|
2017-07-11 15:27:59 +02:00
|
|
|
%td= text_area_tag :closed_registrations_message, @settings['closed_registrations_message'].value, rows: 8
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%strong= t('admin.settings.registrations.deletion.title')
|
|
|
|
%p= t('admin.settings.registrations.deletion.desc_html')
|
|
|
|
%td
|
|
|
|
= select_tag :open_deletion, options_for_select({ t('simple_form.no') => false, t('simple_form.yes') => true }, @settings['open_deletion'].value)
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%strong= t('admin.settings.timeline_preview.title')
|
|
|
|
%p= t('admin.settings.timeline_preview.desc_html')
|
|
|
|
%td
|
|
|
|
= select_tag :timeline_preview, options_for_select({ t('simple_form.no') => false, t('simple_form.yes') => true }, @settings['timeline_preview'].value)
|
2017-05-04 18:12:44 +02:00
|
|
|
|
|
|
|
.simple_form.actions
|
|
|
|
= button_tag t('generic.save_changes'), type: :submit, class: :btn
|