uw.local.teaching.webui.ta package¶
Submodules¶
uw.local.teaching.webui.ta.admin module¶
uw.local.teaching.webui.ta.entitlement module¶
uw.local.teaching.webui.ta.eval module¶
uw.local.teaching.webui.ta.planner module¶
uw.local.teaching.webui.ta.position module¶
uw.local.teaching.webui.ta.setup module¶
uw.local.teaching.webui.ta.student module¶
uw.local.teaching.webui.ta.ta module¶
uw.local.teaching.webui.ta.ui module¶
UI-related utility routines for TA management.
These are functions to generate fragments of HTML that are useful throughout the TA management portion of the application.
-
uw.local.teaching.webui.ta.ui.
format_actual
(actual, planned, label=False)[source]¶ Format an actual number of units, noting differences from plan.
Parameters: - actual – the actual number of TA units currently assigned.
- planned – the planned number of TA units to assign, or None.
- label (bool) – whether or not to label the number as being units.
Note that the actual number of units cannot be None. If the actual and planned units are the same, simply format the actual units using format_units. Otherwise, append a span indicating if the plan is missing (None), or if the actual units are over or under the planned units.
-
uw.local.teaching.webui.ta.ui.
format_entitlement
(units, label=False)[source]¶ Format a number of TA units which is an entitlement.
Parameters: - units – the number of TA units, or None.
- label (bool) – whether or not to label the number as being units.
If the number of units is negative, highlight it in red. Otherwise, this is no different from format_units.
-
uw.local.teaching.webui.ta.ui.
format_units
(units, label=False)[source]¶ Format a number of TA units.
Parameters: - units – the number of TA units, or None.
- label (bool) – whether or not to label the number as being units.
An input of None results in returning None. Otherwise, the number is formatted; if label is True, then “unit” or “units” as appropriate is appended.
Module contents¶
TA management interface implementation.
This module implements the Web user interface for managing TA assignments.