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

<% @site_valid_locales.each do |locale| %> <% end %> <%= f.fields_for :i18n_variable, (@attribute.new_record? ? @attribute.build_i18n_variable : @attribute.i18n_variable) do |f| %> <% @site_valid_locales.each do |locale| %> <% end %> <% end %>
<%= t('admin.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" %>

Attributes

<% @site_valid_locales.each do |locale| %> <% end %> <% @attribute.attribute_fields.each do |attribute_field| %> <%= render :partial => 'attribute_field', :object => attribute_field, :locals => {:f => f} %> <% end %>
<%= t('admin.key') %> <%= t('admin.multilingual') %><%= I18nVariable.first(:conditions => {:key => locale})[I18n.locale] %><%= t('admin.type')%>  
<%= hidden_field_tag 'attribute_field_count', @attribute.attribute_fields.count %> <%= t(:add) %>
<% content_for :page_specific_javascript do %> <%= javascript_include_tag "attribute_form" %> <% end %>