Extracting the Project Submission Copy into the Admin Console.
Rutvikrj26 opened this issue · comments
Background :
For each project submission, there are multiple stages, starting from Author, Content, Discovery, Access, etc. in the process. Each stage currently provides a static copy at the top providing some guidance as to what needs to be entered in the project submission. Each Deployment of Physionet can have different guidance depending on the site configuration and the government policies. The idea behind making the copy configurable is to give the admin the ability to keep the guidance up to date based on the current policies of the institute and the government.
Project Implementation Proposed :
- Additional Model in the project models that stores the submission stage copies
- each attribute corresponds to one stage, and the value stored in the attribute is the copy
- the value from the attribute is sourced and injected when rendering the template for the stage (Similar to the way news I implemented)
- A basic News-type UI implemented in the Admin Console that lets an Admin modify the copy in a WYSIWYG editor.
@tompollard @kshalot @bemoody Please provide your thoughts on the proposed implementation and if there is a better way to implement the feature.
@Rutvikrj26 seems okay to me. Perhaps it could live in the "Pages" section of the site, under a "project submission" section?
When implementing this, it would be helpful if you could consider how it could be generalized beyond just the project submission pages (e.g. in future we might want something similar for user settings?).