Sha256: 0aa819227b24aecf03ad84ba5929969d34c1d02f128d97765cffad67569d5396
Contents?: true
Size: 881 Bytes
Versions: 4
Compression:
Stored size: 881 Bytes
Contents
<% update_name = generic_role.id.to_s + "__" + user_id.to_s %> <% unless update_partial %><div id="<%= update_name %>"><% end %> <% form_for "/cbac/memberships/update", :remote => true, :url => {:controller => "cbac/memberships", :action => "update"}, :update => update_name, :before => "$('#{update_name}').style.visibility = 'hidden';", :complete => "$('#{update_name}').style.visibility = 'visible';" do %> <%= hidden_field_tag "generic_role_id" + update_name, generic_role.id.to_s, :name => "generic_role_id" %> <%= hidden_field_tag "user_id" + update_name, user_id.to_s, :name => "user_id" %> <%= check_box_tag "member" + update_name, "1", (Cbac::Membership.where(generic_role_id: generic_role.id, user_id: user_id).count > 0), {:onclick => "this.form.onsubmit();", :name => "member"}%> <% end %> <% unless update_partial %></div><% end %>
Version data entries
4 entries across 4 versions & 1 rubygems