[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [14587] clean up from yui
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [14587] clean up from yui |
Date: |
Sun, 13 Dec 2015 17:13:57 +0000 |
Revision: 14587
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14587
Author: sigurdne
Date: 2015-12-13 17:13:56 +0000 (Sun, 13 Dec 2015)
Log Message:
-----------
clean up from yui
Modified Paths:
--------------
branches/dev-syncromind/property/templates/base/b_account_form.xsl
branches/dev-syncromind/property/templates/base/b_account_view.xsl
branches/dev-syncromind/property/templates/base/contact_form.xsl
branches/dev-syncromind/property/templates/base/contact_view.xsl
branches/dev-syncromind/property/templates/base/ecodimb_form.xsl
branches/dev-syncromind/property/templates/base/ecodimb_view.xsl
branches/dev-syncromind/property/templates/base/files.xsl
branches/dev-syncromind/property/templates/base/vendor_form.xsl
branches/dev-syncromind/property/templates/base/vendor_view.xsl
Modified: branches/dev-syncromind/property/templates/base/b_account_form.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/b_account_form.xsl
2015-12-13 17:13:39 UTC (rev 14586)
+++ branches/dev-syncromind/property/templates/base/b_account_form.xsl
2015-12-13 17:13:56 UTC (rev 14587)
@@ -1,51 +1,55 @@
- <!-- $Id$ -->
- <xsl:template name="b_account_form">
- <xsl:apply-templates select="b_account_data"/>
- </xsl:template>
- <!-- New template-->
- <xsl:template match="b_account_data">
- <script type="text/javascript">
- self.name="first_Window";
- function b_account_lookup()
- {
- Window1=window.open('<xsl:value-of
select="b_account_link"/>',"Search","left=50,top=100,width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
- }
- </script>
- <xsl:choose>
- <xsl:when test="disabled='1'">
- <tr>
- <td valign="top">
+<!-- $Id$ -->
+<xsl:template name="b_account_form">
+ <xsl:apply-templates select="b_account_data"/>
+</xsl:template>
+
+<!-- New template-->
+<xsl:template match="b_account_data" xmlns:php="http://php.net/xsl">
+ <script type="text/javascript">
+ function b_account_lookup()
+ {
+ TINY.box.show({iframe:'<xsl:value-of
select="b_account_link"/>',
boxid:"frameless",width:750,height:450,fixed:false,maskid:"darkmask",maskopacity:40,
mask:true, animate:true, close: true});
+ }
+ </script>
+ <xsl:choose>
+ <xsl:when test="disabled='1'">
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of select="lang_b_account"/>
+ </label>
+ <input size="9" type="text"
value="{value_b_account_id}" readonly="readonly"/>
+ <input size="30" type="text"
value="{value_b_account_name}" readonly="readonly"/>
+ <input size="9" type="hidden"
name="b_account_id" value="{value_b_account_id}" readonly="readonly"/>
+ <input size="30" type="hidden"
name="b_account_name" value="{value_b_account_name}" readonly="readonly"/>
+ </div>
+ </xsl:when>
+ <xsl:otherwise>
+ <div class="pure-control-group">
+ <label>
+ <a href="javascript:b_account_lookup()"
title="{lang_select_b_account_help}">
<xsl:value-of
select="lang_b_account"/>
- </td>
- <td>
- <input size="9" type="text"
value="{value_b_account_id}" readonly="readonly"/>
- <input size="30" type="text"
value="{value_b_account_name}" readonly="readonly"/>
- <input size="9" type="hidden"
name="b_account_id" value="{value_b_account_id}" readonly="readonly"/>
- <input size="30" type="hidden"
name="b_account_name" value="{value_b_account_name}" readonly="readonly"/>
- </td>
- </tr>
- </xsl:when>
- <xsl:otherwise>
- <tr>
- <td valign="top">
- <a
href="javascript:b_account_lookup()"
onMouseover="window.status='{lang_select_b_account_help}';return true;"
onMouseout="window.status='';return true;">
- <xsl:value-of
select="lang_b_account"/>
- </a>
- </td>
- <td>
- <input size="9" type="text"
name="b_account_id" value="{value_b_account_id}">
- <xsl:attribute
name="title">
- <xsl:value-of
select="lang_select_b_account_help"/>
- </xsl:attribute>
- </input>
- <input size="30" type="text"
name="b_account_name" value="{value_b_account_name}"
onClick="b_account_lookup();" readonly="readonly">
- <xsl:attribute
name="title">
- <xsl:value-of
select="lang_select_b_account_help"/>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
+ </a>
+ </label>
+ <input size="9" type="text" id="b_account_id"
name="b_account_id" value="{value_b_account_id}">
+ <xsl:attribute name="title">
+ <xsl:value-of
select="lang_select_b_account_help"/>
+ </xsl:attribute>
+ <xsl:if test="required='1'">
+ <xsl:attribute
name="data-validation">
+
<xsl:text>required</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute
name="data-validation-error-msg">
+ <xsl:value-of
select="php:function('lang', 'Please select a budget account !')"/>
+ </xsl:attribute>
+ </xsl:if>
+ </input>
+ <input size="30" type="text"
name="b_account_name" value="{value_b_account_name}"
onClick="b_account_lookup();" readonly="readonly">
+ <xsl:attribute name="title">
+ <xsl:value-of
select="lang_select_b_account_help"/>
+ </xsl:attribute>
+ </input>
+ </div>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
Modified: branches/dev-syncromind/property/templates/base/b_account_view.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/b_account_view.xsl
2015-12-13 17:13:39 UTC (rev 14586)
+++ branches/dev-syncromind/property/templates/base/b_account_view.xsl
2015-12-13 17:13:56 UTC (rev 14587)
@@ -1,19 +1,18 @@
- <!-- $Id$ -->
- <xsl:template name="b_account_view">
- <xsl:apply-templates select="b_account_data"/>
- </xsl:template>
- <!-- New template-->
- <xsl:template match="b_account_data">
- <tr>
- <td valign="top">
- <xsl:value-of select="lang_b_account"/>
- </td>
- <td>
- <xsl:value-of select="value_b_account_id"/>
- <xsl:text> [</xsl:text>
- <xsl:value-of select="value_b_account_name"/>
- <xsl:text>]</xsl:text>
- </td>
- </tr>
- </xsl:template>
+<!-- $Id$ -->
+<xsl:template name="b_account_view">
+ <xsl:apply-templates select="b_account_data"/>
+</xsl:template>
+
+<!-- New template-->
+<xsl:template match="b_account_data">
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of select="lang_b_account"/>
+ </label>
+ <xsl:value-of select="value_b_account_id"/>
+ <xsl:text> [</xsl:text>
+ <xsl:value-of select="value_b_account_name"/>
+ <xsl:text>]</xsl:text>
+ </div>
+</xsl:template>
Modified: branches/dev-syncromind/property/templates/base/contact_form.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/contact_form.xsl
2015-12-13 17:13:39 UTC (rev 14586)
+++ branches/dev-syncromind/property/templates/base/contact_form.xsl
2015-12-13 17:13:56 UTC (rev 14587)
@@ -1,59 +1,46 @@
- <!-- $Id$ -->
- <xsl:template name="contact_form">
- <xsl:apply-templates select="contact_data"/>
- </xsl:template>
- <!-- New template-->
- <xsl:template match="contact_data">
- <script type="text/javascript">
- self.name="first_Window";
- function <xsl:value-of select="field"/>_contact_lookup()
- {
- Window1=window.open('<xsl:value-of
select="contact_link"/>',"Search","left=50,top=100,width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
- }
- </script>
- <tr>
- <td valign="top">
- <label>
- <a
href="javascript:{field}_contact_lookup()" title="{lang_select_contact_help}">
- <xsl:value-of
select="lang_contact"/>
- </a>
- </label>
- </td>
- <td>
- <table>
- <tr>
- <td>
- <input type="hidden"
name="{field}" value="{value_contact_id}">
- </input>
- <input size="30"
type="text" name="{field}_name" value="{value_contact_name}"
onClick="{field}_contact_lookup();" readonly="readonly">
- <xsl:attribute
name="title">
-
<xsl:value-of select="lang_select_contact_help"/>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- <xsl:choose>
- <xsl:when
test="value_contact_tel!=''">
- <tr>
- <td>
-
<xsl:value-of select="value_contact_tel"/>
- </td>
- </tr>
- </xsl:when>
- </xsl:choose>
- <xsl:choose>
- <xsl:when
test="value_contact_email!=''">
- <tr>
- <td>
- <a
href="mailto:{value_contact_email}">
-
<xsl:value-of select="value_contact_email"/>
- </a>
- </td>
- </tr>
- </xsl:when>
- </xsl:choose>
- </table>
- </td>
- </tr>
- </xsl:template>
+<!-- $Id$ -->
+<xsl:template name="contact_form">
+ <xsl:apply-templates select="contact_data"/>
+</xsl:template>
+
+<!-- New template-->
+<xsl:template match="contact_data">
+ <script type="text/javascript">
+ function <xsl:value-of select="field"/>_contact_lookup()
+ {
+ TINY.box.show({iframe:'<xsl:value-of
select="contact_link"/>',
boxid:"frameless",width:750,height:450,fixed:false,maskid:"darkmask",maskopacity:40,
mask:true, animate:true, close: true});
+ }
+ </script>
+ <div class="pure-control-group">
+ <label for='contact'>
+ <a href="javascript:{field}_contact_lookup()"
title="{lang_select_contact_help}">
+ <xsl:value-of select="lang_contact"/>
+ </a>
+ </label>
+ <div class="pure-custom">
+ <input type="hidden" name="{field}"
value="{value_contact_id}"></input>
+ <input size="30" type="text" name="{field}_name"
value="{value_contact_name}" onClick="{field}_contact_lookup();"
readonly="readonly">
+ <xsl:attribute name="title">
+ <xsl:value-of
select="lang_select_contact_help"/>
+ </xsl:attribute>
+ </input>
+ <xsl:choose>
+ <xsl:when test="value_contact_tel!=''">
+ <div>
+ <xsl:value-of
select="value_contact_tel"/>
+ </div>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="value_contact_email!=''">
+ <div>
+ <a
href="mailto:{value_contact_email}">
+ <xsl:value-of
select="value_contact_email"/>
+ </a>
+ </div>
+ </xsl:when>
+ </xsl:choose>
+ </div>
+ </div>
+</xsl:template>
Modified: branches/dev-syncromind/property/templates/base/contact_view.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/contact_view.xsl
2015-12-13 17:13:39 UTC (rev 14586)
+++ branches/dev-syncromind/property/templates/base/contact_view.xsl
2015-12-13 17:13:56 UTC (rev 14587)
@@ -5,11 +5,13 @@
<!-- New template-->
<xsl:template match="contact_data">
- <tr>
- <td valign="top">
+ <div class="pure-control-group">
+
+ <div class="pure-u-1 pure-u-md-1-3">
+ <label>
<xsl:value-of select="lang_contact"/>
- </td>
- <td>
+ </label>
+ <div class="pure-u-md-1-3">
<table>
<tr>
<td>
@@ -37,6 +39,7 @@
</xsl:when>
</xsl:choose>
</table>
- </td>
- </tr>
+ </div>
+ </div>
+ </div>
</xsl:template>
Modified: branches/dev-syncromind/property/templates/base/ecodimb_form.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/ecodimb_form.xsl
2015-12-13 17:13:39 UTC (rev 14586)
+++ branches/dev-syncromind/property/templates/base/ecodimb_form.xsl
2015-12-13 17:13:56 UTC (rev 14587)
@@ -1,51 +1,55 @@
- <!-- $Id$ -->
- <xsl:template name="ecodimb_form">
- <xsl:apply-templates select="ecodimb_data"/>
- </xsl:template>
- <!-- New template-->
- <xsl:template match="ecodimb_data">
- <script type="text/javascript">
- self.name="first_Window";
- function ecodimb_lookup()
- {
- Window1=window.open('<xsl:value-of
select="ecodimb_url"/>',"Search","left=50,top=100,width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
- }
- </script>
- <xsl:choose>
- <xsl:when test="disabled='1'">
- <tr>
- <td valign="top">
+<!-- $Id$ -->
+<xsl:template name="ecodimb_form">
+ <xsl:apply-templates select="ecodimb_data"/>
+</xsl:template>
+
+<!-- New template-->
+<xsl:template match="ecodimb_data" xmlns:php="http://php.net/xsl">
+ <script type="text/javascript">
+ function ecodimb_lookup()
+ {
+ TINY.box.show({iframe:'<xsl:value-of
select="ecodimb_url"/>',
boxid:"frameless",width:750,height:450,fixed:false,maskid:"darkmask",maskopacity:40,
mask:true, animate:true, close: true});
+ }
+ </script>
+ <xsl:choose>
+ <xsl:when test="disabled='1'">
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of select="lang_ecodimb"/>
+ </label>
+ <input size="9" type="text"
value="{value_ecodimb}" readonly="readonly"/>
+ <input size="30" type="text"
value="{value_ecodimb_descr}" readonly="readonly"/>
+ <input size="9" type="hidden" name="ecodimb"
value="{value_ecodimb}" readonly="readonly"/>
+ <input size="30" type="hidden"
name="ecodimb_descr" value="{value_ecodimb_descr}" readonly="readonly"/>
+ </div>
+ </xsl:when>
+ <xsl:otherwise>
+ <div class="pure-control-group">
+ <label>
+ <a href="javascript:ecodimb_lookup()"
title="{lang_select_ecodimb_help}">
<xsl:value-of
select="lang_ecodimb"/>
- </td>
- <td>
- <input size="9" type="text"
value="{value_ecodimb}" readonly="readonly"/>
- <input size="30" type="text"
value="{value_ecodimb_descr}" readonly="readonly"/>
- <input size="9" type="hidden"
name="ecodimb" value="{value_ecodimb}" readonly="readonly"/>
- <input size="30" type="hidden"
name="ecodimb_descr" value="{value_ecodimb_descr}" readonly="readonly"/>
- </td>
- </tr>
- </xsl:when>
- <xsl:otherwise>
- <tr>
- <td valign="top">
- <a
href="javascript:ecodimb_lookup()" title="{lang_select_ecodimb_help}">
- <xsl:value-of
select="lang_ecodimb"/>
- </a>
- </td>
- <td>
- <input size="9" type="text"
name="ecodimb" value="{value_ecodimb}">
- <xsl:attribute
name="title">
- <xsl:value-of
select="lang_select_ecodimb_help"/>
- </xsl:attribute>
- </input>
- <input size="30" type="text"
name="ecodimb_descr" value="{value_ecodimb_descr}" onClick="ecodimb_lookup();"
readonly="readonly">
- <xsl:attribute
name="title">
- <xsl:value-of
select="lang_select_ecodimb_help"/>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
+ </a>
+ </label>
+ <input size="9" type="text" name="ecodimb"
value="{value_ecodimb}">
+ <xsl:attribute name="title">
+ <xsl:value-of
select="lang_select_ecodimb_help"/>
+ </xsl:attribute>
+ <xsl:if test="required='1'">
+ <xsl:attribute
name="data-validation">
+
<xsl:text>required</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute
name="data-validation-error-msg">
+ <xsl:value-of
select="php:function('lang', 'Please select a value !')"/>
+ </xsl:attribute>
+ </xsl:if>
+ </input>
+ <input size="30" type="text"
name="ecodimb_descr" value="{value_ecodimb_descr}" onClick="ecodimb_lookup();"
readonly="readonly">
+ <xsl:attribute name="title">
+ <xsl:value-of
select="lang_select_ecodimb_help"/>
+ </xsl:attribute>
+ </input>
+ </div>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
Modified: branches/dev-syncromind/property/templates/base/ecodimb_view.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/ecodimb_view.xsl
2015-12-13 17:13:39 UTC (rev 14586)
+++ branches/dev-syncromind/property/templates/base/ecodimb_view.xsl
2015-12-13 17:13:56 UTC (rev 14587)
@@ -1,19 +1,18 @@
- <!-- $Id$ -->
- <xsl:template name="ecodimb_view">
- <xsl:apply-templates select="ecodimb_data"/>
- </xsl:template>
- <!-- New template-->
- <xsl:template match="ecodimb_data">
- <tr>
- <td valign="top">
- <xsl:value-of select="lang_ecodimb"/>
- </td>
- <td>
- <xsl:value-of select="value_ecodimb"/>
- <xsl:text> [</xsl:text>
- <xsl:value-of select="value_ecodimb_descr"/>
- <xsl:text>]</xsl:text>
- </td>
- </tr>
- </xsl:template>
+<!-- $Id$ -->
+<xsl:template name="ecodimb_view">
+ <xsl:apply-templates select="ecodimb_data"/>
+</xsl:template>
+
+<!-- New template-->
+<xsl:template match="ecodimb_data">
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of select="lang_ecodimb"/>
+ </label>
+ <xsl:value-of select="value_ecodimb"/>
+ <xsl:text> [</xsl:text>
+ <xsl:value-of select="value_ecodimb_descr"/>
+ <xsl:text>]</xsl:text>
+ </div>
+</xsl:template>
Modified: branches/dev-syncromind/property/templates/base/files.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/files.xsl 2015-12-13
17:13:39 UTC (rev 14586)
+++ branches/dev-syncromind/property/templates/base/files.xsl 2015-12-13
17:13:56 UTC (rev 14587)
@@ -1,181 +1,43 @@
- <!-- $Id$ -->
- <xsl:template xmlns:php="http://php.net/xsl" name="file_list">
- <tr>
- <td width="19%" align="left" valign="top">
- <xsl:value-of select="php:function('lang',
'files')"/>
- </td>
- <td>
- <table>
- <tr class="th">
- <td class="th_text" width="85%"
align="left">
- <xsl:value-of
select="php:function('lang', 'filename')"/>
- </td>
- <td class="th_text" width="15%"
align="center">
- <xsl:choose>
- <xsl:when
test="//lang_file_action!=''">
-
<xsl:value-of select="lang_file_action"/>
- </xsl:when>
- <xsl:otherwise>
-
<xsl:value-of select="php:function('lang', 'Delete file')"/>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </tr>
- <xsl:for-each select="files">
- <tr>
- <xsl:attribute
name="class">
- <xsl:choose>
-
<xsl:when test="@class">
-
<xsl:value-of select="@class"/>
-
</xsl:when>
-
<xsl:when test="position() mod 2 = 0">
-
<xsl:text>row_off</xsl:text>
-
</xsl:when>
-
<xsl:otherwise>
-
<xsl:text>row_on</xsl:text>
-
</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <td align="left">
- <xsl:variable
name="view_file_statustext">
-
<xsl:value-of select="php:function('lang', 'click to view file')"/>
- </xsl:variable>
- <xsl:choose>
-
<xsl:when test="//link_to_files!=''">
-
<xsl:variable name="link_to_file"><xsl:value-of
select="//link_to_files"/>/<xsl:value-of select="directory"/>/<xsl:value-of
select="file_name"/></xsl:variable>
-
<a href="{$link_to_file}" target="_blank" title="{$view_file_statustext}">
-
<xsl:value-of select="name"/>
-
</a>
-
</xsl:when>
-
<xsl:otherwise>
-
<xsl:variable name="link_view_file"><xsl:value-of
select="//link_view_file"/>&file_name=<xsl:value-of
select="file_name"/></xsl:variable>
-
<a href="{$link_view_file}" target="_blank" title="{$view_file_statustext}">
-
<xsl:value-of select="name"/>
-
</a>
-
</xsl:otherwise>
- </xsl:choose>
- <xsl:text>
</xsl:text>
- </td>
- <td align="center">
- <input
type="checkbox" name="values[file_action][]" value="{name}">
-
<xsl:attribute name="title">
-
<xsl:choose>
-
<xsl:when test="//lang_file_action!=''">
-
<xsl:value-of select="//lang_file_action"/>
-
</xsl:when>
-
<xsl:otherwise>
-
<xsl:value-of select="php:function('lang', 'Check to delete
file')"/>
-
</xsl:otherwise>
-
</xsl:choose>
-
</xsl:attribute>
- </input>
- </td>
- </tr>
- </xsl:for-each>
- </table>
- </td>
- </tr>
- </xsl:template>
- <!-- New template-->
- <xsl:template xmlns:php="http://php.net/xsl" name="file_list_view">
- <tr>
- <td align="left" valign="top">
- <xsl:value-of select="php:function('lang',
'files')"/>
- </td>
- <td>
- <table>
- <tr class="th">
- <td class="th_text" width="85%"
align="left">
- <xsl:value-of
select="php:function('lang', 'filename')"/>
- </td>
- </tr>
- <xsl:for-each select="files">
- <tr>
- <xsl:attribute
name="class">
- <xsl:choose>
-
<xsl:when test="@class">
-
<xsl:value-of select="@class"/>
-
</xsl:when>
-
<xsl:when test="position() mod 2 = 0">
-
<xsl:text>row_off</xsl:text>
-
</xsl:when>
-
<xsl:otherwise>
-
<xsl:text>row_on</xsl:text>
-
</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <td align="left">
- <xsl:variable
name="view_file_statustext">
-
<xsl:value-of select="php:function('lang', 'click to view file')"/>
- </xsl:variable>
- <xsl:choose>
-
<xsl:when test="//link_to_files!=''">
-
<xsl:variable name="link_to_file"><xsl:value-of
select="//link_to_files"/>/<xsl:value-of select="directory"/>/<xsl:value-of
select="file_name"/></xsl:variable>
-
<a href="{$link_to_file}" target="_blank" title="{$view_file_statustext}">
-
<xsl:value-of select="name"/>
-
</a>
-
</xsl:when>
-
<xsl:otherwise>
-
<xsl:variable name="link_view_file"><xsl:value-of
select="//link_view_file"/>&file_name=<xsl:value-of
select="file_name"/></xsl:variable>
-
<a href="{$link_view_file}" target="_blank" title="{$view_file_statustext}">
-
<xsl:value-of select="name"/>
-
</a>
-
</xsl:otherwise>
- </xsl:choose>
- <xsl:text>
</xsl:text>
- </td>
- </tr>
- </xsl:for-each>
- </table>
- </td>
- </tr>
- </xsl:template>
-
- <!-- New template-->
- <xsl:template xmlns:php="http://php.net/xsl" name="file_upload">
- <tr>
- <td valign="top">
- <xsl:value-of select="php:function('lang',
'upload file')"/>
- </td>
- <td>
- <input type="file" name="file" size="40">
- <xsl:attribute name="title">
- <xsl:value-of
select="php:function('lang', 'Select file to upload')"/>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- <xsl:choose>
- <xsl:when test="multiple_uploader!=''">
- <tr>
- <td>
- <a
href="javascript:fileuploader()">
- <xsl:attribute
name="title">
- <xsl:value-of
select="php:function('lang', 'upload multiple files')"/>
- </xsl:attribute>
+<!-- $Id$ -->
+<!-- New template-->
+<xsl:template xmlns:php="http://php.net/xsl" name="file_upload">
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of select="php:function('lang', 'upload
file')"/>
+ </label>
+ <input type="file" name="file" size="40">
+ <xsl:attribute name="title">
+ <xsl:value-of select="php:function('lang',
'Select file to upload')"/>
+ </xsl:attribute>
+ </input>
+ </div>
+ <xsl:choose>
+ <xsl:when test="multiple_uploader!=''">
+ <div class="pure-control-group">
+ <label>
+ <a href="javascript:fileuploader()">
+ <xsl:attribute name="title">
<xsl:value-of
select="php:function('lang', 'upload multiple files')"/>
- </a>
- </td>
- <td>
- </td>
- </tr>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
+ </xsl:attribute>
+ <xsl:value-of
select="php:function('lang', 'upload multiple files')"/>
+ </a>
+ </label>
+ </div>
+ </xsl:when>
+ </xsl:choose>
+</xsl:template>
- <!-- New template-->
- <xsl:template xmlns:php="http://php.net/xsl" name="jasper_upload">
- <tr>
- <td valign="top">
- <xsl:value-of select="php:function('lang',
'jasper upload')"/>
- </td>
- <td>
- <input type="file" name="jasperfile" size="40">
- <xsl:attribute name="title">
- <xsl:value-of
select="php:function('lang', 'upload a jasper definition file')"/>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- </xsl:template>
+<!-- New template-->
+<xsl:template xmlns:php="http://php.net/xsl" name="jasper_upload">
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of select="php:function('lang', 'jasper
upload')"/>
+ </label>
+ <input type="file" name="jasperfile" size="40">
+ <xsl:attribute name="title">
+ <xsl:value-of select="php:function('lang',
'upload a jasper definition file')"/>
+ </xsl:attribute>
+ </input>
+ </div>
+</xsl:template>
Modified: branches/dev-syncromind/property/templates/base/vendor_form.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/vendor_form.xsl
2015-12-13 17:13:39 UTC (rev 14586)
+++ branches/dev-syncromind/property/templates/base/vendor_form.xsl
2015-12-13 17:13:56 UTC (rev 14587)
@@ -4,28 +4,37 @@
</xsl:template>
<!-- New template-->
- <xsl:template match="vendor_data">
+ <xsl:template match="vendor_data" xmlns:php="http://php.net/xsl">
<script type="text/javascript">
function vendor_lookup()
{
TINY.box.show({iframe:'<xsl:value-of
select="vendor_link"/>',
boxid:"frameless",width:750,height:450,fixed:false,maskid:"darkmask",maskopacity:40,
mask:true, animate:true, close: true});
}
+
</script>
- <div class="pure-control-group">
- <label for="name">
- <a href="javascript:vendor_lookup()"
onMouseover="window.status='{lang_select_vendor_help}';return true;"
onMouseout="window.status='';return true;">
+ <div class="pure-control-group">
+ <label>
+ <a href="javascript:vendor_lookup()"
title="{lang_select_vendor_help}">
<xsl:value-of select="lang_vendor"/>
</a>
</label>
- <input size="5" type="text" id="vendor_id"
name="vendor_id" value="{value_vendor_id}">
- <xsl:attribute name="title">
- <xsl:value-of
select="lang_select_vendor_help"/>
- </xsl:attribute>
- </input>
- <input size="30" type="text" name="vendor_name"
value="{value_vendor_name}" onClick="vendor_lookup();" readonly="readonly">
- <xsl:attribute name="title">
- <xsl:value-of
select="lang_select_vendor_help"/>
- </xsl:attribute>
- </input>
- </div>
+ <input size="5" type="text" id="vendor_id"
name="vendor_id" value="{value_vendor_id}">
+ <xsl:attribute name="title">
+ <xsl:value-of
select="lang_select_vendor_help"/>
+ </xsl:attribute>
+ <xsl:if test="required='1'">
+ <xsl:attribute
name="data-validation">
+
<xsl:text>required</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute
name="data-validation-error-msg">
+ <xsl:value-of
select="php:function('lang', 'no vendor')"/>
+ </xsl:attribute>
+ </xsl:if>
+ </input>
+ <input size="30" type="text" name="vendor_name"
value="{value_vendor_name}" onClick="vendor_lookup();" readonly="readonly">
+ <xsl:attribute name="title">
+ <xsl:value-of
select="lang_select_vendor_help"/>
+ </xsl:attribute>
+ </input>
+ </div>
</xsl:template>
Modified: branches/dev-syncromind/property/templates/base/vendor_view.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/vendor_view.xsl
2015-12-13 17:13:39 UTC (rev 14586)
+++ branches/dev-syncromind/property/templates/base/vendor_view.xsl
2015-12-13 17:13:56 UTC (rev 14587)
@@ -1,16 +1,17 @@
- <!-- $Id$ -->
- <xsl:template name="vendor_view">
- <xsl:apply-templates select="vendor_data"/>
- </xsl:template>
- <!-- New template-->
- <xsl:template match="vendor_data">
- <div class="pure-control-group">
- <label for="name">
- <xsl:value-of select="lang_vendor"/>
- </label>
- <xsl:value-of select="value_vendor_id"/>
- <xsl:text> - </xsl:text>
- <xsl:value-of select="value_vendor_name"/>
- </div>
- </xsl:template>
+<!-- $Id$ -->
+<xsl:template name="vendor_view">
+ <xsl:apply-templates select="vendor_data"/>
+</xsl:template>
+
+<!-- New template-->
+<xsl:template match="vendor_data">
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of select="lang_vendor"/>
+ </label>
+ <xsl:value-of select="value_vendor_id"/>
+ <xsl:text> - </xsl:text>
+ <xsl:value-of select="value_vendor_name"/>
+ </div>
+</xsl:template>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [14587] clean up from yui,
Sigurd Nes <=