GoldSim / Website

Source code for the GoldSim.com website
https://www.goldsim.com/
3 stars 1 forks source link

Create Form structure in OnTopic #16

Closed JeremyCaney closed 4 years ago

JeremyCaney commented 4 years ago

Prepare the OnTopic data structure for the inclusion of forms by introducing the following features.

Explanation

The approach described below allows a /Forms root to be created which will be populated by FormPage topics. This will keep the forms in their current location, and allow them to be associated with their own Controller instance (the FormController). Each topic will map to an action on the FormController—e.g., a Trial topic will map to a Trial() action—thus allowing individualized composition of actions. Each FormPage should be configured with, at minimum, the Title, SubTitle, and Body of the form page so that GoldSim staff can edit them directly via OnTopic.

Content Type Descriptors

Topics

FormPage Configuration

Ideally, the FormPage content type would allow the following to be specified:

Note: If the above are completed, then we may be able to do away with having a unique action for each form on the FormsController. At minimum, we'd be able to centralize the logic for all of them into a child action.