Commit Graph

288 Commits

Author SHA1 Message Date
taradiddles 2b64bc8e7c Add optional group membership selection to quick birth form #424 2021-05-19 08:08:12 -04:00
Michael Stenta f93d4bef58 Use l() to create "Hierachy (change)" link in Species/breeds View. See #404 2021-01-27 08:14:00 -05:00
Michael Stenta bd429d45dd Whitespace, coding standards/conventions, etc. 2020-11-26 06:23:54 -05:00
Michael Stenta 5a0833aca7 Do not include markup or whitespace in translatable strings. 2020-11-26 06:23:54 -05:00
Michael Stenta e007fecc61 If only a single log was returned, wrap it in an array. 2020-11-26 06:23:54 -05:00
Michael Stenta 6631de0530 Remove $single= parameter name from function call. 2020-11-26 06:23:54 -05:00
Michael Stenta 06735fc3ce Improve "Daily liveweight gain" translation. Separate markup from string. Close P tag. 2020-11-26 06:23:54 -05:00
Michael Stenta 00695591d8 Do not sanitize log paths generated by url(). 2020-11-26 06:23:54 -05:00
paul121 2b8bdb8bd0 Whitespace and comments. 2020-11-26 06:23:54 -05:00
paul121 649d3bd847 Format animal name with htmlspecialchars(entity_label()). 2020-11-26 06:23:54 -05:00
paul121 fa371df938 Include average text where originally intended. 2020-11-26 06:23:54 -05:00
paul121 c2169a9678 Initialize log_weights array before checking logs. 2020-11-26 06:23:54 -05:00
paul121 c1e38ab4c8 Return dlwg markup text with farm_livestock_weight_dlwg. 2020-11-26 06:23:54 -05:00
paul121 4015d6c4ee Return logs with farm_livestock_weight_all and farm_livestock_weight_dlwg. 2020-11-26 06:23:54 -05:00
Skipper 47cbbde867 Added daily liveweight gain
Added function to calculate daily liveweight gain, and to get all weight records.
Added translation
Added farm_livestock_weight_all() function
2020-11-26 06:23:54 -05:00
paul121 e19abae842 Add farm_livestock_asset_inventory function to help calculate animal inventories over time. 2020-11-22 12:35:03 -08:00
paul121 50494b16da Only save logs that have duplicate areas. 2020-11-11 07:53:58 -05:00
paul121 25ecd4faf1 Get the assets current location relative to the movement time. 2020-11-11 07:53:58 -05:00
paul121 241781b13a Fix existing post-grazing observation logs that have duplicate area references. 2020-11-11 07:53:58 -05:00
paul121 3a2c2f9043 Only reference unique areas in post-grazing observation logs. 2020-11-11 07:53:58 -05:00
Michael Stenta 87d9a97c84 Increase the character limit of Notes and Description fields in Views to 280. 2020-08-21 11:00:56 -04:00
Michael Stenta 8d6ece7fa4 Add explicit dependencies on modules that we are using functions from. 2020-07-30 14:57:01 -04:00
Michael Stenta 2f333eca67 Use htmlspecialchars(entity_label()) to format entity names. 2020-07-30 14:57:01 -04:00
paul121 a0c9a7ecbc Display message in place of table if no assets match filter criteria. 2020-07-30 14:57:01 -04:00
paul121 6b52f0f771 Add optional date of birth range filters. 2020-07-30 14:57:01 -04:00
paul121 4f5a380a8f Allow filtering assets by flag(s). 2020-07-30 14:57:01 -04:00
paul121 7b59f6d84f Allow more selective filtering of archived assets. 2020-07-30 14:57:01 -04:00
paul121 62a8c5f230 Display archive date with asset names. 2020-07-30 14:57:01 -04:00
Michael Stenta cc8105dfbe Declare log form element type as 'value' and use $form_state['values'] in submit. 2020-07-24 10:57:26 -04:00
Michael Stenta dad3d3560e Whitespace for coding standards. 2020-07-24 10:57:26 -04:00
paul121 48b292bfd4 Update default done value to match form state. 2020-07-24 10:57:26 -04:00
Michael Stenta f4ecb23098 Add description to photo fields that explains how to attach multiple photos. 2020-07-24 10:57:26 -04:00
Michael Stenta 61d16ab2c9 Translate "Planned for" text. 2020-07-24 10:57:26 -04:00
Michael Stenta 6dcccac4f2 Use entity_label() and check_plain() with entity labels. 2020-07-24 10:57:26 -04:00
Michael Stenta 08921b9af6 Filter to pending activity logs in the query itself. 2020-07-24 10:57:26 -04:00
Paul Weidner 9996e83c13 Add hours and minutes to movement date field. 2020-07-24 10:57:26 -04:00
Paul Weidner 1d5df1ddc5 Save assets previous location geometry in post grazing logs. 2020-07-24 10:57:26 -04:00
Paul Weidner 2a6033cb65 Display assets current location geometry on map. 2020-07-24 10:57:26 -04:00
Paul Weidner 21818a6004 Create movement logs for multiple assets. 2020-07-24 10:57:26 -04:00
Paul Weidner b4f457cf15 Save custom geometry to pre-grazing logs. 2020-07-24 10:57:26 -04:00
Paul Weidner 96a9dd8231 Uncollapse the geometry fieldset default geometry is provided. 2020-07-24 10:57:26 -04:00
Paul Weidner 4d5041367e Update map layers when selecting a planned movement log. 2020-07-24 10:57:26 -04:00
Paul Weidner 71882433af Add helper functions to build ajax commands. 2020-07-24 10:57:26 -04:00
Paul Weidner 34b413f6d2 Edit planned movement logs. 2020-07-24 10:57:26 -04:00
Paul Weidner 425a7534da Only create observation logs if movement is marked as completed. 2020-07-24 10:57:26 -04:00
Paul Weidner 210268a74e Add checkbox to set the movement log status. 2020-07-24 10:57:26 -04:00
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 34f569a8fb Fix birth quick form permissions. 2020-07-15 19:55:03 -04:00
Michael Stenta 3ef56dde35 Add description to animal weight action form. 2020-07-14 08:28:13 -04:00