diff --git a/doc/config.html b/doc/config.html index 5dff372f..18bcd38c 100755 --- a/doc/config.html +++ b/doc/config.html @@ -660,6 +660,12 @@ New icons are welcome and should be sent back to the author to be incorporated in the next version.

+

  • Comment <attribute> = <comment> +
    +Optional comment which is displayed below the attribute name in the entry form. +Can be used to explain the attribute somehow. +

    +

  • Icon comment <icon> = <comment>
    Icons may contain a comment, which is then used in email notifications instead diff --git a/src/elogd.c b/src/elogd.c index 25475c03..bbd9a9e6 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -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 ' + 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("%s%s:", attr_list[index], star); + rsprintf("%s%s:", attr_list[index], star); + + /* show optional comment */ + sprintf(str, "Comment %s", attr_list[index]); + if (getcfg(lbs->name, str, comment)) + rsprintf("
    %s\n", comment); + + rsprintf("\n"); /* if attribute cannot be changed, just display text */ if ((attr_flags[index] & AF_LOCKED) ||