<% groups = @site.get_field_groups %>

<%= "#{t('camaleon_cms.admin.settings.configuration_site')}: #{@site.the_title} " %>

<%= form_for @site, as: "site", url: {action: :site_saved}, html: {id: "site_settings_form", class: "panel-body cama_ajax_request validate"} do |f| %>
<%= render partial: 'layouts/camaleon_cms/admin/form_error', locals: {data: @site} %>
">
<%= f.label t('camaleon_cms.admin.button.domain', default: 'Domain') %>
<%= t('camaleon_cms.admin.sites.message.enter_key_domain', default: 'Enter your domain here') %>
<%= f.text_field :slug, :class => "form-control required" %>
<%= f.label t('camaleon_cms.admin.table.name') %>
<%= f.text_field :name, :class => "form-control translatable" %>
<%= f.label t('camaleon_cms.admin.table.description') %>
<%= f.text_area :description, :class => "form-control translatable" %>

<%= hidden_field :options, :logo, :class => "form-control unput_upload", :value => @site.get_option("logo") %>

<%= hidden_field :options, :icon, :class => "form-control unput_upload", :value => @site.get_option("icon"), "data-label" => "#{t('camaleon_cms.admin.button.upload_icon')}", "data-ext" => "ico" %>
<%= render "configuration_settings", f: f %> <% if groups.present? %>
tab-pane "> <%= render partial: "camaleon_cms/admin/settings/custom_fields/render", locals: {record: @site, field_groups: groups} %>
<% end %> <%= render "seo_settings", f: f %> <%= render "email_settings", f: f %> <%= render "file_system_settings", f: f %> <%= render "media_settings", f: f %>
<% end %>