3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
Commit graph

1654 commits

Author SHA1 Message Date
paul121 ae22af2c56 Display the plans pane in the second region. 2021-06-07 12:13:41 -04:00
paul121 03eb2a9918 Display log panes in the first layout region. 2021-06-07 12:13:41 -04:00
paul121 4091d7db01 Add padding between layout columns. 2021-06-07 12:13:41 -04:00
paul121 2633517aa6 Document layout region option. 2021-06-07 12:13:41 -04:00
paul121 5ca334cd6a Render the dashboard using the layout_twocol layout. 2021-06-07 12:13:41 -04:00
paul121 9233882376 Depend on the core layout_discovery module. 2021-06-07 12:13:41 -04:00
Michael Stenta eba7ec0098 Issue #3179023 by pcambra, m.stenta: Location hierarchy drag-and-drop editor 2021-06-07 12:13:09 -04:00
Pedro Cambra 217da91e5a Improve drag and drop behaviour 2021-06-07 11:53:59 -04:00
Michael Stenta e1efdc3aba Add location UI help text. 2021-06-07 11:06:16 -04:00
Michael Stenta cdae05caa7 Move toggle link to a button inline with Save and Reset. 2021-06-07 11:06:16 -04:00
Michael Stenta 7a86c2f2fb Fix locations overview tree so that it works without a root parent. 2021-06-07 11:06:16 -04:00
Michael Stenta abb0f7944a Remove unused use statements. 2021-06-07 07:53:16 -04:00
Michael Stenta cf7d26f683 Do not include archived child locations. 2021-06-07 07:53:16 -04:00
Michael Stenta 5e0c22d0c5 Refactor getAssetChildren() into getLocations() because it is specifically child locations. Always return an array. 2021-06-07 07:53:16 -04:00
Michael Stenta cfa6ac67bc Add docblock for build() method. 2021-06-07 07:53:16 -04:00
Michael Stenta cd7139f26e Refactor access callback to forbid access if the asset is not a location or it has no child locations. 2021-06-07 07:51:29 -04:00
Michael Stenta 062d7ffc28 Add an "access locations overview" permission for /locations and /asset/%/locations.
Grant it to farmOS managed roles by default.
2021-06-07 07:51:29 -04:00
Michael Stenta 317efd01cd Set the page title of asset/%/locations to "Locations in %location". 2021-06-07 07:51:28 -04:00
Michael Stenta 8cd89c8150 Hide "Children" tab on location assets. 2021-06-05 21:34:10 -04:00
Pedro Cambra bf9258536f Add toggle link and node links 2021-06-05 21:34:10 -04:00
Pedro Cambra a42a9cc527 Removed location force revision as it will implemented more generally in https://www.drupal.org/project/farm/issues/3216766 2021-06-05 21:34:10 -04:00
Pedro Cambra 7e91f85c81 Added status to the save button 2021-06-05 21:34:10 -04:00
Pedro Cambra 511bd3771d Force revision creation through json api 2021-06-05 21:34:10 -04:00
Pedro Cambra 7ab249b03c Added route access so the location tab is not displayed if the asset has no children 2021-06-05 21:34:10 -04:00
Pedro Cambra 48e42a252c Overwrite inspire tree config 2021-06-05 21:34:10 -04:00
Pedro Cambra 2926c85b5d Renamed locations ui library to a more sensible name 2021-06-05 21:34:10 -04:00
Michael Stenta 51562201ee Move farm_dashboard to farm_ui_dashboard. 2021-06-05 21:34:09 -04:00
Michael Stenta 26e1d2459c Only load location assets in buildTree(). 2021-06-05 21:34:09 -04:00
Michael Stenta 4ed3684202 Add a Locations link to the main farmOS menu. 2021-06-05 21:34:09 -04:00
Michael Stenta a940116213 Move /asset-locations to /locations. 2021-06-05 21:34:09 -04:00
Michael Stenta 205984280e Add docblock comments to buildTree() method so code sniffer tests pass. 2021-06-05 21:34:09 -04:00
Michael Stenta 4d631d7f38 Declare asset and log module dependencies in farm_location module. 2021-06-05 21:34:09 -04:00
Michael Stenta 3237a750c1 Move location hierarchy editor code to farm_ui_location. 2021-06-05 21:34:09 -04:00
Michael Stenta fd3a511d0a Create a new farmOS UI Location module. 2021-06-05 21:34:09 -04:00
pcambra 771c753518 First stub of the asset location hierarchy editor feature. 2021-06-05 21:34:09 -04:00
Michael Stenta 69638f33ec Add a Farm UI Help module. 2021-06-05 16:56:15 -04:00
Michael Stenta 4d59cd69c7 Do not archive areas without an area type during migration. 2021-06-05 14:53:17 -04:00
Michael Stenta 5c6856fe0c Add "Migrated from farmOS 1.x on [date]" revision log messages to migrated records. 2021-06-05 14:53:17 -04:00
pcambra 0f87c085ea Issue #3216766: Revisions are not supported on JSON API 2021-06-04 22:45:01 -04:00
Michael Stenta e000ef821b Include asset name in asset/%/children and asset/%/assets page titles. 2021-06-04 22:45:01 -04:00
Michael Stenta 00720477f2 Include asset name in asset/%/logs page title. 2021-06-04 22:18:20 -04:00
Michael Stenta 85e7815090 Enforce the integrity of entity references to data_stream and quantity entities. 2021-06-04 22:04:38 -04:00
Michael Stenta ec71d8fb62 Issue #3216843 by paul121: Views of logs that reference location assets 2021-06-04 22:04:17 -04:00
paul121 8fb00a69f3 Ensure the table is joined. 2021-06-04 21:41:09 -04:00
paul121 25abf02a75 Simplify the where expression to not include the asset ID. 2021-06-04 21:41:09 -04:00
paul121 f2b3ffc07f Include asset references via the log.location field in access check. 2021-06-04 21:41:09 -04:00
Paul Weidner 44fbca2491 Use the asset_or_location argument plugin for the page_asset display. 2021-06-04 21:41:09 -04:00
Paul Weidner 2f6f945efc Add the asset_or_location as an available argument for the log_field_data views table. 2021-06-04 21:41:08 -04:00
Paul Weidner 6a14fe5809 Implement an asset_or_location views argument plugin. 2021-06-04 21:36:11 -04:00
Michael Stenta 238fb66b85 Ensure an empty array is not used in SQL WHERE IN (). 2021-06-04 21:28:18 -04:00