<%= form_for @site, :url => admin_site_path(@site) do |f| %>
<% @site_valid_locales.each do |locale|%> <%= content_tag :div, :class => "tab-pane #{active_when_current_locale_eq locale}", :id => "#{locale}" do %> <%= t :title %> <%= f.fields_for :title, @site.title do |f| %> <%= f.text_field locale %> <% end %> <%= t :keywords %> <%= f.fields_for :keywords, @site.keywords do |f| %> <%= f.text_field locale %> <% end %> <%= t :description %> <%= f.fields_for :description, @site.description do |f| %> <%= f.text_field locale %> <% end %> <% end %> <% end %>
<% end %>