Revision 42659
Added by Sandro La Bruzzo almost 8 years ago
default_browse.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" /> |
|
12 |
<xsl:variable name="label" select="@label" /> |
|
13 |
<div class="panel panel-default"> |
|
14 |
<div class="panel-heading text-center"><strong><a ng-click="browse_one('{$field}', '{$label}')" data-toggle="modal" data-target="#browseOneModal"><xsl:value-of select="$label" /></a></strong></div> |
|
15 |
<table class="table" ng-hide="browse_{$field}_showAll"> |
|
16 |
<xsl:for-each select="./value"> |
|
17 |
<tr> |
|
18 |
<td><a href="javascript:void(0)" ng-click="updateQueryWithValue('{$field}', '{@name}', 0)"><xsl:value-of select="@name" /></a></td> |
|
19 |
<td class="text-right"><xsl:value-of select="@size" /></td> |
|
20 |
</tr> |
|
21 |
</xsl:for-each> |
|
22 |
</table> |
|
23 |
</div> |
|
24 |
</xsl:for-each> |
|
25 |
|
|
26 |
</xsl:template> |
|
27 |
</xsl:stylesheet> |
Also available in: Unified diff
added light-ui