fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [11304] property: configurable textarea


From: Sigurd Nes
Subject: [Fmsystem-commits] [11304] property: configurable textarea
Date: Thu, 19 Sep 2013 07:51:57 +0000

Revision: 11304
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11304
Author:   sigurdne
Date:     2013-09-19 07:51:46 +0000 (Thu, 19 Sep 2013)
Log Message:
-----------
property: configurable textarea

Modified Paths:
--------------
    trunk/property/templates/base/attributes_form.xsl

Modified: trunk/property/templates/base/attributes_form.xsl
===================================================================
--- trunk/property/templates/base/attributes_form.xsl   2013-09-18 18:59:11 UTC 
(rev 11303)
+++ trunk/property/templates/base/attributes_form.xsl   2013-09-19 07:51:46 UTC 
(rev 11304)
@@ -22,6 +22,9 @@
                        <xsl:value-of select="statustext"/>
                </xsl:variable>
 
+               <xsl:variable name="textareacols"><xsl:value-of 
select="php:function('get_phpgw_info', 
'user|preferences|property|textareacols')" /></xsl:variable>
+               <xsl:variable name="textarearows"><xsl:value-of 
select="php:function('get_phpgw_info', 
'user|preferences|property|textarearows')" /></xsl:variable>
+
                <xsl:choose>
                        <xsl:when test="datatype='section'">
                                <tr>
@@ -476,6 +479,26 @@
                                                                                
        </xsl:attribute>
                                                                                
</xsl:when>
                                                                        
</xsl:choose>
+                                                                       
<xsl:attribute name="cols">
+                                                                               
<xsl:choose>
+                                                                               
        <xsl:when test="$textareacols!=''">
+                                                                               
                <xsl:value-of select="$textareacols"/>
+                                                                               
        </xsl:when>
+                                                                               
        <xsl:otherwise>
+                                                                               
                <xsl:text>60</xsl:text>
+                                                                               
        </xsl:otherwise>
+                                                                               
</xsl:choose>
+                                                                       
</xsl:attribute>
+                                                                       
<xsl:attribute name="rows">
+                                                                               
<xsl:choose>
+                                                                               
        <xsl:when test="$textarearows!=''">
+                                                                               
                <xsl:value-of select="$textarearows"/>
+                                                                               
        </xsl:when>
+                                                                               
        <xsl:otherwise>
+                                                                               
                <xsl:text>6</xsl:text>
+                                                                               
        </xsl:otherwise>
+                                                                               
</xsl:choose>
+                                                                       
</xsl:attribute>
                                                                        
<xsl:value-of select="value"/>
                                                                </textarea>
                                                        </xsl:when>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]