I'm trying to figure out what is the best way to add data for a simple backend for a car insurance agency.
I have three tables:
insurance. Clients can have multiple cars. Each car can have one owner and multiple insurances, but only one active insurance.
The app will only be used to add an insurance to the agency's local database after the insurance has been made. That's why I was thinking of adding a main "Add" button on each page that can add everything:
- new client / existing client
- new car to new client
- new car / existing car to existing client
- new insurance to new client / existing client
Like in the image below.
Click image to enlarge
But then what if the insurance agent is navigating to a client's page and wants to just add an insurance. Should I have another form that can only add a car and an insurance to the existing client? Won't two 'add' buttons be confusing? Should I then add an "Add New Client" button on the clients list page as well? Should I separate POST actions for those page specific buttons? Like only be able to add clients on the
/clients/ list page and only be able to add cars and insurance on
Or should I just keep the main Add button that can add everything and no other POST forms?
Sorry for the long post, but I'm not really good when there are so many ways to go. :)