Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • concrexit concrexit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 70
    • Issues 70
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 10
    • Merge requests 10
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • thaliathalia
  • concrexitconcrexit
  • Merge requests
  • !776

Add sorting to events backend using jQuery tablesorter

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Sébastiaan Versteeg requested to merge feature/jquery-events-sorting into master Mar 25, 2018
  • Overview 0
  • Commits 1
  • Changes 6

Closes #494 (closed)

Short description

Add sorting to events backend using jQuery tablesorter

Long description

After a conversation with Kirsten and Jan at the wine tasting I was pointed to the fact that the pizza admin (which is built in the frontend) has a jQuery table sorting plugin. So I went on an adventure to see if this would be hard to add to the existing backend. And if it would be better than @ghogewind's solution.

So after some experimentation I found that it was fairly easy, adding some JS and CSS. Previously I thought that replicating Django's sorting capabilities on our custom pages would be best. However, this is so easy and perfectly re-usable (also if Django makes breaking changes) that I think we should consider this instead.

Also, it doesn't need any changes in the code of the views. And doesn't require reloading the page :p

Steps to use this feature

  1. Open an event's registration page.
  2. Click or tap a column header for the column you want to sort by.
  3. The table is sorted.
Edited Mar 25, 2018 by Sébastiaan Versteeg
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature/jquery-events-sorting