diff --git a/doc/config.html b/doc/config.html index 9c19a362..b4352e91 100755 --- a/doc/config.html +++ b/doc/config.html @@ -1132,11 +1132,15 @@ XYZ-2005-Nov-002 "red">* on the entry form.
Hidden Attributes = <list>Change <attribute>
- command.
+ Show Attributes = <list>Change <attribute> command.
+ Show Attributes Edit = <list>Show Attributes, but for the entry form.
Page title = <string>
- Show Attributes = <list>
+ Show Attributes Edit = <list>
When using conditional attributes, it might be necessary to omit certain
attributes under certain conditions, to make the input mask shorter and
maybe change the order of the attributes. With this option, a subset of
- all attributes can be specified which get displayed on the new entry
- input page in the same order as they are specified here. This option only
+ all attributes can be specified which get displayed on the single entry
+ page in the same order as they are specified here. This option mainly
makes sense when used with conditions, such as:
Attributes = PC Name, Operating System, Version, Distribution
Options Operating System = Linux{1}, Windows{2}
-{1} Show Attributes = Operating System, Distribution, PC Name
-{2} Show Attributes = Operating System, PC Name, Version
+{1} Show Attributes Edit = Operating System, Distribution, PC Name
+{2} Show Attributes Edit = Operating System, PC Name, Version
- The above statements caus the atrribute Version to be
+ The above statements cause the atrribute Version to be
only visible when "Windows" is selected, and
Distribution to be only visible when "Linux" is
selected. If "Windows" is selected, the PC name is shown before the
diff --git a/src/elogd.c b/src/elogd.c
index 328eeaf4..e5b9e1b0 100755
--- a/src/elogd.c
+++ b/src/elogd.c
@@ -258,7 +258,6 @@ char author_list[MAX_N_LIST][NAME_LENGTH] = {
#define AF_MUSERLIST (1<<13)
#define AF_USEREMAIL (1<<14)
#define AF_MUSEREMAIL (1<<15)
-#define AF_HIDDEN (1<<16)
/* attribute format flags */
#define AFF_SAME_LINE 1
@@ -6817,15 +6816,6 @@ and attr_flags arrays */
attr_flags[j] |= AF_FIXED_REPLY;
}
- /* check if hidden attribute */
- getcfg(logbook, "Hidden Attributes", list, sizeof(list));
- m = strbreak(list, tmp_list, MAX_N_ATTR, ",");
- for (i = 0; i < m; i++) {
- for (j = 0; j < n; j++)
- if (strieq(attr_list[j], tmp_list[i]))
- attr_flags[j] |= AF_HIDDEN;
- }
-
/* check for extendable options */
getcfg(logbook, "Extendable Options", list, sizeof(list));
m = strbreak(list, tmp_list, MAX_N_ATTR, ",");
@@ -9321,7 +9311,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
subtable = 0;
/* generate list of attributes to show */
- if (getcfg(lbs->name, "Show attributes", str, sizeof(str))) {
+ if (getcfg(lbs->name, "Show attributes edit", str, sizeof(str))) {
n_disp_attr = strbreak(str, list, MAX_N_ATTR, ",");
for (i = 0; i < n_disp_attr; i++) {
for (j = 0; j < n_attr; j++)
@@ -9343,10 +9333,6 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
index = attr_index[aindex];
- /* if attribute is hidden, skip it */
- if (attr_flags[index] & AF_HIDDEN)
- continue;
-
strcpy(class_name, "attribname");
strcpy(class_value, "attribvalue");
input_size = 80;