Commit Graph

85 Commits

Author SHA1 Message Date
Michael Stenta 5d2dd3c17e Misc Views export updates. 2017-12-27 17:37:38 -05:00
Michael Stenta c3a6c9c556 Change "Name/Search" column to "Log name" and add exposed "Log name" and "Log type" filters and sorts to log Views. 2017-12-27 17:34:43 -05:00
Michael Stenta da0030f4ee Limit farm_group_members() to active assets by default. 2017-12-16 09:35:57 -05:00
Michael Stenta 29c1eda881 Fix farm_group_members() and farm_group_members_query() so that they only return assets currently in the group. Previously they were loading ALL logs assigning assets to the group, so an asset would appear in the group even if it was moved to a different group. 2017-12-07 17:38:53 -05:00
Michael Stenta 1af21d48b9 Use innerJoin()s where possible. 2017-12-07 17:38:52 -05:00
Michael Stenta c0c577232b Add dependencies on field_group_easy_responsive_tabs module. 2017-12-05 12:31:47 -05:00
Michael Stenta 380a9f2e15 Add bulk operations to "Group members" View. 2017-11-29 15:51:15 -05:00
Michael Stenta dc8e0dd7c9 Return the logs created by helper functions (movements, group, inventory, weight). 2017-11-24 21:00:10 -05:00
Michael Stenta ef6a04614d Use is_numeric() instead of is_int() when checking log timestamps and entity IDs. 2017-11-24 20:59:17 -05:00
Michael Stenta cdf5f7672e Convert group reference to a Field Collection in Activity and Observation logs. 2017-11-24 20:58:33 -05:00
Michael Stenta 11875dd3d4 Add a validation handler for the "Group" VBO action that checks for circular membership. 2017-11-24 20:58:33 -05:00
Michael Stenta 5a2574dabb Create a form helper function for validating against circular memberships. 2017-11-24 20:58:33 -05:00
Michael Stenta 638589a3c1 Add "Group" VBO action button to all asset Views. 2017-11-24 20:58:33 -05:00
Michael Stenta 1aa05c49a6 Add an action for assigning assets to groups in bulk. 2017-11-24 20:58:33 -05:00
Michael Stenta 6eb6884345 Put inventory and group membership in the right column with location. 2017-11-24 20:58:33 -05:00
Michael Stenta 35b7a77915 Add Group column to all asset Views. 2017-11-24 20:58:33 -05:00
Michael Stenta 627c054105 Add ability to create a new group when adding/editing an asset. 2017-11-24 20:58:33 -05:00
Michael Stenta 5d22d2f0c8 Add a field to asset edit forms for automatically creating a group assignment log. 2017-11-24 20:58:33 -05:00
Michael Stenta a49812f8bc Add a function for generating a group membership assignment log. 2017-11-24 20:58:33 -05:00
Michael Stenta 98f4dc350c Show View of logs with group membership on assets. 2017-11-24 20:58:33 -05:00
Michael Stenta e8ee8ec8e8 Add a View of logs with group membership. 2017-11-24 20:58:33 -05:00
Michael Stenta 96c7445aa1 Show an assets current group membership on asset view page. 2017-11-24 20:58:33 -05:00
Michael Stenta 6a684a9a2b Create a function that allows you to get a list of a group's members. 2017-11-24 20:58:33 -05:00
Michael Stenta 1f4e49c504 Show members of a group when viewing a group's page. 2017-11-24 20:58:33 -05:00
Michael Stenta 4b4542c097 Add a View for displaying members of a group. 2017-11-24 20:58:33 -05:00
Michael Stenta 58138651cd Add a Views relationship handler for linking assets to their latest group membership log. 2017-11-24 20:58:33 -05:00
Michael Stenta 4e48221726 When a log form with a group reference field is submitted validate that assets are referenced and they don't create a circular membership. 2017-11-24 20:58:33 -05:00
Michael Stenta 0731214b3d Add a function to check for circular group membership. 2017-11-24 20:58:33 -05:00
Michael Stenta e1a47a0691 Add functions for querying the membership of an asset (similar to farm_movement's location code). 2017-11-24 20:58:33 -05:00
Michael Stenta 21bbcb171a Add a group reference field base. 2017-11-24 20:58:33 -05:00
Michael Stenta 5c212fc63a Add a View for selecting Group assets (via entityreference_view_widget). 2017-11-24 20:58:33 -05:00
Michael Stenta 8f6eba3940 Reorganize group asset fields into Easy Responsive Tabs. 2017-11-24 20:58:33 -05:00
Michael Stenta 71a2662eb7 Implement hook_farm_ui_entities() to describe the Group asset type to the Farm UI module. 2017-11-24 20:58:33 -05:00
Michael Stenta 4369e7cbc8 Add a View of Groups at /farm/assets/groups. 2017-11-24 20:58:33 -05:00
Michael Stenta 86768afbc3 Initial commit of Farm Group module: provide a basic Group asset type. 2017-11-24 20:58:33 -05:00