65 lines
2.5 KiB
Text
65 lines
2.5 KiB
Text
= form_for @application_setting, url: admin_application_settings_path, html: { class: 'form-horizontal fieldset-form' } do |f|
|
|
= form_errors(@application_setting)
|
|
|
|
%fieldset
|
|
.form-group
|
|
.col-sm-offset-2.col-sm-10
|
|
.checkbox
|
|
= f.label :recaptcha_enabled do
|
|
= f.check_box :recaptcha_enabled
|
|
Enable reCAPTCHA
|
|
%span.help-block#recaptcha_help_block Helps prevent bots from creating accounts
|
|
|
|
.form-group
|
|
= f.label :recaptcha_site_key, 'reCAPTCHA Site Key', class: 'control-label col-sm-2'
|
|
.col-sm-10
|
|
= f.text_field :recaptcha_site_key, class: 'form-control'
|
|
.help-block
|
|
Generate site and private keys at
|
|
%a{ href: 'http://www.google.com/recaptcha', target: 'blank' } http://www.google.com/recaptcha
|
|
|
|
.form-group
|
|
= f.label :recaptcha_private_key, 'reCAPTCHA Private Key', class: 'control-label col-sm-2'
|
|
.col-sm-10
|
|
= f.text_field :recaptcha_private_key, class: 'form-control'
|
|
|
|
.form-group
|
|
.col-sm-offset-2.col-sm-10
|
|
.checkbox
|
|
= f.label :akismet_enabled do
|
|
= f.check_box :akismet_enabled
|
|
Enable Akismet
|
|
%span.help-block#akismet_help_block Helps prevent bots from creating issues
|
|
|
|
.form-group
|
|
= f.label :akismet_api_key, 'Akismet API Key', class: 'control-label col-sm-2'
|
|
.col-sm-10
|
|
= f.text_field :akismet_api_key, class: 'form-control'
|
|
.help-block
|
|
Generate API key at
|
|
%a{ href: 'http://www.akismet.com', target: 'blank' } http://www.akismet.com
|
|
|
|
.form-group
|
|
.col-sm-offset-2.col-sm-10
|
|
.checkbox
|
|
= f.label :unique_ips_limit_enabled do
|
|
= f.check_box :unique_ips_limit_enabled
|
|
Limit sign in from multiple ips
|
|
%span.help-block#unique_ip_help_block
|
|
Helps prevent malicious users hide their activity
|
|
|
|
.form-group
|
|
= f.label :unique_ips_limit_per_user, 'IPs per user', class: 'control-label col-sm-2'
|
|
.col-sm-10
|
|
= f.number_field :unique_ips_limit_per_user, class: 'form-control'
|
|
.help-block
|
|
Maximum number of unique IPs per user
|
|
|
|
.form-group
|
|
= f.label :unique_ips_limit_time_window, 'IP expiration time', class: 'control-label col-sm-2'
|
|
.col-sm-10
|
|
= f.number_field :unique_ips_limit_time_window, class: 'form-control'
|
|
.help-block
|
|
How many seconds an IP will be counted towards the limit
|
|
|
|
= f.submit 'Save changes', class: "btn btn-success"
|