<%= t(".heading") %>

<%= form_for @admin_setting, html: { class: "verbose manage" } do |f| %> <%= error_messages_for @admin_setting %>
<%= t(".legend.account_and_invitations") %>
<%= admin_setting_checkbox(f, :account_creation_enabled) %>
<%= f.label :account_creation_enabled, t(".fields.account_creation_enabled") %>
<%= admin_setting_checkbox(f, :creation_requires_invite) %>
<%= f.label :creation_requires_invite, t(".fields.creation_requires_invite") %>
<%= admin_setting_checkbox(f, :request_invite_enabled) %>
<%= f.label :request_invite_enabled, t(".fields.request_invite_enabled") %>
<%= admin_setting_checkbox(f, :invite_from_queue_enabled) %>
<%= f.label :invite_from_queue_enabled, t(".fields.invite_from_queue_enabled") %>
<%= f.label :invite_from_queue_number, t(".fields.invite_from_queue_number") %>
<%= admin_setting_text_field(f, :invite_from_queue_number, size: "3") %>
<%= f.label :invite_from_queue_frequency, t(".fields.invite_from_queue_frequency") %>
<%= admin_setting_text_field(f, :invite_from_queue_frequency, size: "3") %>
<%= f.label :days_to_purge_unactivated, t(".fields.days_to_purge_unactivated") %>
<%= admin_setting_text_field(f, :days_to_purge_unactivated, size: "3") %>
<%= t(".legend.disable_support_form") %>
<%= admin_setting_checkbox(f, :disable_support_form) %>
<%= f.label :disable_support_form, t(".fields.disable_support_form") %>
<%= f.label :disabled_support_form_text, t(".fields.disabled_support_form_text") %>

<%= allowed_html_instructions %>

<%= f.text_area :disabled_support_form_text, disabled: admin_setting_disabled?(:disabled_support_form_text) %>
<%= t(".legend.performance_and_misc") %>
<%= admin_setting_checkbox(f, :suspend_filter_counts) %>
<%= f.label :suspend_filter_counts, t(".fields.suspend_filter_counts") %>
<%= admin_setting_checkbox(f, :tag_wrangling_off) %>
<%= f.label :tag_wrangling_off, t(".fields.tag_wrangling_off") %>
<%= admin_setting_checkbox(f, :downloads_enabled) %>
<%= f.label :downloads_enabled, t(".fields.downloads_enabled") %>
<%= admin_setting_checkbox(f, :enable_test_caching) %>
<%= f.label :enable_test_caching, t(".fields.enable_test_caching") %>
<%= f.label :cache_expiration, t(".fields.cache_expiration") %>
<%= admin_setting_text_field(f, :cache_expiration, size: "3") %>
<%= t(".legend.content") %>
<%= admin_setting_checkbox(f, :hide_spam) %>
<%= f.label :hide_spam, t(".fields.hide_spam") %>
<%= admin_setting_checkbox(f, :guest_comments_off) %>
<%= f.label :guest_comments_off, t(".fields.guest_comments_off") %>
<%= f.label :account_age_threshold_for_comment_spam_check, t(".fields.account_age_threshold_for_comment_spam_check") %>
<%= admin_setting_text_field(f, :account_age_threshold_for_comment_spam_check, size: "3", "aria-describedby": "account-age-threshold-for-comment-spam-check-note") %>

<%= t(".fields.account_age_threshold_for_comment_spam_check_note") %>

<%= t(".legend.actions") %>

<%= f.submit t(".update") %>

<% end %> <% if @admin_setting.invite_from_queue_enabled? %>

<%= t(".queue_status", count: @admin_setting.invite_from_queue_number, time: l(@admin_setting.invite_from_queue_at, format: :long)) %> <%= t(".queue_status_help") %>

<% end %>

<%= t(".last_updated_by_admin", updated_at: @admin_setting.updated_at, admin_name: @admin_setting.last_updated ? @admin_setting.last_updated.login : "---") %>