tables
main.tables
¤
Tables needed by ProCAT.
Classes¤
CapacityTable
¤
Bases: Table
Table for Capacity listing.
ProjectTable
¤
Bases: Table
Table for Project listing.
Classes¤
Meta
¤
Meta class for the table.
Methods:¤
order_days_left(queryset, is_descending)
¤
Order the days left column.
Source code in main/tables.py
80 81 82 83 84 85 | |
order_total_effort(queryset, is_descending)
¤
Order the total effort column.
Source code in main/tables.py
73 74 75 76 77 78 | |
order_total_funding_left(queryset, is_descending)
¤
Order the total funding left column.
Source code in main/tables.py
91 92 93 94 95 96 97 98 | |
order_weeks_to_deadline(queryset, is_descending)
¤
Order the weeks to deadline column.
Source code in main/tables.py
64 65 66 67 68 69 70 71 | |
render_days_left(value)
¤
Render the days_left with Bootstrap badge classes.
Source code in main/tables.py
124 125 126 | |
render_total_effort(value)
¤
Render the total effort left with just two decimals.
Source code in main/tables.py
128 129 130 | |
render_total_funding_left(value)
¤
Render the total funding left as a monetary value.
Source code in main/tables.py
87 88 89 | |
render_weeks_to_deadline(value)
¤
Render the weeks_to_deadline with Bootstrap badge classes.
Source code in main/tables.py
120 121 122 | |