[Rt-commit] rt branch, 4.0/toggle-off-cf-input-size, repushed
? sunnavy
sunnavy at bestpractical.com
Wed Feb 5 21:40:40 EST 2014
The branch 4.0/toggle-off-cf-input-size was deleted and repushed:
was ec3c5cc5d2bb6936e6dbf8c5b4c2364359ea69fd
now d73b3f520ae929435ebc5048f52b5a5c3fd79aee
1: ec3c5cc ! 1: d73b3f5 allow to toggle off cf's textarea and input sizes if $Cols/$Rows are set to undef
@@ -16,7 +16,14 @@
%# END BPS TAGGED BLOCK }}}
% if ( $Multiple ) {
-<textarea cols="<% $Cols %>" rows="<% $Rows %>" name="<% $name %>-Values" id="<% $name %>-Values" class="CF-<%$CustomField->id%>-Edit"><% $Default || '' %></textarea>
-+<textarea <% defined $Cols ? qq{cols="$Cols"} : '' %> <% defined $Rows ? qq{rows="$Rows"} : '' %> name="<% $name %>-Values" id="<% $name %>-Values" class="CF-<%$CustomField->id%>-Edit"><% $Default || '' %></textarea>
++<textarea \
++% if ( defined $Cols ) {
++cols="<% $Cols %>" \
++% }
++% if ( defined $Rows ) {
++rows="<% $Rows %>" \
++% }
++name="<% $name %>-Values" id="<% $name %>-Values" class="CF-<%$CustomField->id%>-Edit"><% $Default || '' %></textarea>
<script type="text/javascript">
var id = <% "$name-Values" |n,j%>;
@@ -29,10 +36,21 @@
% my $name = $NamePrefix . $CustomField->Id . '-Value';
% if ($Multiple) {
-<textarea cols="<%$Cols%>" rows="<%$Rows%>" name="<%$name%>s" id="<%$name%>s" wrap="off" class="CF-<%$CustomField->id%>-Edit"><% defined($Default) ? $Default : '' %></textarea>
-+<textarea <% defined $Cols ? qq{cols="$Cols"} : '' %> <% defined $Rows ? qq{rows="$Rows"} : '' %> name="<%$name%>s" id="<%$name%>s" wrap="off" class="CF-<%$CustomField->id%>-Edit"><% defined($Default) ? $Default : '' %></textarea>
++<textarea \
++% if ( defined $Cols ) {
++cols="<% $Cols %>" \
++% }
++% if ( defined $Rows ) {
++rows="<% $Rows %>" \
++% }
++name="<%$name%>s" id="<%$name%>s" wrap="off" class="CF-<%$CustomField->id%>-Edit"><% defined($Default) ? $Default : '' %></textarea>
% } else {
-<input name="<%$name%>" id="<%$name%>" size="<%$Cols%>" class="CF-<%$CustomField->id%>-Edit" value="<% defined($Default) ? $Default : ''%>" />
-+<input name="<%$name%>" id="<%$name%>" <% defined $Cols ? qq{size="$Cols"} : '' %> class="CF-<%$CustomField->id%>-Edit" value="<% defined($Default) ? $Default : ''%>" />
++<input name="<%$name%>" id="<%$name%>" \
++% if ( defined $Cols ) {
++size="<% $Cols %>" \
++% }
++class="CF-<%$CustomField->id%>-Edit" value="<% defined($Default) ? $Default : ''%>" />
% }
<%INIT>
if ( $Multiple and $Values ) {
@@ -45,11 +63,25 @@
%# END BPS TAGGED BLOCK }}}
% while ($Values and my $value = $Values->Next ) {
-<textarea cols="<%$Cols%>" rows="<%$Rows%>" name="<%$NamePrefix%><%$CustomField->Id%>-Values" class="CF-<%$CustomField->id%>-Edit"><% $value->Content %></textarea><br />
-+<textarea <% defined $Cols ? qq{cols="$Cols"} : '' %> <% defined $Rows ? qq{rows="$Rows"} : '' %> name="<%$NamePrefix%><%$CustomField->Id%>-Values" class="CF-<%$CustomField->id%>-Edit"><% $value->Content %></textarea><br />
++<textarea \
++% if ( defined $Cols ) {
++cols="<% $Cols %>" \
++% }
++% if ( defined $Rows ) {
++rows="<% $Rows %>" \
++% }
++name="<%$NamePrefix%><%$CustomField->Id%>-Values" class="CF-<%$CustomField->id%>-Edit"><% $value->Content %></textarea><br />
% }
% if (!$MaxValues or !$Values or $Values->Count < $MaxValues) {
-<textarea cols="<%$Cols%>" rows="<%$Rows%>" name="<%$NamePrefix%><%$CustomField->Id%>-Values" class="CF-<%$CustomField->id%>-Edit"><% defined($Default) ? $Default : '' %></textarea>
-+<textarea <% defined $Cols ? qq{cols="$Cols"} : '' %> <% defined $Rows ? qq{rows="$Rows"} : '' %> name="<%$NamePrefix%><%$CustomField->Id%>-Values" class="CF-<%$CustomField->id%>-Edit"><% defined($Default) ? $Default : '' %></textarea>
++<textarea \
++% if ( defined $Cols ) {
++cols="<% $Cols %>" \
++% }
++% if ( defined $Rows ) {
++rows="<% $Rows %>" \
++% }
++name="<%$NamePrefix%><%$CustomField->Id%>-Values" class="CF-<%$CustomField->id%>-Edit"><% defined($Default) ? $Default : '' %></textarea>
% }
<%INIT>
# XXX - MultiValue textarea is for now outlawed.
@@ -62,11 +94,25 @@
%# END BPS TAGGED BLOCK }}}
% while ($Values and my $value = $Values->Next ) {
-<textarea cols="<%$Cols%>" rows="<%$Rows%>" name="<%$NamePrefix%><%$CustomField->Id%>-Values" class="CF-<%$CustomField->id%>-Edit"><% $value->Content %></textarea><br />
-+<textarea <% defined $Cols ? qq{cols="$Cols"} : '' %> <% defined $Rows ? qq{rows="$Rows"} : '' %> name="<%$NamePrefix%><%$CustomField->Id%>-Values" class="CF-<%$CustomField->id%>-Edit"><% $value->Content %></textarea><br />
++<textarea \
++% if ( defined $Cols ) {
++cols="<% $Cols %>" \
++% }
++% if ( defined $Rows ) {
++rows="<% $Rows %>" \
++% }
++name="<%$NamePrefix%><%$CustomField->Id%>-Values" class="CF-<%$CustomField->id%>-Edit"><% $value->Content %></textarea><br />
% }
% if (!$MaxValues or !$Values or $Values->Count < $MaxValues) {
-<textarea cols="<%$Cols%>" rows="<%$Rows%>" name="<%$NamePrefix%><%$CustomField->Id%>-Values" class="CF-<%$CustomField->id%>-Edit"><% $Default %></textarea>
-+<textarea <% defined $Cols ? qq{cols="$Cols"} : '' %> <% defined $Rows ? qq{rows="$Rows"} : '' %> name="<%$NamePrefix%><%$CustomField->Id%>-Values" class="CF-<%$CustomField->id%>-Edit"><% $Default %></textarea>
++<textarea \
++% if ( defined $Cols ) {
++cols="<% $Cols %>" \
++% }
++% if ( defined $Rows ) {
++rows="<% $Rows %>" \
++% }
++name="<%$NamePrefix%><%$CustomField->Id%>-Values" class="CF-<%$CustomField->id%>-Edit"><% $Default %></textarea>
% }
<%INIT>
# XXX - MultiValue textarea is for now outlawed.
More information about the rt-commit
mailing list