add "all_user" for app&object auth

This commit is contained in:
Matthew Kaito Juyuan Fu committed 2012-02-16 14:59:26 +08:00
1 parent d2689bc59c
commit 9305c2045c
3 files changed
+15 -4

No files matched your search

@@ -1,7 +1,12 @@
<div id="open_for_all_user">
<h1>All User</h1>
<%= form_tag(submit_url) do %>
<%= check_box_tag 'auth_all',true,auth.all %><%= submit_tag 'Add Role' %><br/>
<% end %>
</div>
<div id="user_role_management">
<h1>User Role</h1>
All User
<%= form_tag(submit_url) do %>
<%= collection_select(:new,:role, Role.all, :id, :key, :prompt => true) %>
<%= submit_tag 'Add Role' %><br/>