<% content_for :side_bar do %> <%= render :partial => 'admin/users_new_interface/side_bar' %> <% end %> <% content_for :page_specific_css do -%> <%= stylesheet_link_tag "lib/wrap-nav.css" %> <%= stylesheet_link_tag "lib/pageslide.css" %> <%= stylesheet_link_tag "lib/main-forms.css" %> <%= stylesheet_link_tag "lib/togglebox.css" %> <% end -%> <% content_for :page_specific_javascript do -%> <%= javascript_include_tag "lib/jquery.tmpl.min.js" %> <%= javascript_include_tag "lib/member/role-forms.js" %> <% end -%> <%= form_for @attribute,:url => eval("admin_#{@attribute_type}_path(@attribute)") , :html => { :class=> "form-horizontal main-forms", :id=>'info' } do |f| %>

<%= t(eval(":#{@attribute_type}"))%>

Basic

<% if @attribute.new_record? %> <%= f.text_field :key, :placeholder => t(:key) %> <% else %>
<%= @attribute.key %>
<% end %>
<%= render :partial=>"shared/attribute_field/placeholder_block",:locals=>{:values=>@attribute.title_translations,:class_ext=>"pull-left",:label_ext=>t(:item_name),:field_name=>"#{@attribute_type}[title_translations]"}%>

<%= @attribute.title %>

<%= render :partial=>"shared/attribute_field/attribute_field",:collection=>@attribute.attribute_fields.asc("_id")%>
<%= hidden_field_tag 'id', params[:role_id] if !params[:role_id].blank? %> <%= f.submit t(:submit),:class=>"btn btn-primary"%> <%= link_to t('cancel'), get_go_back, :class=>"btn" %>
<% end %> <% content_for :page_specific_javascript do -%> <%= render 'js/support_member_form_js' %> <% end -%>