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

Chore/349 autofill dependent fuel fields #2214

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

dleard
Copy link
Contributor

@dleard dleard commented Sep 17, 2024

On fuel selection, the classification & unit fields are filled automatically from data in the fuel_type database table.

  • A fuelType object has been added to all schemas that contain fuels (object contains: fuelName, classification, units)
  • A custom rjsf field for the fuelType object has been added to handle all these fields as one
  • The form_builder has been updated to handle the change in the schema structure

To test this:
Go to any activity page that has fuels in the schema & add a fuel from the dropdown. After selection, the classification & unit fields should be automatically updated. They should also be read-only.

@dleard dleard force-pushed the chore/349-autofill-dependent-fuel-fields branch from 2c58074 to c598149 Compare September 17, 2024 22:59
@dleard dleard force-pushed the chore/349-autofill-dependent-fuel-fields branch from a85fbb0 to 020b3a4 Compare September 18, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant