[Bps-public-commit] r19126 - in RT-FormTools: .
sartak at bestpractical.com
sartak at bestpractical.com
Fri Apr 10 12:16:43 EDT 2009
Author: sartak
Date: Fri Apr 10 12:16:43 2009
New Revision: 19126
Modified:
RT-FormTools/ (props changed)
RT-FormTools/html/FormTools/Field
Log:
r81907 at onn: sartak | 2009-04-09 06:25:25 -0400
Ability to specify number of rows on a field
Modified: RT-FormTools/html/FormTools/Field
==============================================================================
--- RT-FormTools/html/FormTools/Field (original)
+++ RT-FormTools/html/FormTools/Field Fri Apr 10 12:16:43 2009
@@ -5,6 +5,7 @@
$render_as => 'normal'
$default => undef
$cols => undef
+$rows => undef
$empty_allowed => 1
$show_validation => 0
</%args>
@@ -95,10 +96,10 @@
% if ($render_as eq 'normal') {
<& /Elements/EditCustomField, Object => $queue, CustomField => $cf, NamePrefix => $NamePrefix,
- ($cf->Type =~ /text/i) ? (Rows => 6, Cols => $cols ||60) : (),
- ($cf->Type =~ /freeform/i) ? (Rows => 6, Cols => $cols ||30) : (),
+ ($cf->Type =~ /text/i) ? (Cols => $cols ||60) : (),
+ ($cf->Type =~ /freeform/i) ? (Cols => $cols ||30) : (),
+ Rows => $rows || 6,
($default ? (Default => $default) : ())
-
&>
% if ($show_validation && $cf->FriendlyPattern) {
<% loc("Input must match [_1]", $cf->FriendlyPattern) %>
More information about the Bps-public-commit
mailing list