[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [12035] api: custom functions
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [12035] api: custom functions |
Date: |
Mon, 30 Jun 2014 07:38:20 +0000 |
Revision: 12035
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12035
Author: sigurdne
Date: 2014-06-30 07:38:19 +0000 (Mon, 30 Jun 2014)
Log Message:
-----------
api: custom functions
Modified Paths:
--------------
trunk/admin/inc/class.ui_custom.inc.php
trunk/admin/templates/base/custom.xsl
Modified: trunk/admin/inc/class.ui_custom.inc.php
===================================================================
--- trunk/admin/inc/class.ui_custom.inc.php 2014-06-30 07:37:26 UTC (rev
12034)
+++ trunk/admin/inc/class.ui_custom.inc.php 2014-06-30 07:38:19 UTC (rev
12035)
@@ -480,6 +480,7 @@
'sorting'
=> $entry['sorting'],
'active'
=> $entry['active']?'X':'',
'client_side'
=> $entry['client_side']?'X':'',
+ 'pre_commit'
=> $entry['pre_commit']?'X':'',
'link_up'
=> $GLOBALS['phpgw']->link('/index.php',array
(
'menuaction' =>
'admin.ui_custom.list_custom_function',
@@ -533,6 +534,7 @@
(
'lang_descr' => lang('Descr'),
'lang_active' => lang('Active'),
+ 'lang_pre_commit' => lang('pre commit'),
'lang_client_side' => lang('client side'),
'lang_sorting' => lang('sorting'),
'lang_search' => lang('search'),
@@ -743,6 +745,7 @@
'value_active'
=> isset($values['active'])?$values['active']:'',
'value_client_side'
=> $values['client_side'],
+ 'value_pre_commit'
=> $values['pre_commit'],
'lang_active'
=> lang('Active'),
'lang_active_statustext'
=> lang('check to activate custom function'),
);
Modified: trunk/admin/templates/base/custom.xsl
===================================================================
--- trunk/admin/templates/base/custom.xsl 2014-06-30 07:37:26 UTC (rev
12034)
+++ trunk/admin/templates/base/custom.xsl 2014-06-30 07:38:19 UTC (rev
12035)
@@ -544,6 +544,9 @@
<xsl:value-of select="lang_descr"/>
</td>
<td class="th_text" width="5%" align="center">
+ <xsl:value-of select="lang_pre_commit"/>
+ </td>
+ <td class="th_text" width="5%" align="center">
<xsl:value-of select="lang_client_side"/>
</td>
<td class="th_text" width="5%" align="center">
@@ -587,6 +590,9 @@
<xsl:value-of select="descr"/>
</td>
<td align = 'center'>
+ <xsl:value-of select="pre_commit"/>
+ </td>
+ <td align = 'center'>
<xsl:value-of select="client_side"/>
</td>
<td align = 'center'>
@@ -722,23 +728,40 @@
</xsl:choose>
</td>
</tr>
- <tr>
- <td>
- <xsl:value-of
select="php:function('lang', 'client-side')"/>
- </td>
- <td>
- <input type="checkbox"
name="values[client_side]" value="1">
- <xsl:attribute
name="title">
-
<xsl:text>otherwise: server-side</xsl:text>
- </xsl:attribute>
- <xsl:if
test="value_client_side = '1'">
-
<xsl:attribute name="checked">
-
<xsl:text>checked</xsl:text>
- </xsl:attribute>
- </xsl:if>
- </input>
- </td>
- </tr>
+ <tr>
+ <td>
+ <xsl:value-of
select="php:function('lang', 'pre commit')"/>
+ </td>
+ <td>
+ <input type="checkbox"
name="values[pre_commit]" value="1">
+ <xsl:attribute name="title">
+ <xsl:text>otherwise:
post commit</xsl:text>
+ </xsl:attribute>
+ <xsl:if test="value_pre_commit
= '1'">
+ <xsl:attribute
name="checked">
+
<xsl:text>checked</xsl:text>
+ </xsl:attribute>
+ </xsl:if>
+ </input>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <xsl:value-of
select="php:function('lang', 'client-side')"/>
+ </td>
+ <td>
+ <input type="checkbox"
name="values[client_side]" value="1">
+ <xsl:attribute name="title">
+ <xsl:text>otherwise:
server-side</xsl:text>
+ </xsl:attribute>
+ <xsl:if test="value_client_side
= '1'">
+ <xsl:attribute
name="checked">
+
<xsl:text>checked</xsl:text>
+ </xsl:attribute>
+ </xsl:if>
+ </input>
+ </td>
+ </tr>
<tr height="50">
<td>
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [12035] api: custom functions,
Sigurd Nes <=