It's broken. Specifically, it doesn't display in a way that you could actually use for printing, and it includes timeblocks that aren't actual class timeblocks. I figure that if anyone were still using it, they probably would have mentioned that it's broken.
Filtering Resources by program would miss some resources, because it got the program by checking res_type__program. Some ResourceTypes are global, so this doesn't catch everything. This commit switches to checking event__program. ResourceRequest has a similar problem, but can't be reliably fixed in the same way because of target and target_subj, and that one wasn't causing a problem in MIT ESP's setup so I left it as is.
Improves a regex that is used in the clean() method of AjaxForeignKeyNewformField. There are three possible states for the data in such a field after a form submission: - The field contains raw text. - An autocomplete option was correctly selected, and the value is an integer id. - An autocomplete option was incorrectly selected, and the value is something that looks like "Foo Bar (17)", where the number is the object's integer id. The clean() method attempts to catch and correct the last case with a regex. But that regex captured things that it shouldn't have, such as (encountered on the Stanford site) "k12 online school". The improved regex only matches the field when the number is in parentheses, at the very end of the string.
Fixes display issue introduced by 23c5079, where jquery-ui.css stopped being loaded on the page.
Now it's a select with "with" or "without". Various text is also appropriately updated.