PCv5/app/utils
Lephe 1d38f906ee
admin/members: add a dynamic regex/logic filter for the member list
This commit introduces a client-side table filter that supports regexes
and propositional logic to filter table rows.

A table can be filtered if it has the [filter-target] class and its
first row has <th> tags with a [data-filter] attribute specifying column
names.

The filter itself is a div with the [form] and [filter] classes, and a
[data-target] attribute pointing to the table to filter. The filter
contains a text <input> which is passed to filter_update() when the
filter expression is validated.

The client-side filter code runs the expression through a basic lexer
and parser, then matches the result for every row in the target table.
The [textContent] of each cell is used for string and regex matching.
2020-11-02 14:38:28 +01:00
..
filters markdown: add markdown rendering 2020-09-18 19:43:10 +02:00
validators fix a typo in many files 2020-08-25 22:57:45 +02:00
check_csrf.py security: add CSRF protection globally 2020-09-26 14:48:30 +02:00
converters.py fix: better PEP8 2020-08-05 22:52:56 +02:00
filesize.py fix: better PEP8 2020-08-05 22:52:56 +02:00
ldap.py ldap: add sub-organization feature 2020-08-25 23:05:54 +02:00
notify.py fix a typo in many files 2020-08-25 22:57:45 +02:00
priv_required.py utils: Ajout du décorateur @guest_only 2020-07-21 21:42:56 +02:00
render.py admin/members: add a dynamic regex/logic filter for the member list 2020-11-02 14:38:28 +01:00
send_mail.py utils: FIX titre de l'email de réinit du mot de passe 2020-07-21 22:39:09 +02:00
unicode_names.py utils: add normalization of Unicode names 2019-06-05 18:24:41 -04:00
valid_name.py fix a typo in many files 2020-08-25 22:57:45 +02:00