<% unless translated_columns.empty? -%> <%%= render :partial=>"shared/manage/locale" %> <%% Globalize.available_locales.each do |locale| %> <%%= content_tag(:div, :id=>"s#{locale}_block", :class=>"add-white-bl", :style=>(I18n.locale.to_s == locale.to_s ? nil : 'display:none;')) do %>
<% translated_columns.each do |attribute| -%> <%%= form.label "<%= attribute %>_#{locale}" %> <%= Freeberry::Utils.form_field("form", "#{attribute}_#\{locale\}".inspect, model.column_for_attribute(attribute)) %> <% end -%>
<%% end %> <%% end %> <% end -%>
<% model.attributes.each do |attribute, value| -%> <% next if translated_columns.include?(attribute.to_sym) %> <%%= form.label :<%= attribute %> %> <%= Freeberry::Utils.form_field("form", ":#{attribute}", model.column_for_attribute(attribute)) %>
<% end -%>