julioterra/Arduino_Gateway — Issue #20: Controller to create webform to test all post enabled resource services
Author: julioterra
Created: 2012-02-13 04:46:55+00:00
State: open

Enable the ArduinoGateway to generate a webform that features a field for each post enabled resource service:
1. Form should be served up whenever a user requests the "test_form" resource
2. Update controller to identify when requests are made for "test_form"
3. Query the ResourceInstance data table to get a list of all post enabled resources
4. Create a variable to hold the body of the page with the form, add the page header elements
5. Loop through all items that are post enabled and create a form element for each one
6. Add the appropriate end of page content after the form elements
7. Reply back to the request with content that was generated in steps 4 to 6

Considerations: to keep the code clean consider adding the pre-defined elements of this webpage (header, body elements including top of form, bottom of form) in a separate document.