New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added weight quick form #507
base: 2.x
Are you sure you want to change the base?
Conversation
Added the quick form module for weighing animals
Nice thanks for starting this @Skipper-is !
One thought I have: maybe we should present the user with some hard-coded options, based on their system of measurement. For example, if they use metric, show a dropdown with "kg" and "g", and if they use "us/imperial" then show "lbs" and "oz". We should coordinate this decision with @paul121 and how the Animal Weight Report module is going to work: https://drupal.org/project/farm_animal_weight - to make sure that logs created with this quick form work with that. Other things we'll need to do before we can merge this:
I'll try to look at this closer in the near future to see if there's any other feedback... happy to help push this forward - when I have time. :-) |
Tidied whitespace issues up
Code sniffer didn't pick these up last time...
Removed unused use statements
Fixed order
Hidden whitespace
To whomever it may concern: in my |
First run of tests
Have attempted to mirror the testing of the quick-birth form, with additional |
Whitespace removal...
That's awesome @Skipper-is - thanks! I'll add this to my list to review after the birth form. |
Sorry for the long silence on this! I developed a plan in my head but never commented here to propose it. :-) I propose we implement this in the farmOS Animal Weight module here: https://www.drupal.org/project/farm_animal_weight During farmOS v2 development, we split all of the animal weight stuff out to this new contrib module, so it can serve as the shepherd of that convention. Makes perfect sense for it to provide a quick form too IMO! My plan was to transfer @Skipper-is's work over to that repo, but I never got around to it. Once we move it over, we can close this core PR. I didn't want to close it until then so I don't forget. How does that sound? |
Added the quick form module for weighing animals.
Need to still sort the setting of default units - Currently it includes the id of the unit taxonomy.
Also - uninstall hook - need to clean up the state after through _uninstall hook.