Add resource categories to owner / participant search results

In the sidebox menu, resource categories are returned and selectable and will show events for all resources in that category.
In the edit popup, if the category name matches the search string, all resources of that category are returned and user can select them as if they would have searched for the name of the resource.
This commit is contained in:
nathangray
2016-07-19 14:09:58 -06:00
parent 859f38de61
commit 6d5f820b97
5 changed files with 150 additions and 11 deletions

View File

@@ -101,7 +101,7 @@ class resources_hooks
function calendar_resources($args)
{
return array(
'widget' => 'resources_select',// widget to use for the selection of resources
'search' => 'resources_bo::calendar_search',// method to use for the selection of resources, otherwise Link system is used
'info' => 'resources.resources_bo.get_calendar_info',// info method, returns array with id, type & name for a given id
'max_quantity' => 'useable',// if set, key for max. quantity in array returned by info method
'new_status' => 'resources.resources_bo.get_calendar_new_status',// method returning the status for new items, else 'U' is used