[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [15190]
From: |
nelson . guerra |
Subject: |
[Fmsystem-commits] [15190] |
Date: |
Tue, 24 May 2016 00:52:57 +0000 (UTC) |
Revision: 15190
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15190
Author: nelson224
Date: 2016-05-24 00:52:57 +0000 (Tue, 24 May 2016)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind-2/property/templates/base/location.xsl
Modified: branches/dev-syncromind-2/property/templates/base/location.xsl
===================================================================
--- branches/dev-syncromind-2/property/templates/base/location.xsl
2016-05-23 17:11:05 UTC (rev 15189)
+++ branches/dev-syncromind-2/property/templates/base/location.xsl
2016-05-24 00:52:57 UTC (rev 15190)
@@ -506,33 +506,32 @@
</div>
</xsl:when>
</xsl:choose>
- <xsl:choose>
- <xsl:when test="documents !=
''">
+
<div id="document">
- <fieldset>
- <!-- Some style
for the expand/contract section-->
- <style>
-
#expandcontractdiv {border:1px dotted #dedede; margin:0 0 .5em 0;
padding:0.4em;}
-
#treeDiv1 { background: #fff; padding:1em; margin-top:1em; }
- </style>
- <script
type="text/javascript">
-
documents = <xsl:value-of select="documents"/>;
- </script>
- <!-- markup for
expand/contract links -->
- <div
id="treecontrol">
- <a
id="collapse1" title="Collapse the entire tree below" href="#">
-
<xsl:value-of select="php:function('lang', 'collapse all')"/>
- </a>
-
<xsl:text> | </xsl:text>
- <a
id="expand1" title="Expand the entire tree below" href="#">
-
<xsl:value-of select="php:function('lang', 'expand all')"/>
- </a>
- </div>
- <div
id="treeDiv1"></div>
- </fieldset>
+
+ <div
class="pure-control-group">
+ <label>
+
<xsl:value-of select="php:function('lang', 'categories')" />
+ </label>
+ <select
id="category_id" name="category_id">
+
<xsl:apply-templates select="cat_filter/options"/>
+ </select>
</div>
- </xsl:when>
- </xsl:choose>
+
+ <xsl:for-each
select="datatable_def">
+ <xsl:if
test="container = 'datatable-container_0'">
+
<xsl:call-template name="table_setup">
+
<xsl:with-param name="container" select ='container'/>
+
<xsl:with-param name="requestUrl" select ='requestUrl' />
+
<xsl:with-param name="ColumnDefs" select ='ColumnDefs' />
+
<xsl:with-param name="tabletools" select ='tabletools' />
+
<xsl:with-param name="data" select ='data' />
+
<xsl:with-param name="config" select ='config' />
+
</xsl:call-template>
+
</xsl:if>
+ </xsl:for-each>
+ </div>
+
<xsl:choose>
<xsl:when test="file_tree !=
''">
<div id="file_tree">
@@ -562,7 +561,7 @@
</xsl:choose>
<div id="related">
<xsl:for-each select="datatable_def">
- <xsl:if test="container =
'datatable-container_0'">
+ <xsl:if test="container =
'datatable-container_1'">
<xsl:call-template
name="table_setup">
<xsl:with-param
name="container" select ='container'/>
<xsl:with-param
name="requestUrl" select ='requestUrl' />
@@ -581,7 +580,7 @@
</script>
<div id="history">
<xsl:for-each
select="datatable_def">
- <xsl:if
test="container = 'datatable-container_1'">
+ <xsl:if
test="container = 'datatable-container_2'">
<xsl:call-template name="table_setup">
<xsl:with-param name="container" select ='container'/>
<xsl:with-param name="requestUrl" select ='requestUrl' />
@@ -834,3 +833,13 @@
];
</script>
</xsl:template>
+
+<xsl:template match="options">
+ <option value="{id}">
+ <xsl:if test="selected = 'selected' or selected = 1">
+ <xsl:attribute name="selected" value="selected" />
+ </xsl:if>
+ <xsl:attribute name="title" value="description" />
+ <xsl:value-of disable-output-escaping="yes" select="name"/>
+ </option>
+</xsl:template>
\ No newline at end of file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [15190],
nelson . guerra <=