Make columns of user and ordergroup lists sortable
This commit implements the sort functionality for the user lists (by name, email, last_activity) and ordergroup lists (by name). It is a first attempt addressing issue #560.
This commit is contained in:
parent
8f94403ccf
commit
0a6345c60b
14 changed files with 278 additions and 25 deletions
|
|
@ -5,11 +5,11 @@
|
|||
%thead
|
||||
%tr
|
||||
- if FoodsoftConfig[:use_nick]
|
||||
%th= heading_helper User, :nick
|
||||
%th= heading_helper User, :name
|
||||
%th= heading_helper User, :email
|
||||
%th= sort_link_helper heading_helper(User, :nick), "nick"
|
||||
%th= sort_link_helper heading_helper(User, :name), "name"
|
||||
%th= sort_link_helper heading_helper(User, :email), "email"
|
||||
%th= t 'admin.access_to'
|
||||
%th= heading_helper User, :last_activity
|
||||
%th= sort_link_helper heading_helper(User, :last_activity), "last_activity"
|
||||
%th(colspan="2")= t 'ui.actions'
|
||||
%tbody
|
||||
- for user in @users
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue