<%= form_for @sub_attribute,:url => eval("admin_#{@attribute_type}s_path") ,: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| %> "> <% end %>
<%= f.hidden_field :role_id, :value => params[:role_id] if !params[:role_id].blank? %> <%= f.submit t('submit'), :class=>'btn btn-primary btn-small' %> <%= link_to t('cancel'), 'javascript:$.pageslide.close()', :class=>" btn-small" %>
<% end %>