Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gestioCOF
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 76
    • Issues 76
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Klub Dev ENSKlub Dev ENS
  • gestioCOF
  • Merge requests
  • !277

kfet -- Tables are sortable

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Aurélien Delobelle requested to merge aureplop/kfet-sticky_thead into master Nov 27, 2017
  • Overview 0
  • Commits 3
  • Pipelines 0
  • Changes 20

[Initialement, c'était juste pour avoir des sticky headers sur les tableaux…]

  • Multi-tri: 'Shift' + clic colonne
  • Annuler le tri: 'Ctrl' + clic colonne

Fixes #171 (closed) ?

Many tables in kfet app templates become sortable: account list, negative account list, article list, article inventory list, article supplier list, article category list, checkout list, checkout statement list, inventory list, inventory details, order list, order creation, order details.

This is achieved thanks to the jQuery plugin 'tablesorter': https://mottie.github.io/tablesorter/docs/

  • Affected tables also got sticky headers (it stays visible on scroll).
  • Dates format are modified in order to ease the date sorting with the plugin (it avoids writing a custom parser, or an extractor from additional hidden element in the table cells).
  • Tables whose content is classified by category (of articles) now uses several tbodies. This has minor effects on the tables style.
  • Tags of the header help signs become 'i', instead of 'span', in order to avoid weird spacing.
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: aureplop/kfet-sticky_thead