Combobox form component in CSS
Posted: Wed Jan 30, 2013 12:26 pm
Hi, i have a question about a form component that i have configured in my css to render/edit an attribute indicating the document classification.
My attribute is an integer and i would like to show a combobox to allow the user to select the classification in a label list.
For exemple, here is the mapping :
01 : NOT PROTECTED
02 : RESTRICTED
03 : CONFIDENTIAL DEFENSE
04 : SECRET DEFENSE/RESTRICTED
Here is my config :
I have to duplicate the css element for each value because the combobox does not display the labels, only the values.
Is there any bug or config problem? it seems the labels values are not used.
My attribute is an integer and i would like to show a combobox to allow the user to select the classification in a label list.
For exemple, here is the mapping :
01 : NOT PROTECTED
02 : RESTRICTED
03 : CONFIDENTIAL DEFENSE
04 : SECRET DEFENSE/RESTRICTED
Here is my config :
Code: Select all
security[securityClassification="01"] {
content: "Security level : "
oxy_editor(
type, combo,
edit, "@securityClassification",
editable, true,
values, "01, 02, 03, 04",
labels, "NOT PROTECTED, RESTRICTED, CONFIDENTIAL DEFENSE, SECRET DEFENSE/RESTRICTED")
" NOT PROTECTED";
}
security[securityClassification="02"] {
content: "Security level : "
oxy_editor(
type, combo,
edit, "@securityClassification",
editable, true,
values, "01, 02, 03, 04",
labels, "NOT PROTECTED, RESTRICTED, CONFIDENTIAL DEFENSE, SECRET DEFENSE/RESTRICTED")
" RESTRICTED";
}
security[securityClassification="03"] {
content: "Security level : "
oxy_editor(
type, combo,
edit, "@securityClassification",
editable, true,
values, "01, 02, 03, 04",
labels, "NOT PROTECTED, RESTRICTED, CONFIDENTIAL DEFENSE, SECRET DEFENSE/RESTRICTED")
" CONFIDENTIAL DEFENSE";
}
security[securityClassification="04"] {
content: "Security level : "
oxy_editor(
type, combo,
edit, "@securityClassification",
editable, true,
values, "01, 02, 03, 04",
labels, "NOT PROTECTED, RESTRICTED, CONFIDENTIAL DEFENSE, SECRET DEFENSE/RESTRICTED")
" SECRET DEFENSE/RESTRICTED";
}
Is there any bug or config problem? it seems the labels values are not used.