Change role structure

Still needs to: change the views and create sub_roles in the dev.rake
This commit is contained in:
chris2tof committed 2011-12-10 18:12:39 +08:00
1 parent e0cdedfa2e
commit b7ac5478b4
45 files changed
+608 -492

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
<% content_for :secondary do %>
<%= render 'admin/users/side_bar' %>
<% end %>
<div id="porfile">
<%= form_for @attribute, :url => eval("admin_user_#{@attribute_type}_model_path(@user_role_model)") do |f| %>
<%= f.error_messages %>
<%= render :partial => "admin/attributes/form", :locals => { :f => f, :is_new => false } %>
<div id="update" class='buttom clear'>
<%= link_to t('update'), "#", :onclick=>"$('#edit_user_role_model_#{@attribute.id}').submit()" %>
</div>
<div id="back" class='buttom clear'>
<%= link_back %>
</div>
<% end -%>
</div>