partials
process_manager.views.partials
View functions for partials.
Classes
Functions
filter_table(search, column, table)
Filter table data based on search and column parameters.
If the search parameter is empty, the table data is returned unfiltered. Otherwise, the table data is filtered based on the search parameter. If the column parameter is provided, the search string is matched against the values in that column only. If no valid column is specified, the search string is matched against all columns.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
search
|
str
|
The search string to filter the table data. |
required |
column
|
str
|
The column name to filter by, or an empty string to search all columns. |
required |
table
|
list[dict[str, str | int]]
|
The table data to filter. |
required |
Returns:
| Type | Description |
|---|---|
list[dict[str, str | int]]
|
The filtered table data. |
Source code in process_manager/views/partials.py
process_table(request)
Renders the process table.
This view may be called using either GET or POST methods. GET renders the table with no check boxes selected. POST renders the table with checked boxes for any table row with a uuid provided in the select key of the request data.