Ferreteria/modules/forms

From Woozle Writes Code
Jump to navigation Jump to search

Related

Requirements

The forms component needs to be able to do the following:

  • represent all the different types of input control that can be rendered in a browser, especially without using JS
  • translate values between the following formats:
    • display: text for rendering in browser (in both editable and read-only formats)
    • storage: format suitable for databases (typically, escaped for SQL)
    • native: internal, for performing calculations and comparisons
  • display a collection of controls and static elements (in both editable and read-only formats)
  • receive user-entered data from displayed form
  • display a database record as a form
  • display multiple database records as a continuous form