<% @site_valid_locales.each do |locale| %> <% end %> <%= f.fields_for :title_translations do |f| %> <% @site_valid_locales.each do |locale| %> <% end %> <% end %>
<%= t(:key) %><%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %>
<%= sub_role.new_record? ? (f.text_field :key, {:style => "width:150px"}) : sub_role.key %><%= f.text_field locale, :style => "width:150px", :value => (sub_role.title_translations[locale] rescue nil) %>

Attributes

<% @site_valid_locales.each do |locale| %> <% end %> <% sub_role.attribute_fields.each do |attribute_field| %> <%= render :partial => 'attribute_field', :object => attribute_field, :locals => {:f => f} %> <% end %>
<%= t(:key) %> <%= t(:multilingual) %><%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %><%= t(:type)%>  
<%= hidden_field_tag 'attribute_field_count', sub_role.attribute_fields.count %> <%= t(:add) %> <%= hidden_field_tag 'sub_role_temp_id', (i rescue 'new_sub_roles') %>
<% content_for :page_specific_javascript do %> <% end unless !sub_role.new_record? %>