<% # encoding: utf-8 %> <%= stylesheet_link_tag "lib/wrap-nav"%> <%= stylesheet_link_tag "lib/main-forms"%> <%= stylesheet_link_tag "lib/togglebox"%> <%#= javascript_include_tag 'lib/ckeditor/ckeditor' %> <%#= javascript_include_tag 'lib/ckeditor/replace/site_info' %> <%= javascript_include_tag 'lib/site_set' %> <%= form_for @site, :url => admin_site_path(@site.id), :html => {:class => "form-horizontal main-forms"} do |f| %>
<% I18n.available_locales.each do |locale|%> <%= content_tag :div, :class => "tab-pane fade #{active_when_current_locale_eq locale} #{locale}" do %>
<%= f.fields_for :title_translations do |f| %> <%= f.text_field locale, :class => "input-xxlarge", :value => (@site.title_translations[locale] rescue nil) %> <% end %>
<% end %> <% end %>
<%= f.check_box :title_always_on, :class => "toggle-check", :data => { :title => t('site_title_always_display') } %>

<% I18n.available_locales.each do |locale|%> <%= content_tag :div, :class => "tab-pane fade #{active_when_current_locale_eq locale} #{locale}" do %>
<%= f.fields_for :sub_menu_translations do |f| %> <%= f.text_area locale, :class => "ckeditor input-block-level", :value => (@site.sub_menu_translations[locale] rescue nil) %> <% end %>
<%end%> <%end%>
<%= f.check_box :sitemap_menu_in_header, :class => "toggle-check" %>

<% I18n.available_locales.each do |locale|%> <%= content_tag :div, :class => "tab-pane fade #{active_when_current_locale_eq locale} #{locale}" do %>
<%= f.fields_for :footer_translations do |f| %> <%= f.text_area locale, :class => "ckeditor input-block-level", :value => (@site.footer_translations[locale] rescue nil) %> <% end %>
<%end%> <%end%>
<%= f.check_box :enable_terms_of_use, :class => "toggle-check", :data => { :title => t('site.terms_display_in_footer') } %>
<% I18n.available_locales.each do |locale|%> <%= content_tag :div, :class => "tab-pane fade #{active_when_current_locale_eq locale} #{locale}" do %>
<%= f.fields_for :terms_of_use_translations do |f| %> <%= f.text_area locale, :class => "ckeditor input-block-level", :value => (@site.terms_of_use_translations[locale] rescue nil) %> <% end %>
<%end%> <%end%>
<%= f.submit t("submit"), :class => "btn btn-primary" %> <%= f.submit t("cancel"), :class => "btn ", :type => 'reset' %>
<% end %>