Add search box in header.

Change account status to use select list and 'active'/'inactive' values.
Improve autosuggest to keep suggesting unless you overwrite a suggestion
(if you correct the name, it will re-suggest).
This commit is contained in:
Kevin McCarthy
2007-09-06 11:09:12 -07:00
parent 268dd829df
commit 2adeed3029
7 changed files with 72 additions and 19 deletions

View File

@@ -10,7 +10,10 @@ class UserFields():
sn = widgets.TextField(name="sn", label="Last name")
mail = widgets.TextField(name="mail", label="E-mail address")
telephonenumber = widgets.TextField(name="telephonenumber", label="Phone")
nsAccountLock = widgets.CheckBox(name="nsAccountLock", label="Account Deactivated")
# nsAccountLock = widgets.CheckBox(name="nsAccountLock", label="Account Deactivated")
nsAccountLock = widgets.SingleSelectField(name="nsAccountLock",
label="Account Status",
options = [("", "active"), ("true", "inactive")])
uid.validator = validators.PlainText(not_empty=True)
userpassword.validator = validators.String(not_empty=True)