<%= label_tag "key","key", :class=>"muted" %>
<%= f.text_field :key, :value => @attribute.key,:class=>"input-large", placeholder: t(:key) %>

<%= f.fields_for :title_translations do |f| %>
  <% current_site.in_use_locales.each do |locale| %>
	<%= label_tag "name-#{locale}", "#{t(:name)} (#{t(locale.to_s)})" %>
	<%= f.text_field locale, :class => 'input-large', :value => (@attribute.title_translations[locale] rescue ''), placeholder: t(:name) %>
  <% end %>
<% end %>