Commit Graph

3332 Commits

Author SHA1 Message Date
Michael Stenta 08a3e1915a Update COPYRIGHT.txt year - Happy New Year! 2019-01-07 11:12:12 -05:00
Michael Stenta b382961764 Issue #3021472: Soil disturbance quick form 2019-01-04 14:07:23 -05:00
Michael Stenta 21201f2602 Fix potential rounding in both amendment and disturbance code. 2019-01-04 14:05:38 -05:00
Michael Stenta e38e73806e Move area percentage field into area fieldset. 2019-01-04 14:00:51 -05:00
Michael Stenta 5019c90f6b Add descriptions to Activity and STIR fields. 2019-01-04 14:00:38 -05:00
Michael Stenta 1630018c20 Add a field for the STIR value, loaded from activity, saved as a log measurement. 2019-01-04 13:52:16 -05:00
Michael Stenta 165c3b31a5 Add the soil disturbance log to $form_state['storage'] so other submit functions can work with it. 2019-01-04 13:51:52 -05:00
Michael Stenta 248916c599 Alter the "Activity" field in Soil Disturbance quick form to use STIR autocomplete. 2019-01-03 14:37:47 -05:00
Michael Stenta 0713d25e00 Add an autocomplete callback path for looking up STIR operations. 2019-01-03 14:37:47 -05:00
Michael Stenta 7cf0424af3 Use hook_form_FORM_ID_alter() in farm_soil_nrcs.module. 2019-01-03 14:37:47 -05:00
Michael Stenta eb13015617 Populate the farm_soil_nrcs_stir table from a CSV file. 2019-01-03 14:37:47 -05:00
Michael Stenta 297d4570a8 Add a {farm_soil_nrcs_stir} database table. 2019-01-03 14:37:47 -05:00
Michael Stenta 89fa6ea2ce Add activity field (saved to log title and notes). 2019-01-03 14:37:46 -05:00
Michael Stenta 0f5dba4860 Add fields for entering the total areas size and the percentage of it that was disturbed. 2019-01-03 14:37:46 -05:00
Michael Stenta e901441e6e Add notes fields (copied from amendment form). 2019-01-03 14:37:46 -05:00
Michael Stenta ad771f8004 Initial disturbance log creation code (only timestamp and area name). 2019-01-03 14:37:46 -05:00
Michael Stenta 9299054ded Initial blank soil disturbance quick form. 2019-01-03 14:37:46 -05:00
Michael Stenta 077a4e634c Add a "Tillage" log category. 2019-01-03 14:37:46 -05:00
Michael Stenta 959ceffc6c farm_log_create(): truncate log names that are too long automatically. 2019-01-03 14:37:28 -05:00
Michael Stenta bf4392eda3 Fix example hook_farm_dashboard_panes() implementation. 2019-01-03 13:31:07 -05:00
Michael Stenta a14d6a5526 Make the planting quick form checkboxes purpose more clear with "Add [type]". 2019-01-03 10:25:30 -05:00
Michael Stenta 7df21a07f7 Patch restws module to add ability to filter by entity bundle. 2018-12-28 15:13:45 -05:00
Michael Stenta 0b1b2b9ca2 Merge branch 'farm_access_roles' into 7.x-1.x 2018-12-27 10:44:24 -05:00
Michael Stenta e07f160929 Move default roles (Manager, Worker, Viewer) to separate module. 2018-12-27 10:42:37 -05: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 fcb3dda0fa Remove redundant quantity term permissions. 2018-12-27 10:42:37 -05:00
Michael Stenta ef55a893f1 If this role has 'config' access, allow them to administer users. 2018-12-27 10:42:37 -05:00
Michael Stenta b8b75ff864 Refactor taxonomy_farm_access_perms() to use high-level access rules. 2018-12-27 10:42:37 -05:00
Michael Stenta 0f6373c1e4 Change farm_access_entity_perms() to look for 'taxonomy_term' instead of 'taxonomy'. 2018-12-27 10:42:37 -05:00
Michael Stenta 6a905028e1 Allow all roles to view user profiles. 2018-12-27 10:42:37 -05:00
Michael Stenta f933727321 Allow all roles with high-level config access to delegate user roles. 2018-12-27 10:42:37 -05:00
Michael Stenta bb34395d3e Add a helper function for generating entity bundle permissions lists for high-level access rules, and use it for assets, plans, and logs. 2018-12-27 10:42:37 -05:00
Michael Stenta e9f399d178 Add ability to define high-level access rules in hook_farm_access_roles(). 2018-12-27 10:42:37 -05:00
Michael Stenta 93dfc7214a Simplify farm_access.api.php documentation. 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 cdbd82dd15 Rename columns in plan consideration table to avoid reserved SQL words. 2018-12-27 09:50:10 -05:00
Michael Stenta 14f22b44d2 Add sponsors: USFS-IP and NFA. 2018-12-20 10:12:10 -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 a3f8958f99 Remove deprecated 'links' from docker-compose.yml. 2018-12-18 14:51:34 -05:00
Michael Stenta b4ae127a8b Merge branch 'planting_form' into 7.x-1.x 2018-12-18 14:40:47 -05:00
Michael Stenta f22ad02b22 Add the ability to record a harvest log. 2018-12-18 14:31:36 -05:00
Michael Stenta 06b0f58a45 Add quantity field to logs. 2018-12-18 14:31:36 -05:00
Michael Stenta 3bf9050131 Generalize logic from farm_quantity_log_create() into new helper function: farm_quantity_log_add_measurements(). 2018-12-18 14:31:36 -05:00
Michael Stenta 9b4de6a7f9 Collapse log notes field. 2018-12-18 14:31:36 -05:00
Michael Stenta 32da3fc09f Remove old "Plan" fieldset from the planting asset form and add a link to the quick form. 2018-12-18 14:31:36 -05:00
Michael Stenta fd41604b1f Add seeding and transplanting log fields and processing. 2018-12-18 14:31:36 -05:00
Michael Stenta af994b7e56 Create separate explicit fields for each crop/variety. 2018-12-18 14:31:36 -05:00
Michael Stenta 54ee4723f6 Planting submit function: create planting with name, season, and crops. 2018-12-18 14:31:36 -05:00
Michael Stenta 708f05ca00 Add fields for defining the planting's season and crop(s), and remember the last-entered season. 2018-12-18 14:31:36 -05:00