Change: Forms

created on Sept. 25, 2012, 9:35 p.m. by Hevok & updated on Oct. 23, 2012, 7:48 p.m. by Hevok

To customize the form representation use the template language.

  • {{ field }} instance of BoundField which has the following attributes:
  • {{ field.label }} Labelled name.
  • {{ field.label_tag }} Field's label wrapped in the appropriate HTML tag
  • {{ field.html_name }} Name of field that will be used in input's element's name field.
  • {{ field.help_text }} Any associated help text associated.
  • {{ field.errors }} Outputs a containing any validation errors corresponding to this field.

Categories: Tutorial
Parent: Web Framework

Comment: Made a list and corrected typos.

See entry | Admin

Comment on This Data Unit