Added 'comment <attribute>'

SVN revision: 634
This commit is contained in:
Stefan Ritt 2003-12-03 14:36:06 +00:00
parent 9ee0cc8bff
commit 6f2b9e78fc
2 changed files with 17 additions and 1 deletions

View File

@ -660,6 +660,12 @@ New icons are welcome and should be sent back to the author to be incorporated
in the next version.
<p>
<LI><b><code>Comment &lt;attribute&gt; = &lt;comment&gt;</code></b>
<br>
Optional comment which is displayed below the attribute name in the entry form.
Can be used to explain the attribute somehow.
<p>
<LI><b><code>Icon comment &lt;icon&gt; = &lt;comment&gt;</code></b>
<br>
Icons may contain a comment, which is then used in email notifications instead

View File

@ -6,6 +6,9 @@
Contents: Web server program for Electronic Logbook ELOG
$Log$
Revision 1.163 2003/12/03 14:36:01 midas
Added 'comment <attribute>'
Revision 1.162 2003/12/03 12:49:14 midas
Changed email notification format
@ -5524,7 +5527,14 @@ char fl[8][NAME_LENGTH];
}
/* display text box */
rsprintf("<tr><td nowrap class=\"attribname\">%s%s:</td>", attr_list[index], star);
rsprintf("<tr><td nowrap class=\"attribname\">%s%s:", attr_list[index], star);
/* show optional comment */
sprintf(str, "Comment %s", attr_list[index]);
if (getcfg(lbs->name, str, comment))
rsprintf("<br><span class=\"selcomment\"><b>%s</b></span>\n", comment);
rsprintf("</td>\n");
/* if attribute cannot be changed, just display text */
if ((attr_flags[index] & AF_LOCKED) ||