Revision 42659
Added by Sandro La Bruzzo almost 8 years ago
default_browse_single_field.xslt | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
|
|
3 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
4 |
version="2.0" |
|
5 |
> |
|
6 |
|
|
7 |
<xsl:output method="html" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/> |
|
8 |
|
|
9 |
<xsl:template match="/"> |
|
10 |
<xsl:for-each select="//field"> |
|
11 |
<xsl:variable name="field" select="@name"></xsl:variable> |
|
12 |
<xsl:variable name="label" select="@label"></xsl:variable> |
|
13 |
<table class="table table-striped" ng-hide="browse_{$field}_showAll"> |
|
14 |
<xsl:for-each select="./value"> |
|
15 |
<tr ng-hide="browse_{$field}_showAll"> |
|
16 |
<th><a href="javascript:void(0)" data-dismiss="modal" ng-click="updateQueryWithValue('{$field}', '{@name}', 1500)"><xsl:value-of select="@name" /></a></th> |
|
17 |
<td class="text-right"><xsl:value-of select="@size" /></td> |
|
18 |
</tr> |
|
19 |
</xsl:for-each> |
|
20 |
</table> |
|
21 |
</xsl:for-each> |
|
22 |
</xsl:template> |
|
23 |
</xsl:stylesheet> |
Also available in: Unified diff
added light-ui