diff options
author | Adam Young <ayoung@redhat.com> | 2010-10-27 13:41:48 -0400 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2010-10-28 03:06:28 -0400 |
commit | 97bcbdec2f9b2c2b88208ad969fb378a29fe9378 (patch) | |
tree | ba361531a45de7d0d37523748e483eb0d311bd68 /install/static/test | |
parent | 43212caf5d22a6965be0cdced521288dd6df097c (diff) | |
download | freeipa.git-97bcbdec2f9b2c2b88208ad969fb378a29fe9378.tar.gz freeipa.git-97bcbdec2f9b2c2b88208ad969fb378a29fe9378.tar.xz freeipa.git-97bcbdec2f9b2c2b88208ad969fb378a29fe9378.zip |
Field Errors Uses the pattern field of the metat data to see if the input for a given field is valid. If not, displays a red box with the contents of pattern_msg
To test this, I artificially modified the meta data for the Group description field
Diffstat (limited to 'install/static/test')
-rw-r--r-- | install/static/test/data/json_metadata.json | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/install/static/test/data/json_metadata.json b/install/static/test/data/json_metadata.json index 8571ddf6..a005d1d5 100644 --- a/install/static/test/data/json_metadata.json +++ b/install/static/test/data/json_metadata.json @@ -1098,8 +1098,8 @@ "minlength": null, "multivalue": false, "name": "description", - "pattern": null, - "pattern_errmsg": null, + "pattern": "^[a-zA-Z-2-9_. ]{0,30}[a-zA-Z0-9_.$-]?$", + "pattern_errmsg": "may only include letters, numbers, _, -, . and $", "primary_key": false, "query": false, "required": true, @@ -4474,4 +4474,4 @@ } } } -}
\ No newline at end of file +} |