While talking with Ronen today I realized that we need be more specific on what exactly a template study is. I see them being used for more than just international studies in the future, and want the design to be broad enough to handle other use cases without any extra work. Here is what I am proposing:
A template study will still appear in the user's study list
Clicking on a template study will have a similar layout to normal studies, with a sidebar with a list of templates to edit, that when clicked on will load a template editing view in the main panel.
A template study should have all of the same functionality as a regular study, except for deploys
3a. It can be given tags
3b. It can be shared
3c. It can be duplicated
3d. It can be renamed
3e. It can be deleted
There will be an action to compile template studies. This will create new study folders with a prefix of the template study's name, so template study "canada.demo" would create "canada.demo.weight", but if it was renamed to "canada.french.demo" then it would create "canada.french.demo.weight".
Studies compiled from template studies will be read only, but can be duplicated and then the duplicate edited.
There will be a way to create entirely new template studies. For now just a way for admins to create an initial empty template study would be enough, and then I can add the contents to the DB.
While talking with Ronen today I realized that we need be more specific on what exactly a template study is. I see them being used for more than just international studies in the future, and want the design to be broad enough to handle other use cases without any extra work. Here is what I am proposing: