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

85 commits

Author SHA1 Message Date
Mattias Sandström
39507038cd Fixed problems when BC math is missing #188 2019-07-18 12:37:52 -04:00
Michael Stenta
ae578b2a9c Fix PHP Warning: A non-numeric value encountered in farm_area_calculate_area_multiple(). 2019-05-27 16:49:32 -04:00
Skipper-is
ca1d2c5919 Specify $conversion array key
Specified the $conversion array's key.
2019-05-25 10:07:05 +01:00
Michael Stenta
130b9301a5 Add metrics for total number of areas, and total area of certain area types. 2019-04-01 15:56:17 -04:00
Michael Stenta
256abebdb4 Add a helper function for calculating the total area of all areas of a particular type. 2019-04-01 15:56:17 -04:00
Michael Stenta
72334e1991 Refactor other modules to use high-level access rules instead of explicit roles. 2018-12-27 10:42:37 -05:00
Michael Stenta
3e03174c61 Create an internal machine name for farm access roles. 2018-12-27 10:42:37 -05:00
Michael Stenta
f7d76c25c3 Display area description in area details popup. 2018-12-19 14:13:19 -05:00
Michael Stenta
93539d056d Fix water module installation, enable it by default on new sites, and enable it on existing sites. 2018-12-18 17:31:32 -05:00
Michael Stenta
999e9dfdb5 Fix weight sorting for area type options. 2018-12-04 15:19:43 -05:00
Michael Stenta
3165d1cc5f Update farm_area_generate and farm_area_import default area types logic. 2018-12-04 15:19:43 -05:00
Michael Stenta
74c99b0479 Move all default area types (except 'other') to new farm_area_types module. 2018-12-04 15:18:07 -05:00
Michael Stenta
1e69b31bd1 Move water area type to the farm_water module. 2018-12-04 15:18:07 -05:00
Michael Stenta
ea93903b61 Add missing @file to farm_area.farm_area.inc. 2018-12-04 15:12:50 -05:00
Michael Stenta
21c5b4d06e Add an 'other' area type. 2018-12-04 15:12:34 -05:00
Michael Stenta
330afb9771 Allow specifying default area type in KML area importer. 2018-12-04 11:47:47 -05:00
Michael Stenta
50c7856b1e Improve help text above area geometry field. 2018-11-14 12:23:58 -05:00
Michael Stenta
ffc511a46e Rename "Area generator" to "Bed generator" for UX, with area type set to bed by default. This can be re-generalized in the future. 2018-11-14 11:29:41 -05:00
Michael Stenta
b5afb1d2c3 Add a central helper function that maintains a list of quantity units by measure. 2018-11-14 11:11:42 -05:00
Michael Stenta
79d35877fc Fix PHP Notice: Only variables should be passed by reference 2018-10-31 09:00:53 -04:00
Michael Stenta
19abe4b032 Wrap dashboard panes in fieldsets. 2018-10-27 08:21:55 -04:00
Michael Stenta
22cb8b280f Refactor dashboard so that modules can implement a hook to add panes. 2018-10-27 08:21:55 -04:00
Michael Stenta
8c4dc07182 Add address geocoder widget to other maps: geofield formatter, areas, assets. 2018-10-10 13:49:56 -04:00
Michael Stenta
6e9221f15e Pass farm_area_parse_name() $create parameter into farm_term(). 2018-10-01 16:27:38 -04:00
Michael Stenta
a798e64cd0 Use new farm_term() function where possible. 2018-10-01 14:49:24 -04:00
Michael Stenta
341093710e Create a helper function for subjectively defining the relative size of an area measurement. 2018-09-26 14:07:24 -04:00
Michael Stenta
ffe851bb72 Create a helper function that returns the default units for an area measure (with optional relative size). 2018-09-26 14:07:24 -04:00
Michael Stenta
38ac0d6a93 Add a function for calculating the total surface area of multiple areas. 2018-09-26 14:07:24 -04:00
Michael Stenta
a194137a89 Move farm_movement_parse_areas() to farm_area_parse_names(). 2018-09-26 14:07:24 -04:00
Michael Stenta
369c0e2d5a Break out area unit conversion to a separate function: farm_area_convert_area_units($input, $units). 2018-07-04 14:47:50 -04:00
Michael Stenta
ae4e4aaf36 Minor fixes to farm_area_format_calculated_area(). 2018-07-04 14:47:44 -04:00
Michael Stenta
0b20b49f95 Return zero when formatting an empty calculated area. 2018-07-04 14:09:14 -04:00
Michael Stenta
900cc7da00 Offer an option to leave off units from formatted area. 2018-07-04 14:09:14 -04:00
Michael Stenta
2b4df1054f Move KML geometry parsing functions from farm_area_import to farm_map_kml. 2018-05-30 13:59:51 -04:00
Michael Stenta
0675226f9b Add KML button to areas View. 2018-05-30 13:59:51 -04:00
Michael Stenta
f43c0699a1 Issue #2908165: Display area of Areas in their description page 2018-05-29 08:34:05 -04:00
Michael Stenta
018ae44bb5 Show a summary of how many geometries were parsed. 2018-04-25 20:29:44 -04:00
Michael Stenta
783d00b57e Add an option to create a parent area for all new areas. 2018-04-25 20:29:44 -04:00
Michael Stenta
66985389f7 Add support for KML files that do not organize Placemarks into Folders. 2018-04-25 20:29:44 -04:00
Michael Stenta
042459ec85 Move Placemark parsing to a separate helper function. 2018-04-25 20:29:44 -04:00
Michael Stenta
da48182e66 Split KML parsing out to a separate function. 2018-04-25 20:29:44 -04:00
Michael Stenta
c2b9d330e6 Prevent validation from happening on Parse. 2018-04-19 18:26:55 -04:00
Michael Stenta
63346b7127 Add support for placemark descriptions (mapped to area description). 2018-04-19 18:26:49 -04:00
Michael Stenta
4e7ad12df4 Add support for multiple folders of placemarks. 2018-04-19 18:17:17 -04:00
Michael Stenta
910b9227f3 KML may have Document->Folder->Placemark, or it may just have Folder->Placemark. 2018-04-19 18:13:27 -04:00
Michael Stenta
c9e14e3d2c Fix issue: AJAX not resetting output values. 2018-04-19 18:12:49 -04:00
Michael Stenta
3ac276e92a Create areas in submit function. 2018-04-19 17:13:10 -04:00
Michael Stenta
1ba4af11c8 Validate required fields and geometries. 2018-04-19 16:59:33 -04:00
Michael Stenta
3bf44956c4 Add area type select fields, confirm checkboxes, and submit button. 2018-04-19 16:59:10 -04:00
Michael Stenta
e55c5704fb Initial commit of farm_area_import: simple parsing of KML content. 2018-04-19 16:26:04 -04:00