forked from openwebwork/webwork2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunified-prof-page-form-notes
32 lines (31 loc) · 1.04 KB
/
unified-prof-page-form-notes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
field_name => {
type => /number|text|date|password|enumerable/,
size => /\d*/,
specificity => /global|user/,
access => /readonly|writeonly|readwrite/,
items => { # Only for enumerable
value => "label",
value => "label",
}
synonyms => {
qr/pattern/ => "value",
qr/pattern/ => "value",
"*" => "value",
}
}
}
type number, text, longtext, date
label
value
specificity global user
Indicates whether it is a global setting that is overridden for a user,
or a user-only setting that is only overwritten for multiUser editing.
synonyms
Regex-s indicating other values that could mean the same thing as the
keys in the "items" hash. This is for backwards compatibility with the
days when even multi-choice fields were given freeform frontends.
the special value "*" (an illegal regular expression) points to a value
that should be substituted for unrecognized values. The order that the
values are checked against the regular expressions is unspecified, and
probably won't be the order they are given in the source code.