Open AnthonMS opened 5 years ago
2 Hours I have made changes so when the user clicks on the delete button on a borger, a pop-up window will show up and ask if he is sure about deleting borger.
I have made an MySQL change as well, the borger table has a column 'active' which is a tinyint(1), so true/false. If the user deletes borger, he just makes the active column false. And the list only shows active borgere. This way, the user can go under a settings page we have not made yet and see a list of inactive borgere, make them active again or delete them completely.
I made it this way, because we use the borgerId as foreign key in time registrations, so we need to either delete them or change id where it is needed to delete borger.
1 Hour I have made it possible to add borgere by entering a name in the search field and then pressing the add button next to the input field. You can also "delete" borgere by clicking delete.
30 Min. Changed some styling so the buttons in the borger list drop down menu looks better.
Time estimate: 4 Hours We want the user to be able to add new borgere to the dropdown list. We also want the user to be able to delete them.