Paul Weidner
ea92bd122d
Render without location and move asset button by default.
2022-06-21 08:12:22 -04:00
Paul Weidner
99c3319cce
If the asset is fixed don't render additional information.
2022-06-21 08:12:22 -04:00
Paul Weidner
badaf9680c
Use asset_current_location formatter for the asset location computed field.
2022-06-21 08:12:22 -04:00
Paul Weidner
874dfad08b
Add asset_current_location field formatter.
2022-06-21 08:12:22 -04:00
Paul Weidner
bab081692a
Allow asset IDs to be passed as query params to asset move form.
2022-06-21 08:12:22 -04:00
Michael Stenta
e70b092c05
Return a string value from farm_map_input elements instead of an array.
2022-06-18 15:33:31 -04:00
Michael Stenta
de94168269
Respect the #disabled form element by disabling edit control and textfield/hidden input.
2022-06-18 07:52:39 -04:00
Michael Stenta
8311576848
Do not show raw geometry field by default.
2022-06-18 07:52:39 -04:00
Michael Stenta
a1a015cc58
Remove geofield_widget map type.
2022-06-18 07:52:39 -04:00
Michael Stenta
a516fd4218
Default #map_type to "default" instead of "geofield_widget".
2022-06-18 07:52:39 -04:00
Michael Stenta
e5f8594098
Add wkt and input behaviors to all farm_map_input elements by default.
2022-06-18 07:52:39 -04:00
Michael Stenta
388a0f43b1
Make the map input text field title invisible.
2022-06-18 07:52:39 -04:00
Michael Stenta
b6744a3cd3
Set the map input text field title to that of the parent element + "WKT".
2022-06-18 07:52:39 -04:00
Michael Stenta
7923c06740
Do not wrap map input element in a fieldset by default.
2022-06-18 07:52:39 -04:00
Michael Stenta
4574cc5e9b
Allow #behaviors to be added directly to farm_map and farm_map_input elements.
2022-06-18 07:52:39 -04:00
Michael Stenta
ebeda67be4
Recursively merge provided map settings into defaults.
2022-06-18 07:52:39 -04:00
Michael Stenta
70e8b1f9ea
Always default #map_settings to an empty array.
2022-06-18 07:52:39 -04:00
Michael Stenta
ba6000ebc6
Add map element validation to check for valid geometry.
2022-06-18 07:52:39 -04:00
Michael Stenta
a5d442ba63
Rename the geofield map behavior to input.
2022-06-18 07:52:39 -04:00
Michael Stenta
36cc27bbf1
Rename farm_map_wkt element to farm_map_input.
2022-06-18 07:52:39 -04:00
Michael Stenta
26c9746681
Add automated tests for map form element.
2022-06-18 07:52:39 -04:00
Michael Stenta
0516346d23
Fix Notice: Undefined index: #default_value
2022-06-18 07:52:38 -04:00
Paul Weidner
6e6c96eeef
Update GeofieldWidget to use farm_map_wkt.
2022-06-18 07:52:38 -04:00
Paul Weidner
17dd03f23c
Add farm_map_wkt form element.
2022-06-18 07:52:38 -04:00
Paul Weidner
6d13a732d7
Return empty array if location field returns NULL.
2022-06-13 13:35:15 -07:00
Paul Weidner
029853883a
Only show active plans by default #529
2022-05-06 09:21:36 -04:00
Paul Weidner
79822dc7ba
Re-export farm_plan Views config per https://www.drupal.org/node/3230199 (no changes).
2022-05-06 09:20:36 -04:00
Paul Weidner
426b001bdd
Remove create() implementations from classes that do not implement ContainerInjectionInterface #530
2022-05-06 09:17:10 -04:00
Paul Weidner
3bbad9bb36
Remove GinSidebarOpen setting.
2022-05-05 11:31:11 -07:00
Paul Weidner
6b4d1ebca7
Decrease weight of farm info settings task link #528
2022-04-22 14:41:55 -04:00
Paul Weidner
305e8f76b7
Update toolbar logo spacing for gin beta #527
2022-04-22 14:38:43 -04:00
Paul Weidner
4949c34426
Do not check php-geos requirement in the update phase #526
2022-04-22 13:02:35 -04:00
Michael Stenta
b32cc453af
Issue #3275161 : Allow IMG tags in default text format
2022-04-20 11:34:41 -04:00
Symbioquine
a760005c7c
Link from entities to their referenced terms and show entity views on taxonomy terms #458
...
**Why?** Make it possible for novice users to find data and explore connections
between assets/logs without needing to totally grok the farmOS data model first.
i.e.
* Navigate from a plant asset to a list of all the seed/plant assets with the same crop/variety
* Navigate from a plant asset to a list of all the seed/plant assets from the same season
* Navigate from a log in the compost category to a list of all the logs in the compost category
* Navigate from a material asset to a list of all the materials with the same material type
2022-04-13 06:17:56 -07:00
Michael Stenta
94d766604d
Replace deprecated drupal_get_path() with \Drupal::service('extension.list.module')->getPath().
2022-04-07 19:28:26 -04:00
Michael Stenta
af8d34a2fb
Add an update hook to update Gin logo settings.
2022-04-07 18:03:09 -04:00
Paul Weidner
b1a5fc20be
Remove the body top padding in the map popup.
2022-04-07 16:25:04 -04:00
Paul Weidner
5c9858f5b9
Update to new gin logo settings schema.
2022-04-07 16:25:04 -04:00
Michael Stenta
fd23befa83
Implement hook_requirements() to check for GEOS PHP extension.
2022-04-07 14:23:38 -04:00
Michael Stenta
11cc36accf
Fix Non-namespaced classes/interfaces/traits should not be referenced with use statements #511
...
See https://github.com/farmOS/farmOS/pull/511#issuecomment-1076842769
2022-03-23 21:04:48 -04:00
Paul Weidner
e9307ea3f7
Include list_string, timestamp and boolean bundle fields in views #516
2022-03-23 21:00:48 -04:00
Paul Weidner
3c5b2c7075
Allow importing KML with empty geometries #510
...
Create an empty collection if no geometry was loaded.
2022-03-21 19:56:18 -04:00
Paul Weidner
8a562d673e
Do not add views handlers for unsupported field types #512
2022-03-21 19:49:21 -04:00
Paul Weidner
6cb3959c9c
Add case for string fields.
2022-03-21 19:48:57 -04:00
Paul Weidner
eef569dd1d
Issue #3269543 by paul121: Automatically remove prepopulated entities from quick forms
...
Save prepopulated entities in a form state temporary value to reset the temp store value.
2022-03-21 19:44:38 -04:00
Paul Weidner
1d1b360a0a
Use farm_land_type_options() in KmlImporter #513
...
farm_land_type_options should be used here instead of farm_land_type_field_allowed_values.
2022-03-21 19:38:28 -04:00
Paul Weidner
2be0b852db
Only require a name to build map popups #515
...
This allows popups to be rendered for multipolygon geometries
that will not have a measurement calculated.
2022-03-21 19:21:09 -04:00
Michael Stenta
a43a06d0d3
Fix drush farm_migrate migration group logs (don't use placeholder).
2022-03-17 14:37:02 -04:00
Michael Stenta
45d4246226
Remove farm_flag_applies() helper function.
2022-02-28 15:32:32 -05:00
Michael Stenta
15c2133a57
Merge farm_flag_allowed_values() into farm_flag_options(). Return an array of flag IDs+labels instead of Flag entities, for consistency with other *_options() functions.
2022-02-28 15:32:32 -05:00