I implemented your request. The syntax is:
Format <attribute> = <flags>,<css_class_name>,<css_class_value>,<width>,<size>
<flags>
Sum of following values:
1: Display attribute in same line as previous attribute
2: Display radio buttons or check boxes in separate lines (if applicable)
<css_class_name>,<css_class_value>
Cascading Style Sheet class names used for cells containing attribute name
or value, respectively. The classes must be defined in the style sheet file
(usually themes/default/default.css)
<width>>
Width of the text entry field in characters
<size>
Maximum number of characters allowed.
Default is "0, attribname, attribvalue, 80, 500". Trailing parameters can be
ommitted, so specifying for example only the flags is possible.
In order to have several attributes in one line, each line is now a separate
table. This requires adjustment of the CSS class "attribname". Best you use
the current default stylesheet (http://midas.psi.ch/elogdemo/default.css).
You can compare the two different approaches (one attribute per line/multiple
attributes per line) in this forum and the "archive" logbook. The "subject"
field in this forum also uses a different style class.
Note that if you upgrade to the current CVS version
(http://midas.psi.ch/cgi-bin/cvsweb/elog/src/elogd.c?rev=1.129), you also
have to change following options in your elogd.cfg:
- The style sheet must contain the new class "attribhead"
- "Email message body" has been replaces by "Email format"
- "Filtered browsing" is now off by default
- Locking (during editing of messages) is disabled by default, and enabled
by "Use lock = 1" |