<% posts = current_site.the_posts('page').public_posts.all.decorate %>
tab-pane ">

<%= select_tag "options[home_page]", options_from_collection_for_select(posts, :id, :the_title, current_site.get_option('home_page')), include_blank: t('.default_page', default: '- Default -'), class: "form-control select" %>

<%= select_tag "options[error_404]", options_from_collection_for_select(posts, :id, :the_title, current_site.get_option('error_404')), include_blank: t('.default_page', default: '- Default -'), class: "form-control select" %>
<%= f.label t('.status', default: 'Site Status') %>
<%= f.select :status, current_site.the_status_options, {}, :class => "form-control" %>
<%= label_tag 'options[page_inactive]', t('.inactive_page', default: 'Page to show for Inactive') %> <%= select_tag 'options[page_inactive]', options_from_collection_for_select(posts, :id, :the_title, current_site.get_option('page_inactive')), :class => "form-control" %>

<%= text_field :options, :front_per_page, :class => "form-control number", :value => @site.front_per_page %>

<%= text_field :options, :admin_per_page, :class => "form-control number", :value => @site.admin_per_page %>

<%= check_box :options, :comment_status, {checked: @site.front_comment_status == "approved"}, "approved", "pending" %>

<%= check_box :options, :permit_anonimos_comment, {checked: @site.get_option('permit_anonimos_comment', false)}, "true", "" %>

<%= check_box :meta, :permit_create_account, {checked: @site.get_option('permit_create_account', false), class: "icheckbox0"}, "true", "" %>

<%= check_box :options, :security_captcha_user_register, {checked: @site.security_user_register_captcha_enabled?, class: "icheckbox0"}, "true", "" %>

<%= check_box :options, :need_validate_email, {checked: @site.need_validate_email?, class: "icheckbox0"}, "true", "" %>

<%= check_box :options, :custom_fields_show_shortcodes, {checked: @site.get_option('custom_fields_show_shortcodes', false), class: "icheckbox0"}, "true", "" %>