[Bps-public-commit] r19069 - in RT-FormTools: .
sartak at bestpractical.com
sartak at bestpractical.com
Mon Apr 6 22:29:04 EDT 2009
Author: sartak
Date: Mon Apr 6 22:29:03 2009
New Revision: 19069
Modified:
RT-FormTools/ (props changed)
RT-FormTools/html/FormTools/Field
Log:
r81770 at onn: sartak | 2009-04-06 22:28:56 -0400
Implement render_as => 'readonly'
Modified: RT-FormTools/html/FormTools/Field
==============================================================================
--- RT-FormTools/html/FormTools/Field (original)
+++ RT-FormTools/html/FormTools/Field Mon Apr 6 22:29:03 2009
@@ -68,6 +68,10 @@
<input type="hidden" name=<%$name%> value="<%$default%>">
+% } elsif ($render_as eq 'readonly') {
+
+<% $default %>
+
% } else {
<input type="text" name=<%$name%> size="20" value="<%$default%>">
@@ -141,6 +145,9 @@
% } elsif ($render_as =~ /^date/i) {
<& /Elements/SelectDate, Name => $NamePrefix.$cf->Id."-Values", current => 0,
($default ? (Default => $default) : ()) &>
+
+% } elsif ($render_as eq 'readonly') {
+ <% $default %>
% } else {
% die "'$render_as' isn't a valid rendering option for field '$name'";
%}
More information about the Bps-public-commit
mailing list