raygdev / repair-order-tracker

A repair order tracker for automotive technicians
https://repair-order-tracker.vercel.app
3 stars 1 forks source link

Reduce the code in the form for edit repair #52

Open raygdev opened 8 hours ago

raygdev commented 8 hours ago

Try to figure out a way to reduce the code in the edit repair form. Most of the inputs use the same classes. Maybe find a way to provide an array with labels, input name, id, and dynamically look up the input errors based on the name/id. Since they are simple inputs, maybe wrap the input with the label and provide classes to it instead of a div.