[Bps-public-commit] r17608 - RT-FormTools/html/FormTools

clkao at bestpractical.com clkao at bestpractical.com
Wed Jan 7 04:01:52 EST 2009


Author: clkao
Date: Wed Jan  7 04:01:52 2009
New Revision: 17608

Modified:
   RT-FormTools/html/FormTools/Field

Log:
allow render_as hidden for core fields.

Modified: RT-FormTools/html/FormTools/Field
==============================================================================
--- RT-FormTools/html/FormTools/Field	(original)
+++ RT-FormTools/html/FormTools/Field	Wed Jan  7 04:01:52 2009
@@ -53,7 +53,9 @@
 
 % } else {
 
+% if ($render_as ne 'hidden') { # no label if hidden
 <table style="display: inline; "><tr><th valign="top"><label><%$field_label%></label></th><td style="display:block;">
+% }
 
 % if ($field_type eq 'core') {
 
@@ -62,6 +64,10 @@
 <input name="<%$name%>" type="file" />
 <input type="hidden" class="hidden" name="UpdateAttach" value="1" />
 
+% } elsif ($render_as eq 'hidden') {
+
+<input type="hidden" name=<%$name%> value="<%$default%>">
+
 % } else {
 
 <input type="text" name=<%$name%> size="20" value="<%$default%>">



More information about the Bps-public-commit mailing list