learning-unlimited/ESP-Website — pull request #207 by jmoldow (2011-12-15 08:08:56+00:00)
Title: Add functionality for hiding registration types (to resolve Issue #35)

Add functionality for hiding registration types (to resolve Issue #35)

Consists of three commits:
1) Adds a controller, a form, a template, and an auxiliary call for AdminCore (named visibleregistrationtype_management). These allow an admin to specify what RegistrationTypes should show up on the inline schedule on the main studentreg page. This setting is saved in a Tag, with a key of display_registration_names. Enrolled is always assumed. There is also functionality to add all RegistrationTypes, thereby retaining the old functionality. The template file contains useful text for guiding the user on potential choices, and also tells them to e-mail the websupport list when having doubts.
2) Adds the link from the manage program main page to the Visible Registration Type Management page. While I was at it, I added some other useful links, and some inline QSD boxes. Note: some day, we should make it so that loops through Program Modules also provide links to aux_calls.
3) Adds the rest of the relevant logic for the schedule.

Three notes:
1) We will need a migration to add display_registration_names to AdminCore.aux_calls on all existing sites.
2) Are there any other schedules that don't already assume that only Enrolled registrations should be displayed?
3) Contrary to a suggestion in the comments on Issue #35, I made a separate page for the form, rather than putting it into the Deadline Management page. I decided that the Deadline Management page is already too full, and doesn't want anything more to be stuffed into it. We can always change this later, but for now I claim this is better.