Changeset

952:ef648f49e734

util.dataforms: Add support for <required/> fields
author Matthew Wild <mwild1@gmail.com>
date Sat, 04 Apr 2009 16:23:32 +0100
parents 951:4b9207949735
children 953:bed748f5dbb1
files util/dataforms.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/util/dataforms.lua	Sat Apr 04 15:32:32 2009 +0100
+++ b/util/dataforms.lua	Sat Apr 04 16:23:32 2009 +0100
@@ -57,6 +57,10 @@
 			end
 		end
 		
+		if field.required then
+			form:tag("required"):up();
+		end
+		
 		-- Jump back up to list of fields
 		form:up();
 	end