amelioration(manager): ajout de la visualisation des comptes marqués comme membre de l'equipe
This commit is contained in:
parent
c9292e7ba8
commit
bd28c29856
4 changed files with 84 additions and 0 deletions
18
app/controllers/manager/team_accounts_controller.rb
Normal file
18
app/controllers/manager/team_accounts_controller.rb
Normal file
|
@ -0,0 +1,18 @@
|
|||
module Manager
|
||||
class TeamAccountsController < Manager::ApplicationController
|
||||
def index
|
||||
@records_per_page = params[:records_per_page] || "10"
|
||||
resources = User.marked_as_team_account
|
||||
.order(created_at: :asc)
|
||||
.page(params[:_page])
|
||||
.per(@records_per_page)
|
||||
page = Administrate::Page::Collection.new(dashboard)
|
||||
|
||||
render locals: {
|
||||
resources: resources,
|
||||
page: page,
|
||||
show_search_bar: false
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue