<%= f.label :text, column.title, :class => "control-label" %>
<% @site_in_use_locales.each do |locale| %> <% active = (locale == @site_in_use_locales.first ? "active in" : "") %> <% id = "table_entry_column_entries_#{i}_text_translations_#{locale.to_s}" %>
<%= f.fields_for :text_translations do |f| %> <%= f.text_field locale, :value => text_field.text_translations[locale.to_s] %> <% end %>
<% end %>
<% @site_in_use_locales.each do |locale| %> <% active = (locale == @site_in_use_locales.first ? "active" : "") %> <% id = "table_entry_column_entries_#{i}_text_translations_#{locale.to_s}" %> <%= link_to t(locale).to_s,"##{id}",:class=>"btn #{active}",:data=>{:toggle=>"tab"}%> <% end %>
<% if !text_field.new_record? %> <%= f.hidden_field :id %> <% else %> <%= f.hidden_field :table_column_id, :value => column.id %> <% end %>