Use data_table.html for list pages. Proper HTML tables with column alignment.
Import: {% from "components/data_table.html" import data_table, data_table_empty %}
| Name | Status | Created | |
|---|---|---|---|
| Project Alpha | Active | 2024-01-15 | |
| Project Beta | Pending | 2024-02-20 | |
| Project Gamma | Error | 2024-03-10 |
Use two <tr> elements per row: summary + details with colspan.
| Name | Status | Samples | |
|---|---|---|---|
| Project Alpha | Active | 3 samples | |
|
Description: Genomics analysis project for cancer research Created by: John Doe on Jan 15, 2024 |
|||
| Project Beta | Pending | 5 samples | |
|
Description: Hereditary disease variant analysis Created by: Jane Smith on Feb 20, 2024 |
|||
Use data_table_empty macro when no data is available.
| Name | Status | Created |
|---|---|---|
|
No orders found Create your first order to get started. |
||
| Component | Use Case | Example |
|---|---|---|
data_table.html |
Recommended List pages, any table needing alignment | Orders, users, projects |
frozen_table.html |
Wide tables with frozen left/right columns | Variant browser |
table.html |
Deprecated Legacy accordion-style | Do not use for new features |
Deprecated
Use data_table.html instead. Accordion tables use CSS Grid divs which can cause column misalignment.