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

1277 commits

Author SHA1 Message Date
Paul Weidner f06cb357bc Save photos with pre and post grazing observation logs. 2020-07-24 10:57:26 -04:00
Michael Stenta ce457d88d0 Add fields for photo attachments (not processed yet). 2020-07-24 10:57:26 -04:00
Michael Stenta 9ca51f4c9a Serve client module JS files through Drupal. 2020-07-24 10:52:31 -04:00
paul121 5d17f01bca Rename hook_farm_client_modules() to hook_farm_client_module_info(). 2020-07-24 10:52:31 -04:00
Michael Stenta 1102f26ae9 Provide a hook that allows modules to declare Field Modules they provide. 2020-07-24 10:52:31 -04:00
Michael Stenta b8159138d9 If getallheaders() is not available, implement it ourselves. 2020-07-24 09:40:32 -04:00
Michael Stenta 7424cb9a54 Add Vary: Origin header when Access-Control-Allow-Origin is added. 2020-07-21 11:08:19 -04:00
Michael Stenta 282ac7fa71 Trim whitespace from allowed origins before checking them. 2020-07-21 11:08:03 -04:00
Michael Stenta 0b59497344 Allow multiple origins to be accepted for Access-Control-Allow-Origin header. 2020-07-21 11:07:38 -04:00
Michael Stenta 6289b37848 Fix "Done" filter in Calendar View only showing pending logs by default. 2020-07-21 07:54:43 -04:00
Michael Stenta e5423ac615 Add "Done" filter to Calendar View. 2020-07-20 08:21:47 -04:00
Michael Stenta 8a58fa7360 Allow OPTIONS requests to return 200 code on certain paths needed by Field Kit (right now just /farm/areas/geojson). 2020-07-20 08:21:47 -04:00
paul121 e40270ea48 Use isset to check for measurement values including 0. 2020-07-17 11:04:06 -04:00
Michael Stenta 34f569a8fb Fix birth quick form permissions. 2020-07-15 19:55:03 -04:00
Michael Stenta 7e930dd210 Make farm_map_combine_geoms() more resilient to empty geometries. 2020-07-15 13:45:19 -04:00
Paul Weidner 4b9df8fe63 Autocomplete multiple asset names separated by commas. 2020-07-15 13:33:36 -04:00
Paul Weidner 5f80906a23 Use correct order of parameters in implode function. 2020-07-15 11:56:18 -04:00
Michael Stenta fd867b6fbb Fix farm_map base_path JS setting to work without clean URLs. 2020-07-15 11:53:54 -04:00
Michael Stenta 3ef56dde35 Add description to animal weight action form. 2020-07-14 08:28:13 -04:00
Paul Weidner 2ea0c1f1f0 Link created logs to the quick form. 2020-07-07 14:24:45 -04:00
Michael Stenta faa9fdadba Use #default_value instead of #value and unset $form_state['input'] so that custom geometries are saved. 2020-07-03 08:48:18 -04:00
Michael Stenta ede70d0358 Pass geometry for farm_movement_create() instead of using farm_map_geofield_populate() because that doesn't populate movement geometries. 2020-07-03 08:48:18 -04:00
Michael Stenta 8bab415caa Allow a custom geometry to be provided with farm_movement_create(). 2020-07-03 08:48:18 -04:00
paul121 01c7147ddb Remove the current location layer if an asset has no location. 2020-07-03 08:48:18 -04:00
paul121 19db0bd560 Move next location ajax logic to form builder function. 2020-07-03 08:48:18 -04:00
paul121 948944e6bf Move current location ajax logic to form builder function. 2020-07-03 08:48:18 -04:00
paul121 64b4860a42 Rename ajax function to farm_livestock_move_form_current_location_ajax. 2020-07-03 08:48:18 -04:00
paul121 ec7aa6c19b Use log_save() method instead of $log->save(). 2020-07-03 08:48:18 -04:00
paul121 9b07b45d86 Call access callback with array of permissions as the first argument. 2020-07-03 08:48:18 -04:00
paul121 419d52cabd Display the movement geometry with orange color. 2020-07-03 08:48:18 -04:00
paul121 1bb243b576 Zoom to all vector layers when auto-updating the map. 2020-07-03 08:48:18 -04:00
paul121 6f231744f1 Create an editable Movement layer that updates with area geometry. 2020-07-03 08:48:18 -04:00
paul121 baa8fd5329 Display the assets current location on the map. 2020-07-03 08:48:18 -04:00
paul121 69ca698238 Link post grazing logs to area(s) animals are moving from. 2020-07-03 08:48:18 -04:00
paul121 f4d6aaabfb Create post grazing observation log before movement log. 2020-07-03 08:48:18 -04:00
paul121 f0dd507f80 Link pre grazing logs to the area animals are moving to. 2020-07-03 08:48:18 -04:00
paul121 544ef28f5a Create pre and post grazing observation logs. 2020-07-03 08:48:18 -04:00
paul121 b818781b5c Validate pasture height and forage quality are numbers. 2020-07-03 08:48:18 -04:00
paul121 75bb72069e Determine pasture height unit based on system of measurement. 2020-07-03 08:48:18 -04:00
paul121 208ffb4ed0 Create movement activity logs with optional precise geometry. 2020-07-03 08:48:18 -04:00
paul121 7fcc984e41 Validate animal or group asset. 2020-07-03 08:48:18 -04:00
paul121 5580aa9e85 Make the movement form a tree. 2020-07-03 08:48:18 -04:00
paul121 bfbed98499 Add movement date field. 2020-07-03 08:48:18 -04:00
Michael Stenta 292bc23b44 Initial sketch of post/pre-grazing observation fields. 2020-07-03 08:47:03 -04:00
Michael Stenta be0fa3b336 Add geometry field. 2020-07-03 08:45:28 -04:00
Michael Stenta 588796769b Initial animal move quick form sketch. 2020-07-03 08:43:14 -04:00
Michael Stenta be8fb3ef5e Require "create animal farm_asset entities" permission for the birth quick form. 2020-07-03 07:52:40 -04:00
Michael Stenta 4efe9c1488 Allow requiring multiple permissions for quick form access. 2020-07-03 07:52:40 -04:00
paul121 29665c3c0f Remove limit to display all active plans in block view. 2020-06-25 10:29:54 -04:00
paul121 046f3688bd Display active plans in a dashboard pane. 2020-06-25 10:29:54 -04:00