fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [7143] property: button


From: Sigurd Nes
Subject: [Fmsystem-commits] [7143] property: button
Date: Fri, 25 Mar 2011 14:34:50 +0000

Revision: 7143
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7143
Author:   sigurdne
Date:     2011-03-25 14:34:49 +0000 (Fri, 25 Mar 2011)
Log Message:
-----------
property: button

Modified Paths:
--------------
    trunk/property/inc/class.uirequest.inc.php
    trunk/property/templates/base/request.xsl

Modified: trunk/property/inc/class.uirequest.inc.php
===================================================================
--- trunk/property/inc/class.uirequest.inc.php  2011-03-24 14:09:35 UTC (rev 
7142)
+++ trunk/property/inc/class.uirequest.inc.php  2011-03-25 14:34:49 UTC (rev 
7143)
@@ -1310,6 +1310,7 @@
 
                                        'generate_project_action'               
        => $GLOBALS['phpgw']->link('/index.php',array('menuaction'=> 
'property.uiproject.edit')),
                                        'edit_action'                           
                => $GLOBALS['phpgw']->link('/index.php',array('menuaction'=> 
'property.uirequest.edit', 'id'=> $id)),
+                                       'acl_add_project'                       
                => $this->acl->check('.project', PHPGW_ACL_ADD, 'property'),
                                        'lang_generate_project'                 
        => lang('Generate project'),
                                        'lang_generate_project_statustext'      
=> lang('Generate a project from this request'),
                                        'location_code'                         
                => $values['location_code'],

Modified: trunk/property/templates/base/request.xsl
===================================================================
--- trunk/property/templates/base/request.xsl   2011-03-24 14:09:35 UTC (rev 
7142)
+++ trunk/property/templates/base/request.xsl   2011-03-25 14:34:49 UTC (rev 
7143)
@@ -92,7 +92,8 @@
                                        </xsl:when>
                                </xsl:choose>
                                <xsl:choose>
-                                       <xsl:when test="value_request_id!=''">
+                                       <xsl:when test="value_request_id!='' 
and acl_add_project='1'">
+                                               <tr>
                                                <td valign="top" align="center">
                                                        <xsl:variable 
name="generate_project_action"><xsl:value-of 
select="generate_project_action"/></xsl:variable>
                                                        <xsl:variable 
name="lang_generate_project"><xsl:value-of 
select="lang_generate_project"/></xsl:variable>
@@ -113,6 +114,7 @@
                                                                </input>
                                                        </form>
                                                </td>
+                                               </tr>
                                        </xsl:when>
                                </xsl:choose>
                        </table>




reply via email to

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