Difference between revisions of "Form templates"
Jump to navigation
Jump to search
old>Admin |
old>Admin |
||
Line 16: | Line 16: | ||
== Relation til styling == | == Relation til styling == | ||
{| | |||
!type | |||
!class | |||
!id | |||
!content | |||
!template | |||
|- | |||
|tbody | |||
|PAGE_[field PageID] | |||
| | |||
|Container for a single field | |||
|{default_start} / {default_end} | |||
|- | |||
|div | |||
|FieldLabel | |||
|NB_[system fieldname] | |||
|Label for field | |||
|{default_name} | |||
|- | |||
|div | |||
|FieldValue | |||
|VB_[system fieldname] | |||
|Value of field / Input for field | |||
|{default_value} | |||
|- | |||
|div | |||
|FieldNotes | |||
|HB_[system fieldname] | |||
|Optional help text for the field | |||
|{default_help} | |||
|- | |||
|} |
Revision as of 12:56, 6 March 2013
Structure
The structure of the tags in the HTML template are
- {tablename}
- {pageselector}
- {default_start}
- {default_name}
- {default_value}
- {default_help}
- {default_end}
You may also add additional tags for special fields:
- "{" + [field systemname] + "_name}"
- "{" + [field systemname] + "_value}"
- "{" + [field systemname] + "_help}"
Relation til styling
type | class | id | content | template |
---|---|---|---|---|
tbody | PAGE_[field PageID] | Container for a single field | {default_start} / {default_end} | |
div | FieldLabel | NB_[system fieldname] | Label for field | {default_name} |
div | FieldValue | VB_[system fieldname] | Value of field / Input for field | {default_value} |
div | FieldNotes | HB_[system fieldname] | Optional help text for the field | {default_help} |