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">
|
15
|
<strong>
|
16
|
<a ng-click="browse_one('{$field}', '{$label}')" data-toggle="modal" data-target="#browseOneModal">
|
17
|
<xsl:value-of select="$label"/>
|
18
|
</a>
|
19
|
</strong>
|
20
|
</div>
|
21
|
<table class="table" ng-hide="browse_{$field}_showAll">
|
22
|
<xsl:for-each select="./value">
|
23
|
<tr>
|
24
|
<td>
|
25
|
<a href="javascript:void(0)" ng-click="updateQueryWithValue('{$field}', '{@name}', 0)">
|
26
|
<xsl:value-of select="@name"/>
|
27
|
</a>
|
28
|
</td>
|
29
|
<td class="text-right">
|
30
|
<xsl:value-of select="@size"/>
|
31
|
</td>
|
32
|
</tr>
|
33
|
</xsl:for-each>
|
34
|
</table>
|
35
|
</div>
|
36
|
</xsl:for-each>
|
37
|
|
38
|
</xsl:template>
|
39
|
</xsl:stylesheet>
|