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

<% @site_valid_locales.each do |locale| %> <% end %> <% @site_valid_locales.each do |locale| %> <% end %>
<%= t('admin.key') %><%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %>
<%= is_new ? (f.text_field :key, {:style => "width:150px"}) : @attribute.key %> <%= text_field_tag "#{@attribute_type}[i18n_variable][#{locale}]", (@i18n_variable[locale] if @i18n_variable), :style => "width:150px" %>

Sub roles

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