Add new template function to produce list of activity types
|Reported by:||DJPaul||Owned by:|
Description (last modified by DJPaul)
Attached patch contains a proposed template function to produce a list of all the registered activity types for use in a <select> element, or as <input type="checkbox">.
When working on turtleshell, I wanted to add filter controls to the activity directory, just like how BP-Default has a dropdown box. Unfortunately, these are hardcoded into the BP-Default templates. We already register activity types, but we don't have a template function to output the data.
My patch implements such a template function and allows choice between rendering the activity types as a dropdown box or as a select dropdown.