fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [14485]


From: Nelson Guerra
Subject: [Fmsystem-commits] [14485]
Date: Thu, 26 Nov 2015 23:55:47 +0000

Revision: 14485
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14485
Author:   nelson224
Date:     2015-11-26 23:55:45 +0000 (Thu, 26 Nov 2015)
Log Message:
-----------


Added Paths:
-----------
    branches/dev-syncromind/activitycalendar/templates/base/activity.xsl

Added: branches/dev-syncromind/activitycalendar/templates/base/activity.xsl
===================================================================
--- branches/dev-syncromind/activitycalendar/templates/base/activity.xsl        
                        (rev 0)
+++ branches/dev-syncromind/activitycalendar/templates/base/activity.xsl        
2015-11-26 23:55:45 UTC (rev 14485)
@@ -0,0 +1,79 @@
+  <!-- $Id: activity.xsl 12604 2015-01-15 17:06:11Z nelson224 $ -->
+<xsl:template match="data">
+       <xsl:choose>
+               <xsl:when test="edit">
+                       <xsl:apply-templates select="edit"/>
+               </xsl:when>
+               <xsl:when test="view">
+                       <xsl:apply-templates select="view"/>
+               </xsl:when>
+       </xsl:choose>
+       <xsl:call-template name="jquery_phpgw_i18n"/>
+</xsl:template>
+
+<!-- add / edit  -->
+<xsl:template xmlns:php="http://php.net/xsl"; match="edit">
+       
+       <div>
+               <xsl:variable name="form_action">
+                       <xsl:value-of select="form_action"/>
+               </xsl:variable>
+
+               <form id="form" name="form" method="post" 
action="{$form_action}" class="pure-form pure-form-aligned">
+                       <div id="tab-content">
+                               <xsl:value-of disable-output-escaping="yes" 
select="tabs"/>
+                               <div id="details">
+                               </div>
+                       </div>
+                       <div class="proplist-col">
+                               <input type="submit" class="pure-button 
pure-button-primary" name="save_contract" value="{lang_save}" 
onMouseout="window.status='';return true;"/>
+                               <xsl:variable name="cancel_url">
+                                       <xsl:value-of select="cancel_url"/>
+                               </xsl:variable>                         
+                               <input type="button" class="pure-button 
pure-button-primary" name="cancel" value="{lang_cancel}" 
onMouseout="window.status='';return true;" onClick="window.location = 
'{cancel_url}';"/>
+                       </div>
+               </form>
+               <form id="form_upload" name="form_upload" method="post" 
action="" enctype="multipart/form-data"></form>
+       </div>
+</xsl:template>
+
+
+<!-- view  -->
+<xsl:template xmlns:php="http://php.net/xsl"; match="view">
+
+       <div>
+               <xsl:variable name="form_action">
+                       <xsl:value-of select="form_action"/>
+               </xsl:variable>
+
+               <form id="form" name="form" method="post" 
action="{$form_action}" class="pure-form pure-form-aligned">
+                       <div id="tab-content">
+                               <xsl:value-of disable-output-escaping="yes" 
select="tabs"/>
+                               <div id="details">
+                               </div>
+                       </div>
+                       <div class="proplist-col">
+                               <xsl:variable name="cancel_url">
+                                       <xsl:value-of select="cancel_url"/>
+                               </xsl:variable>                         
+                               <input type="button" class="pure-button 
pure-button-primary" name="cancel" value="{lang_cancel}" 
onMouseout="window.status='';return true;" onClick="window.location = 
'{cancel_url}';"/>
+                       </div>
+               </form>
+       </div>
+</xsl:template>
+
+
+<xsl:template match="options">
+       <option value="{id}">
+               <xsl:if test="selected != 0">
+                       <xsl:attribute name="selected" value="selected"/>
+               </xsl:if>
+               <xsl:value-of disable-output-escaping="yes" select="name"/>
+       </option>
+</xsl:template>
+
+<xsl:template match="option_group">
+       <optgroup label="{label}">
+               <xsl:apply-templates select="options"/>
+       </optgroup>
+</xsl:template>
\ No newline at end of file




reply via email to

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