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

221 commits

Author SHA1 Message Date
Michael Stenta
1da9527d3d Add flag CSS to maps so that flags in popups are styled. 2021-06-09 11:33:35 -04:00
Michael Stenta
d4d54927a7 Fix default view mode condition. $display->getMode() never returns "default". Instead load the view mode options by bundle to see if map_popup options are defined. 2021-06-09 11:33:35 -04:00
Michael Stenta
dbc2245d22 Add name and type to allowed default fields. 2021-06-09 11:33:35 -04:00
Michael Stenta
85efcaf324 Add a link to "View assets in this location", if the asset is a location. 2021-06-09 11:33:35 -04:00
Michael Stenta
bfcdcf4bbd Add "View logs" to an array of links rendered as markup with a pipe separator. 2021-06-09 11:33:35 -04:00
Michael Stenta
a7f2ea885f Hide more fields in map popups: group, id_tag, parent, season, status. 2021-06-09 11:33:35 -04:00
paul121
3320662303 Remove the farm_powered block from the map_popup view mode template. 2021-06-09 11:33:35 -04:00
paul121
e7af56fe5f Only display common fields on asset bundles that don't provide a map_popup view mode. 2021-06-09 11:33:35 -04:00
paul121
7ec99e10f2 Add link to view logs from the asset popup. 2021-06-09 11:33:35 -04:00
paul121
fb995a061c Ensure the popup is displayed inside the map. 2021-06-09 11:33:35 -04:00
paul121
9f7906d2c6 Render the asset map_popup view inside map popups. 2021-06-09 11:33:35 -04:00
paul121
8a1802ffd3 The asset_type_layers behavior depends on the popup behavior. 2021-06-09 11:33:35 -04:00
paul121
b1b30889cc Render the asset map_popup view mode at /asset/*/map_popup 2021-06-09 11:33:34 -04:00
paul121
2ccf64541f Create a map_popup view mode for assets. 2021-06-09 11:33:34 -04:00
Pedro Cambra
b628547d6e Remove unnecessary injection from AssetReorderController.php 2021-06-09 11:32:58 -04:00
paul121
2772a7bfe6 Fix farm_powered_by_block provider. 2021-06-08 22:38:09 -04:00
Michael Stenta
1d8a0d1c21 Add some space between help text paragraphs via CSS. 2021-06-08 21:09:08 -04:00
Michael Stenta
05418f804b Set $this->bundleInfo in FarmMetricsBlock. 2021-06-08 07:35:07 -04:00
Michael Stenta
975370b12c Add the Metrics block to the dashboard's second region. 2021-06-07 12:17:04 -04:00
Michael Stenta
635e2d0309 Add a FarmMetricsBlock that includes asset and log record counts by type. 2021-06-07 12:17:04 -04:00
Michael Stenta
25b74d23cc Initial farm_ui_metrics module. 2021-06-07 12:17:04 -04:00
Michael Stenta
0e1fdf3f94 Remove id and type from Upcoming/Late Tasks displays to reduce width of dashboard column. 2021-06-07 12:13:41 -04:00
Michael Stenta
e8299a7df9 Set overflow-x: scroll on dashboard layout regions to prevent bumping second column below first. 2021-06-07 12:13:41 -04:00
Michael Stenta
dff53dba7f Add the dashboard map to the top region. 2021-06-07 12:13:41 -04:00
paul121
f43f4f1050 Define the plans and logs dashboard groups. 2021-06-07 12:13:41 -04:00
paul121
1e639cdd8c Default the group #type to container if none was provided. 2021-06-07 12:13:41 -04:00
paul121
b66f0db401 Allow modules to define dashboard groups per layout region. 2021-06-07 12:13:41 -04:00
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
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