Commit Graph

90 Commits

Author SHA1 Message Date
pcambra e093c5863b Issue #3169481 by pcambra: Allow to disable views on the asset pages 2020-09-16 07:45:09 -04:00
Michael Stenta 94395416c7 Fix asset cluster map showing all asset types when there are no assets. 2020-05-31 20:47:49 -04:00
Michael Stenta d44bb13648 Issue #3136210: Add 'data_schema' to farm.json resource fields info 2020-05-16 10:55:50 -04:00
Michael Stenta 4fda841b34 Add 'collapsible' class so that the fieldset up/down icon is added by farm_theme. 2020-05-08 08:53:29 -04:00
Michael Stenta 9bea88bc74 Make all entity views groups collapsible. 2020-05-07 12:10:01 -04:00
Michael Stenta 9cc6b1ca13 Document that entity view groups can be collapsed. 2020-04-24 10:52:43 -04:00
Michael Stenta 74515d8ca3 Spread out the weights of entity view groups provided by the Farm UI module, so that it's easier to put other groups in between them. 2020-04-24 10:52:07 -04:00
Paul Weidner b7cb769191 Refactor hook_farm_metrics to use a 'key' to identify arrays of metrics.
Without this, the 'farm_metrics.json' endpoint returns an array indexed by element ID, which would be more difficult for consumers of the 'farm_metrics.json' API to parse.
2020-02-26 10:40:27 -05:00
Paul Weidner 6a114b7fc8 Refactor farm_ui.farm_dashboard.inc to farm_ui.farm_metrics.inc. 2020-02-26 10:40:27 -05:00
Michael Stenta 0656c75550 Fix PHP Notice: Undefined index: default_value in farm_ui_farm_info() 2020-02-20 14:25:18 -05:00
Michael Stenta ae60c5f9c2 Display asset cluster maps in the farm map header block. 2020-02-10 14:27:49 -05:00
Michael Stenta b9e64b2592 Provide field requirements/restrictions/defaults for log types at /farm.json 2020-01-22 14:15:40 -05:00
Michael Stenta 12c63b1c45 Create the base breadcrumb from the frontpage menu item, so "Farm" can be overridden. 2019-08-26 16:05:20 -04:00
Michael Stenta 4911902fd0 Display a View of logs associated with the plan on the plan entity view page. 2019-05-30 11:15:01 -04:00
Michael Stenta f469e6d607 Add vocabulary ID to taxonomy_term resource bundles in farm.json (instead of duplicating as taxonomy_vocabulary resource). 2019-04-08 14:00:43 -04:00
Michael Stenta eb1cf2d826 Describe the available resources (entity types) in /farm.json. 2019-04-01 15:56:53 -04:00
Michael Stenta 29b7ad3fd3 Add a @todo to move farm_ui_entities() to farm_entity_info(). 2019-04-01 15:56:17 -04:00
Michael Stenta 19752aff93 Provide metrics for asset type counts. 2019-04-01 15:56:17 -04:00
Michael Stenta c9aad82bde Check action link path validity (including user access). 2019-02-17 20:00:22 -05:00
Michael Stenta 7d419e4e74 Collapse "Logs with special purpose" fieldset by default. 2018-08-23 15:15:57 -04:00
Michael Stenta deb5107d19 Show "Add asset/log" link on farm/assets/all and farm/logs/all. 2018-04-20 14:20:50 -04:00
drupalgin 0e5a226627 Issue #2950316 by drupalgin: Fixed coding standards 2018-04-07 12:40:16 -04:00
Michael Stenta 36e4431fff Add the ability to specify log View asset argument position. 2018-03-02 12:20:43 -05:00
Michael Stenta 001a673ee7 Wrap asset cluster maps in a fieldset, collapsed by default. 2018-02-26 21:27:22 -05:00
Michael Stenta 1006a3054b Add a farm_map_build() function, for building farm maps. 2018-02-26 21:27:22 -05:00
Michael Stenta 06438909fc Provide an alter hook for the area links generated by the Farm UI module. 2018-01-29 15:24:38 -05:00
Michael Stenta 13f70c6aee Add dependencies on farm_asset_views. 2017-12-30 16:39:07 -05:00
Michael Stenta 588f949445 Only create the Farm breadcrumb if there are more than 2 trail items already. 2017-11-24 21:00:23 -05:00
Michael Stenta a8f8e455dd Add an "All plans" link to the "Plans" menu. 2017-11-24 21:00:23 -05:00
Michael Stenta cb25b4070f Add support for plan entities in the farm_ui module. 2017-11-24 21:00:23 -05:00
Michael Stenta b327a64eae Minor doc fix in hook_farm_ui_entity_view_groups(). 2017-11-14 13:45:37 -05:00
Michael Stenta 3a61454104 Do not allow collapsing farm_ui groups. 2017-11-14 13:45:37 -05:00
Michael Stenta cf84a3af07 Put all log Views in the "logs" farm_ui group and change the group name to "Logs by type". 2017-11-14 13:45:37 -05:00
Michael Stenta a6da002c62 Add a group for "Logs with special purpose" and put movement and inventory logs in there via farm_ui. 2017-11-14 13:45:37 -05:00
Michael Stenta 01f95f3058 Fix farm_log dependencies. Stop using it to automatically install activity, harvest, input, and observation modules. 2017-10-10 17:59:32 -04:00
Michael Stenta 29b07ea34a Add menu items for "All assets" and "All logs". 2017-10-10 17:31:38 -04:00
Michael Stenta b39df3fe5c If there are no assets/logs in an area, do not display label in area details. 2017-08-14 10:06:45 -04:00
Michael Stenta da5fa1bf6d Revert "Remove hook_farm_ui_actions() because farm_ui is the only module implementing it now."
This reverts commit 0060a95262 and updates the code accordingly.
2017-07-21 14:21:48 -04:00
Michael Stenta 32b4ef9309 Invoke a hook for modules to provide their own entity View groups. 2017-06-28 14:54:49 -04:00
Michael Stenta 2a2c3f794d Wrap entity View groups in a fieldset. 2017-06-28 12:49:26 -04:00
Michael Stenta d3f5480542 Add ability to group entity Views into assets, logs, or other. 2017-06-28 12:44:58 -04:00
Michael Stenta 186ba38aea Rearrange functions in farm_ui.module: hooks on the top, helper functions on the bottom. 2017-06-28 12:11:14 -04:00
Michael Stenta 665105ff62 Move entityreference_view_widget code to helper function in farm_ui.views.inc. 2017-06-28 12:10:35 -04:00
Michael Stenta 3005ccf5b1 Move entity Views code to farm_ui.entity_views.inc. 2017-06-28 12:10:35 -04:00
Michael Stenta 6fb35cad87 Move breadcrumb code to farm_ui.breadcrumb.inc. 2017-06-28 12:10:35 -04:00
Michael Stenta c5d7f77f96 Move action link code to farm_ui.action_links.inc. 2017-06-28 12:10:35 -04:00
Michael Stenta 8e6411511e Implement hook_hook_info() in farm_ui module. Move implementations to farm_ui.farm_ui.inc. 2017-06-28 12:10:35 -04:00
Michael Stenta a011057aa9 Move Farm UI hook_views_post_render() logic to helper function in farm_ui.views.inc. 2017-06-28 12:10:03 -04:00
Michael Stenta ab1bf9821e Move Farm UI hook_farm_area_details() to farm_ui.farm_area.inc. 2017-06-28 11:41:58 -04:00
Michael Stenta 9c4ac0a1eb Remove duplicate "Add area" action link. 2017-06-28 10:27:44 -04:00