- field.translations(true) # fetch translations and memoize them .controls .globalize-errors = form.errors_for(field) %ul.nav.nav-tabs{ :style => 'margin-top:5px' } - field.available_locales.each do |locale| %li{ class: ( 'active' if locale == field.current_locale ) } %a{ href: "##{locale}", data: { toggle: "tab" } }= locale .tab-content - field.available_locales.each do |locale| = form.fields_for field.name, field.translations[locale], wrapper: false do |nested_form| .fields.tab-pane{ id: locale, class: ( 'active' if locale == field.current_locale ) } = nested_form.generate({:action => :nested, :model_config => field.associated_model_config, :nested_in => field.name }) .globalize-help = form.help_for(field)