I have a modal window with forms/select inside and when i click on some select inputs, some forms appears, some disappears. Everything works fine, but the only problem for me is the 'cancel' button.
Indeed, i would love to rollback changes made on the models. i am fully aware of the rollback method, but the forms manipulations involve more than properties modifications, it also involves deletion of models.
Therefore, the global idea would be to make a copy of my model everytime i am entering the modal window. Then, once the user 'commit' theses changes, i merge the data to my existing models.
Do you know a more elegant solution ?
Thanks you very much !