Apps and development tools - Basic App Kit

AppKit Modules

<tml:include ref="form-fields@base">

Since version 2.1.0

Description :

Generates a set of <tml:form-fields> based on option "body".

Options:

body:

Option("body") defines the set of fields one field per line.

Each line hat the form

label[, name[, type [default][, options]]]

If only a label is specified, the fields name is equal to the label.

If no type is specified the field is of type "text".

If the label begins with *, the field is required and a corresponding validation is generated.

If the label or name is all uppercase, the input is treated as a meta field.

If the label equals to - a <hr> is generated.

Examples:

<tml:[form-fields@base]>

   TITLE

   Firstname

   Lastname

   -

   Age, age, number 18

</tml:[form-fields@base]>