Commit Graph

1551 Commits

Author SHA1 Message Date
Michael Stenta 46c70131ff Issue #3202579 by paul121, pcambra, mstenta: Map asset details 2021-06-09 11:55:36 -04:00
Pedro Cambra 26f55878cb Map popup custom controller 2021-06-09 11:33:35 -04:00
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
Michael Stenta a7c5085876 Remove map_popup view modes for water assets. 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 7894368f20 Add location field to map_popup view modes. 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 8df4b16772 Remove map_popup view modes for compost, group and sensor assets. 2021-06-09 11:33:35 -04:00
paul121 07416c6601 Remove birthdate, is_castrated, nickname and sex fields from animal asset 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 027adf68a2 Do not render asset urls as absolute urls. 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 77102245f3 Add map_popup entity_view_display config for assets. 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
paul121 0a94bbb6d9 Render the feature name as a link in popups if a url is provided. 2021-06-09 11:33:34 -04:00
paul121 1cb8e99928 Include a url property to view assets in the geojson export view. 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
Michael Stenta b3be5b0755 If the new revision log message matches the original, then set a blank message. 2021-06-09 11:01:32 -04:00
Michael Stenta 4f31aa9ed1 Always set the revision user ID. 2021-06-09 10:10:12 -04:00
paul121 2772a7bfe6 Fix farm_powered_by_block provider. 2021-06-08 22:38:09 -04:00
paul121 abb2dc72c7 Add schema for hideable_boolean field formatter.
Schema was missing which caused config inspector errors when creating
map_popup display config for assets. We didn't catch this before because
our default display mode is not saved in config.
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 15d584885d Merge branch '2.x-id_tag_template' into 2.x 2021-06-07 12:28:58 -04:00
paul121 0809f644d4 Add padding between id-tag field items. 2021-06-07 12:27:34 -04:00
paul121 68a06cbf01 Render the tag_type label. 2021-06-07 12:27:34 -04:00
paul121 bda93d4373 Add "id-tag__{property}" class to each div. 2021-06-07 12:27:34 -04:00
paul121 3bc1871e39 Render each ID tag property on a separate line. 2021-06-07 12:27:34 -04:00
Michael Stenta ffb88f44da Issue #3217715: Dashboard block with simple farm metrics 2021-06-07 12:17:40 -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 d1956fd048 Issue #3188797 by paul121, m.stenta: Dashboard layout 2021-06-07 12:14:11 -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