Browse Source

Merge pull request #55 from spacemunkay/denney-disable-username-edit

set username to read only
eperez-timeinput
Jason Denney 11 years ago
parent
commit
611b1b1151
  1. 2
      app/components/user_role_joins.rb
  2. 2
      app/components/users.rb

2
app/components/user_role_joins.rb

@ -5,7 +5,7 @@ class UserRoleJoins < Netzke::Basepack::Grid
c.header = false
c.title = "User Roles"
c.columns = [
{ :name => :user__username, :text => "Username"},
{ :name => :user__username, :text => "Username", :read_only => true},
{ :name => :name, :getter => lambda{ |rec|
user = User.find_by_id(rec.user_id)
user.nil? ? "" : "#{user.first_name} #{user.last_name}"

2
app/components/users.rb

@ -14,7 +14,7 @@ class Users < Netzke::Basepack::Grid
c.model = "User"
c.columns = [
:username,
{ :name => :username, :read_only => true },
:first_name,
:last_name,
:email,

Loading…
Cancel
Save