Sha256: 9991c8866259d856478ecdf460b100794d532200e41dd56fcc01af18dc37800d

Contents?: true

Size: 648 Bytes

Versions: 1

Compression:

Stored size: 648 Bytes

Contents

%h2 Roles for #{@user.first_last_name}
%h3 Roles assigned:
%ul#assigned_roles
  - for role in @user.user_roles.map(&:role)
    %li #{role.name} [ #{link_to "remove role", authengine_user_user_role_path(@user,role), :method => :delete} ]

%h3 Roles available:
%ul#available_roles
  - for role in (@all_roles - @user.user_roles.map(&:role))
    = form_for @user_role, :url => authengine_user_user_roles_path(@user), :method => :post do |f|
      = hidden_field :user_role, :role_id, :value => role.id
      %li #{role.name} [ #{ link_to "assign role", "#", :onclick => "$(this).closest('form').submit()"} ]

%p= link_to "Back", authengine_users_path

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
authengine-0.0.2 app/views/authengine/user_roles/index.html.haml