pmeng / therapy-scheme-generator

1 stars 2 forks source link

Add possibility to duplicate a therapy stub #101

Open pmeng opened 1 month ago

pmeng commented 1 month ago

In the therapy stubs list I want a button called "Duplicate". image In the edit therapy stub view I want a button called "Duplicate" and another button called "Save and Duplicate" image

This button shall create a new therapy stub and copy the contents of the original therapy stub into the fields of the new therapy stub. It should be shown in the edit therapy stub view so the user can adapt the content and save it then.

When selecting "Save and Duplicate" it shall save the therapy stub and then use it as a template for a new therapy stub (so executing the functions "Save" and "Duplicate" sequentially)

pmeng commented 2 weeks ago

Another Request in the same direction: Make a button in the therapy schemes next to the therapy stub (can be a small symbol like ) that opens the therapy stub (either as edit mode of the therapy stub or alreeady duplicated depending on the clicked symbol) in a new windows/tab

image

Icon example for duplicate: image Icon example for edit: image

Mahmoudnaoum commented 2 weeks ago

Sure, I will work on adding this too