<%= t("#{@attribute_type}") %>


<% @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] %>
<%= is_new ? (f.text_field :key, {:style => "width:150px"}) : @attribute.key %><%= f.text_field locale, :style => "width:150px", :value => (@attribute.title_translations[locale] rescue nil) %>

Sub roles


<% @attribute.sub_roles.each_with_index do |sub_role, i| %> <%= render :partial => 'form_sub', :object => sub_role, :locals => {:f => f, :i => i} %> <% end %>
<%= hidden_field_tag 'attribute_field_count', @attribute.sub_roles.count %> <%= t(:add) %>
<% content_for :page_specific_javascript do %> <%= javascript_include_tag "attribute_form" %> <% end %>