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

89 commits

Author SHA1 Message Date
Michael Stenta 62d2287257 Clean up unused variable. 2016-06-08 13:28:51 -04:00
Michael Stenta 234489badb Split Observation log out into sub-module. 2016-04-24 23:23:34 -04:00
Michael Stenta e8ffc4821e Split Movement log and asset location code out into sub-module. 2016-04-24 23:23:34 -04:00
Michael Stenta 4870fada39 Split Input log out into sub-module. 2016-04-24 23:23:34 -04:00
Michael Stenta 7ea0cc1bb0 Split Harvest log out into sub-module. 2016-04-24 23:23:34 -04:00
Michael Stenta 23f901b2e9 Split Activity log out into sub-module. 2016-04-24 23:23:29 -04:00
Michael Stenta 91924bffc7 Issue #2567463: Generalize Input and Harvest logs 2016-04-24 21:13:56 -04:00
Michael Stenta a355615f9a Swap Observations and Activities Views in area pages and links. 2016-04-24 21:08:26 -04:00
Michael Stenta f649e94783 Move Quantity field collection, fields, taxonomy, and strongarm to Farm Quantity module (see https://www.drupal.org/node/2691595). 2016-03-21 11:58:58 -04:00
Michael Stenta 7781ce1fcd Add a Log action link to /farm/logs. 2016-03-09 07:24:00 -05:00
Michael Stenta dbee12ae0b Fix activity and observations counts in area links. 2016-03-07 18:14:14 -05:00
Michael Stenta b3d0c24a15 Display area links with log counts - don't display if empty. 2016-03-07 16:19:42 -05:00
Michael Stenta 08b583b9e3 Point area links to full View pages. 2016-03-07 16:17:05 -05:00
Michael Stenta ced3f0275c Set the weight of the "Add a log" action link to 1 so that it appears after "Add an asset". 2016-02-01 12:45:04 -05:00
Michael Stenta 4f92d23964 Add a general "Add a log" action link to dashboard. 2016-01-31 19:28:27 -05:00
Michael Stenta 53e44a988d Remove activity, movement, and observation action links from dashboard. 2016-01-31 19:28:00 -05:00
Michael Stenta 729ae2cbe6 Move all movement and asset location logic to a separate include file, for organization. 2015-11-28 13:02:44 -05:00
Michael Stenta e89e114eae Issue #2617242: Moving from an area with commas in title results in multiple areas generated 2015-11-17 19:41:14 -05:00
Michael Stenta ead354d669 Change hook_farm_manager_perms() to hook_farm_access_perms(). 2015-10-04 00:06:53 -04:00
Michael Stenta c0619ac2d8 Redirect "Move" action to a movement log creation form, instead of a custom action form. 2015-10-01 20:54:25 -04:00
Michael Stenta 2d43922807 Helper function for automatically populating the "from" field of logs: farm_log_prepopulate_movement_from() 2015-10-01 20:53:45 -04:00
Michael Stenta 744991dcd2 Refactor farm_log_form_prepopulate_asset() to populate multiple assets. 2015-10-01 20:51:40 -04:00
Michael Stenta aed16bd984 Automatically copy area geometry to movement longs if a specific movement geometry isn't defined. 2015-10-01 20:46:02 -04:00
Michael Stenta 5f09cd4ce6 Use field_attach_form() to pull the actual "To" field from movement logs into the "Move" action form. 2015-09-29 09:05:58 -04:00
Michael Stenta b2a15541b9 Default timestamp to current time in farm_log_move_assets() helper function. 2015-09-29 08:36:22 -04:00
Michael Stenta 2247c67730 Display the geofield in the asset view page location summary. 2015-09-28 17:43:38 -04:00
Michael Stenta 7b6eaf64bd Add a function for retrieving an asset's most recent movement log. 2015-09-28 15:33:51 -04:00
Michael Stenta 245e5e6fe2 Refactor farm_log_asset_movement_query() function to take a $time and $done, for consistency and future uses. 2015-09-28 14:23:48 -04:00
Michael Stenta f9bfe1def2 More asset prepopulation refactoring to fix Entity Reference View Widget when no asset parameter is passed. 2015-09-11 15:01:25 -04:00
Michael Stenta 1ab795dc96 Issue #2566971: Entity Reference View Widget breaks asset auto-population 2015-09-11 12:00:40 -04:00
Michael Stenta 57ed71863c Refactored asset reference field prepopulation function to work with field types: entityreference_autocomplete, entityreference_autocomplete_tags, options_buttons, options_select. 2015-09-11 11:32:58 -04:00
Michael Stenta a4e0722efe Implement hook_farm_manager_perms(). 2015-09-08 15:17:47 -04:00
Michael Stenta e640982e77 Display "Add a Movement" in the farm dashboard and in area pages. Prepopulate "To" field when it's clicked from an area page. 2015-09-07 09:49:26 -04:00
Michael Stenta 12e3a099a1 Remove code for hiding asset reference fields. 2015-08-07 13:26:52 -04:00
Michael Stenta 8946266b39 If the observation type field is empty, prepopulate it with "General". 2015-05-27 16:32:57 -04:00
Michael Stenta de4d704856 Issue #2477643: Observations of areas 2015-05-27 16:31:33 -04:00
Michael Stenta 8374143a77 Move the query for finding the latest movement log of an asset into its own helper function. 2015-05-27 11:53:19 -04:00
Michael Stenta df3d5e1411 Issue #2481403: Duplicate "From" areas when moving bulk assets 2015-05-01 09:59:19 -04:00
Michael Stenta 99f62a6d8c Issue #2481373: Fixed error when assigning new asset location. 2015-05-01 08:49:50 -04:00
Michael Stenta 951fd7f46a Drupal coding standards cleanup. 2015-04-13 16:49:57 -04:00
Michael Stenta 9a41462607 Issue #2452373: History of assets in an area 2015-04-10 11:16:22 -04:00
Michael Stenta 86994c5ff5 Issue #2462513: Allow setting/editing location in asset edit form 2015-04-10 10:03:13 -04:00
Michael Stenta 2ebce943dc Create a new helper function for moving farm assets. Use it in the move action code. 2015-04-10 10:02:12 -04:00
Michael Stenta e4d0c9cf91 Restructure if conditions in farm_log_form_alter() to prepare for forms other than log_form. 2015-04-08 22:49:34 -04:00
Michael Stenta f901336a99 If the asset field is not empty, restrict access, but also display them as plain text in a fieldset at the top of the log form. 2015-04-08 15:58:40 -04:00
Michael Stenta de58731272 Rework the bulk Move action so that it only creates one movement for all selected assets (and fills in the From field with all previous locations). 2015-04-08 15:50:36 -04:00
Michael Stenta 2ae72c94f4 Change farm asset field widget to Entity Reference (tags style). Rework asset prepopulate function to work with both. 2015-04-08 15:49:07 -04:00
Michael Stenta bbbf7a9f15 Display the Activies View in the Area term page, and update the area link to use an anchor fragment in the same page. 2015-03-21 10:40:03 -04:00
Michael Stenta 88117e795b Leverage new 'views' array in hook_farm_admin_actions(). 2015-03-14 10:56:52 -04:00
Michael Stenta a07a581ab8 Convert the timestamp to the format Date API expects. 2015-03-13 12:37:56 -04:00