-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create the views for a survey #5
Comments
I've just pushed a rough idea for the survey views. Not having the router in place or a store to retrieve that data, I just hacked some mock data into the app view for now. The basic structure of the survey is: <App>
<SurveyPage>
<SurveyView />
<SurveyItemView>
<div>
<label>...</label>
<input ... />
</div>
</SurveyItemView>
<SurveyItemView>
<div>
<label>...</label>
<select ... />
</div>
</SurveyItemView>
<!-- more SurveyItemViews as needed -->
<button>Submit</button>
<SurveyView />
</SurveyPage>
</App>
Thoughts? I know it's rough, but I wanted to get the ball rolling... |
Trying to brainstorm all the possible survey questions we want to support. If you have any you want to add, or feel any of these are unnecessary, please leave a comment :) Question Types
|
Multiple choice - |
I think we can get away with just a few different types, its only an example app after all :) The ones you list sound good to me, maybe merging short and long text answers |
That's good. Maybe we only have one text answer that uses @brigand's Restricted Textbox. |
Maybe, just to keep it simple, we go with 3:
If we have time we can add more. |
+1 for those |
good plan @somethingkindawierd +1 |
Was thinking last night (yes it did hurt). The Yes/No could be a wrapper around the multiple choice module. As yes/no is multiple choice with two options only. And potentially different css. |
Yeah, I realized that too. I'm going to wrap up the survey views today and was thinking of making the change you suggested. |
Here's a rough idea of what we'll probably need:
SurveyView
: A controller-view for the collection of survey itemsSurveyItemView
: A wrapper, mediating between the parent survey and the form fields within.Item views grouping the various form fields and labels, each making a type of survey input. This could be as simple as the following, configurable via the data model we pass in:
The text was updated successfully, but these errors were encountered: