3 preload.tmpl - preloaded template macros
11 BSE provides F<preload.tmpl> as sample macros for use in templates.
13 =head2 High-level form field display
15 These require two parameters or preset variables:
21 C<fields> - a hash of fields
25 C<errors> - a hash or error messages for the fields
29 C<object> - an object containing the current values for an object, or
38 C<field> - lay out a form field, including label, input field, units,
43 C<fieldset> - like C<field> but lay out the field inside a field set.
47 C<fieldro> - like C<field>, lay out a form field, but read only. Does
48 not include an error indicator.
52 C<fieldsetro> - like C<fieldset>, but read only.
56 =head2 Low-level form-field display
58 These are used by the high level field macros, do not require
59 C<fields> to be set, but accept C<name> and C<field> paramaters, where
60 C<field> is a value from C<fields>.
66 C<input> - display an input field
70 C<display> - display a value.
74 C<inlinefield> - like C<field> but accepts C<name> and C<field>
75 instead of C<name> and C<fields>.
79 C<inlinefieldro> - like C<fieldro> but accepts C<name> and C<field>
80 instead of C<name> and C<fields>.
84 C<make_select> - make a single select element. Used by C<input>.
88 C<make_multicheck> - make a multi-select checkbox set. Used by
93 C<old> - for older pages, render the cgi value given a field name in
94 C<field>, otherwise the supplied C<default>.
98 =head2 Other Utilities
104 C<page_list> - render a list of pages. Accepts a base url in C<base>
105 and a list of pages to render, as produced by bse.pages in C<pages>.
109 C<error_img_n> - render an error indicated for field C<field>, index
110 C<index>. The error message is taken from C<errors>.
114 C<error_img> - render an error indicator for field C<field>.
118 C<messages> - render any stored error messages.
122 C<mover> - render item move arrows. Requires C<loop>, C<parent>.