about summary refs log tree commit diff
path: root/app/views/admin/settings/edit.html.haml
blob: edb69e3603356b025afc06f5d85c4d1da2a5d515 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
- content_for :page_title do
  = t('admin.settings.title')

= form_tag(admin_settings_path, method: :put, class: 'simple_form', style: 'max-width: 100%') do
  %table.table
    %thead
      %tr
        %th{ width: '40%' }
          = t('admin.settings.setting')
        %th
    %tbody
      %tr
        %td
          %strong= t('admin.settings.contact_information.label')
        %td= text_field_tag :site_contact_username,
          @settings['site_contact_username'].value,
          place_holder: t('admin.settings.contact_information.username')
      %tr
        %td
          %strong= t('admin.accounts.email')
        %td= text_field_tag :site_contact_email,
          @settings['site_contact_email'].value,
          place_holder: t('admin.settings.contact_information.email')
      %tr
        %td
          %strong= t('admin.settings.site_title')
        %td= text_field_tag :site_title,
          @settings['site_title'].value
      %tr
        %td
          %strong= t('admin.settings.site_description.title')
          %p= t('admin.settings.site_description.desc_html')
        %td= text_area_tag :site_description,
          @settings['site_description'].value,
          rows: 8
      %tr
        %td
          %strong= t('admin.settings.site_description_extended.title')
          %p= t('admin.settings.site_description_extended.desc_html')
        %td= text_area_tag :site_extended_description,
          @settings['site_extended_description'].value,
          rows: 8
      %tr
        %td
          %strong= t('admin.settings.registrations.open.title')
        %td
          = select_tag :open_registrations,
          options_for_select({ t('admin.settings.registrations.open.disabled') => false, t('admin.settings.registrations.open.enabled') => true }, @settings['open_registrations'].value)
      %tr
        %td
          %strong= t('admin.settings.registrations.closed_message.title')
          %p= t('admin.settings.registrations.closed_message.desc_html')
        %td= text_area_tag :closed_registrations_message,
          @settings['closed_registrations_message'].value,
          rows: 8

  .simple_form.actions
    = button_tag t('generic.save_changes'), type: :submit, class: :btn