<%= form_for @attribute,:url => eval("admin_#{@attribute_type}s_path") ,:class=> "form-horizontal" do |f| %> <div class="site-map role-block"> <div class="map-block back"> <h4><span><%= t(eval(":#{@attribute_type}"))%></span></h4> <div class="form-horizontal"> <div class="clear"> <div class="control-group pull-left"> <label class="control-label" for="key"><%= t(:to_search) %></label> <div class="controls"> <label class="radio inline"> <%= f.radio_button :to_search, true %> Yes </label> <label class="radio inline"> <%= f.radio_button :to_search, false %> No </label> </div> </div> <div class="control-group pull-left"> <label class="control-label" for="key"><%= t(:key) %></label> <div class="controls"> <% if @attribute.new_record? %> <%= f.text_field :key, :placeholder => t(:key) %> <% else %> <div><%= @attribute.key%></div> <% end %> </div> </div> <%= 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]"}%> </div> </div> </div> </div> <div class="form-actions form-fixed pagination-right"> <%= f.submit t('submit'), :class=>'btn btn-primary' %> <%= link_to t('cancel'), get_go_back, :class=>"btn" %> </div> <% end %> <% content_for :page_specific_css do -%> <%= stylesheet_link_tag "member" %> <%= stylesheet_link_tag "site-map" %> <% end %>