diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-04-04 16:23:32 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-04-04 16:23:32 +0100 |
commit | 425c141369ef27ae7a9b4afd657da0b7f563f163 (patch) | |
tree | ac6fe3a24b0989c20e88ef127b05cffa4fc93966 | |
parent | 938c08a108e7b26ede1494a8d27cc37af9d0be48 (diff) | |
download | prosody-425c141369ef27ae7a9b4afd657da0b7f563f163.tar.gz prosody-425c141369ef27ae7a9b4afd657da0b7f563f163.zip |
util.dataforms: Add support for <required/> fields
-rw-r--r-- | util/dataforms.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/util/dataforms.lua b/util/dataforms.lua index 73a78f08..92d4f619 100644 --- a/util/dataforms.lua +++ b/util/dataforms.lua @@ -57,6 +57,10 @@ function form_t.form(layout, data) end end + if field.required then + form:tag("required"):up(); + end + -- Jump back up to list of fields form:up(); end |