Using Backbone and jQuery take item.json
and render a form similar to the form illustrated in image.jpg.
Certain fields ("materials" dropdown, radio button groups) require enumerations that can be found in the enums.json file.
-
item.json
must be loaded via AJAX (asynchronous of the page load; you'll want to have a development web server running).enums.json
isn't required to be loaded asynchronously, it may be "bootstrapped" on page load. -
The form must be built dynamically by combining the values in the item model with enumerations in the enums.json file. Other form elements (labels, etc) may be hard-coded into HTML and/or templates.
-
The user should be able to update and edit all form fields.
-
Pressing the Save button should dump an updated and/or edited item.json to the browser console to demonstrate that it could be persisted to the server.