<%= form_for @sub_attribute,:url => eval("admin_#{@attribute_type}_path(@attribute)") ,:class=> "form-horizontal", :id=>"new_bulletin_category", remote: true do |f| %>
<%= t(eval(":#{@attribute_type}"))%>:<%= @attribute.title %> <% if @sub_attribute.new_record? %> <%= f.text_field :key, :class => "input-large", :placeholder => t(:key) %> <% else %>
<%= @sub_attribute.key%>
<% end %> <% @site_in_use_locales.each_with_index do |locale, i| %> " value="<%= @sub_attribute.title_translations[locale] rescue nil %>"> <% end %>
<%= f.hidden_field :id %> <%= f.submit t('submit'), :class=>'btn btn-primary btn-small' %> <%= link_to t('cancel'), 'javascript:$.pageslide.close()', :class=>" btn-small" %>
<% end %>