cmciosu / hemp-db

https://hempdb.vercel.app/
MIT License
1 stars 1 forks source link

Add EDIT functionality #71

Closed paullpp closed 4 months ago

paullpp commented 5 months ago

We haven't implemented edit functionality yet. We have all the buttons ready to go in the UI, we just need to set up the logic to allow edit. Best way to do this would probably to open a form when the user clicks edit, and pre-populate the form with all the existing data. That way if the user only wants to edit one or two fields in the Company table, they don't have to re-enter all 40 fields.

An alternative would be to show an empty field, and somehow only grab the filled out fields on form submission, and only run those to the DB.