orbit-basic/app/views/admin/module_apps/edit.html.erb

34 lines
1.6 KiB
Plaintext
Raw Normal View History

2012-01-13 10:20:04 +00:00
<% content_for :secondary do %>
<% end %>
<h3><%= @module_app.title%></h3>
2012-01-13 10:20:04 +00:00
<div id="manager_management">
<dl id="manager">
2012-09-12 11:12:50 +00:00
<dt><%= t(:manager) %></ht>
2012-01-13 10:20:04 +00:00
<% @module_app.managers.each do |manager| %>
<dd><%= manager.user.name %> <%= get_auth_by(manager) %> <%= link_to '[X]',remove_manager_admin_module_app_path(@module_app,manager),:method => :delete if if_permit_to_delete(:manager) && manager.user != current_user %> </dd>
2012-01-13 10:20:04 +00:00
<% end %>
<dd>
2012-01-13 10:20:04 +00:00
<%= form_tag(assign_manager_admin_module_app_path) do %>
<%= collection_select(:manager,:id, User.all, :id, :name, :prompt => true,:disabled => !if_permit_to_assign(:manager))%>
2012-09-12 11:12:50 +00:00
<%= submit_tag t("auth.add_manager") %>
2012-01-13 10:20:04 +00:00
<% end %>
</dd>
</dl>
<dl id="sub_manager">
2012-09-12 11:12:50 +00:00
<dt><%#= t(:sub_manager) %></ht>
2012-05-03 06:57:10 +00:00
<%# @module_app.sub_managers.each do |manager| %>
<dd><%#= manager.user.name %> <%#= get_auth_by(manager) %><%#= link_to '[X]',remove_sub_manager_admin_module_app_path(@module_app,manager),:method => :delete if if_permit_to_delete(:sub_manager) && manager.user != current_user %> </dd>
<%# end %>
<dd>
2012-05-03 06:57:10 +00:00
<%#= form_tag(assign_sub_manager_admin_module_app_path) do %>
<%#= collection_select(:sub_manager,:id, User.all, :id, :name, :prompt => true,:disabled => !if_permit_to_assign(:sub_manager))%>
2012-09-12 11:12:50 +00:00
<%#= submit_tag t("auth.add_sub_manager") %>
2012-05-03 06:57:10 +00:00
<%# end %>
2012-01-13 10:20:04 +00:00
</dd>
</dl>
</div>
2012-05-03 06:57:10 +00:00
<%#= render :partial => "admin/components/user_role_management", :locals => { :object => @module_app ,:auth=> @module_app.app_auth ,:submit_url=> admin_module_app_app_auths_path(@module_app),:ploy_route_ary=>['remove',:admin,@module_app,@module_app.app_auth] } %>