Skip to content
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

Auto-check "done" checkboxes in Planting quick form based on date #333

Open
mstenta opened this issue Jul 30, 2020 · 0 comments
Open

Auto-check "done" checkboxes in Planting quick form based on date #333

mstenta opened this issue Jul 30, 2020 · 0 comments

Comments

@mstenta
Copy link
Member

mstenta commented Jul 30, 2020

The Planting quick form allows you to create seeding, transplanting, and harvest logs, and they can be post-dated (to record things that already happened). However, the "done" checkbox is not automatically checked, so if you record a past seeding, then the planting will not show the "current location" from it because the log is not "done".

In other places in farmOS we have a bit of JS that auto-checks the "done" box when the date is in the past. Let's do the same thing here.

KrithikVallem added a commit to KrithikVallem/farmOS that referenced this issue Apr 27, 2021
…ate" farmOS#333

Added an if statement to check if the time provided by the user is in the past, and marking the checkbox as 'done' if so.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant