class LibraryPerson
Public Instance Methods
layout()
click to toggle source
# File Views/Library/Person.rb, line 2 def layout @order = 100 @update = true gui_hboxg do gui_vboxg :nogroup do show_entity_person :users, :single, :to_list_id, :callback => true, :flexheight => 1 end gui_vboxg :nogroup do show_block :address, :flexwidth => 1 show_button :save end end end
library_users(owner)
click to toggle source
# File Views/Library/Person.rb, line 18 def library_users(owner) Activities.tagged_users('library').to_frontend(owner) end
rpc_list_choice_users(session, data)
click to toggle source
# File Views/Library/Person.rb, line 27 def rpc_list_choice_users(session, data) reply(:empty_nonlists) + reply(:update, data._users.to_hash) end
rpc_update(session)
click to toggle source
# File Views/Library/Person.rb, line 22 def rpc_update(session) reply(:empty, :users) + reply(:update, users: library_users(session.owner) ) end