[WIP] Wagtail Datatables and Datatables for audits docs and some legal canonical pages #5375
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Related issues:
Design court case wagtail page template #4133
Audit of website tables #4554
This WIP PR demoes three datatable functionalities, but may likely be betters served by separate PRs.
This is currently pushed to feature space for WIP testing.(NOTE: No longer on feature, ask John to push it there)
DataTable Wagtail Block
where editors can build datatables with a Wagtail standard TableBlock and indicate sort fields and initial column to order table by.dom-datatableblock2.js
,home/templates/blocks/data-table-block.html
andhome/blocks.py > DatatableBlock
fec/static/js/pages/legal-to-datatable
fec/static/js/pages/mutli-inplace-datatable.js
- Migrations: There will be a Django migration associated with this work, but since blocks.py migrations do not have to be done for the functionality to work, I will hold off on migrations until creating a non WIP PR for merge to prod.
Required reviewers
(Include who is required to review prior to merge. For example: One designer and two front end developer reviews are required prior to merge)
Impacted areas of the application
General components of the application that this PR will affect:
This work will require a migration file, which has yet to be generated
new file: fec/static/js/pages/dom-datatableblock2.js
new file: fec/static/js/pages/mutli-inplace-datatable.js
new file: fec/static/js/pages/legal-to-datatable
modified: home/blocks.py
new file: home/templates/blocks/data-table-block.html
modified: home/templates/home/resource_page.html
Screenshots
(Include a screenshot of the new/updated features in context (“in the wild”). If it is an interface change, include both before and after screenshots)
Related PRs
Related PRs against other branches:
How to test
This is currently pushed to feature for WIP testing.