Commit Graph

811 Commits

Author SHA1 Message Date
Michael Stenta 50e12487f9 Move taxonomy_terms_per_page_admin variable to hook_install()+hook_update_N(). 2019-01-14 09:54:51 -05:00
Michael Stenta dbd395ef66 Issue #3025774: Can't rearrange area hierarchy across multiple pages 2019-01-14 09:31:22 -05:00
Michael Stenta ad7386e18e Clarify how location is chosen in comment and description. 2019-01-08 15:12:48 -05:00
Michael Stenta 8201836df3 Move implode()s closer together so it's easier to see how the planting name is assembled. 2019-01-08 15:12:04 -05:00
Michael Stenta a71764d840 Coding standards: whitespace. 2019-01-08 15:10:56 -05:00
Paul Weidner 4102776dff Add location to comment 2019-01-08 11:12:03 -08:00
Paul Weidner 39a84a4db8 Add description to the planting asset name field 2019-01-08 11:09:22 -08:00
Paul Weidner 5846276626 Autofill location in the asset name 2019-01-08 11:09:04 -08:00
Michael Stenta 33937bc2f7 Comments: add punctuation, minor rewording. 2019-01-08 13:33:30 -05:00
Michael Stenta f6f3c73ade Move $form_values alias to the top and replace other usages. 2019-01-08 13:30:13 -05:00
Paul Weidner f33dc32ca1 Use the default season that is already stored 2019-01-08 10:00:59 -08:00
Paul Weidner b041422c0a Fix bug, the input changes were not included with the submitted form. Set the default value, not value. 2019-01-08 09:57:50 -08:00
Paul Weidner 9e4b966b88 Update the planting asset name to be submitted 2019-01-08 09:55:03 -08:00
Paul Weidner 4b85217004 Add callback to the Season and Crop fields to update the Planting Name. 2019-01-08 09:26:46 -08:00
Paul Weidner f29a527542 Add planting asset name text field 2019-01-07 20:51:30 -08:00
Michael Stenta 3b626aecf5 Use db_query() instead of drupal_write_record() because the table may not be recognized by Drupal yet. 2019-01-07 11:45:57 -05:00
Michael Stenta a1713b6cf0 Insert NRCS STIR operations into database when installing new sites. 2019-01-07 11:43:16 -05:00
Michael Stenta f763ac9133 Move code for inserting NRCS STIR operations to a helper function. 2019-01-07 11:41:51 -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 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