Skip to content
Snippets Groups Projects
Commit 25c379a0 authored by florian's avatar florian
Browse files

ENH: Set classes and attributes in xslt depending on build variable

parent 86b95096
No related branches found
No related tags found
2 merge requests!89Release v0.10.0,!86F hide properties
...@@ -66,6 +66,14 @@ ...@@ -66,6 +66,14 @@
<xsl:call-template name="caosdb-head-js" /> <xsl:call-template name="caosdb-head-js" />
</head> </head>
<body data-hidden-properties="false"> <body data-hidden-properties="false">
<xsl:choose>
<xsl:when test="'${BUILD_MODULE_EXT_PROPERTY_DISPLAY}'='ENABLED'">
<xsl:attribute name="data-hidden-properties">true</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="data-hidden-properties">false</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:attribute name="data-response-count"> <xsl:attribute name="data-response-count">
<xsl:value-of select="/Response/@count"/> <xsl:value-of select="/Response/@count"/>
</xsl:attribute> </xsl:attribute>
......
...@@ -232,8 +232,15 @@ ...@@ -232,8 +232,15 @@
</xsl:template> </xsl:template>
<!-- PROPERTIES --> <!-- PROPERTIES -->
<xsl:template match="Property" mode="entity-body"> <xsl:template match="Property" mode="entity-body">
<!-- all properties are now hidden by default --> <li>
<li class="list-group-item caosdb-v-property-row caosdb-f-entity-property caosdb-v-hidden-property"> <xsl:choose>
<xsl:when test="'${BUILD_MODULE_EXT_PROPERTY_DISPLAY}'='ENABLED'">
<xsl:attribute name="class">list-group-item caosdb-v-property-row caosdb-f-entity-property caosdb-v-hidden-property</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="class">list-group-item caosdb-v-property-row caosdb-f-entity-property</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:attribute name="id"> <xsl:attribute name="id">
<xsl:value-of select="generate-id()"/> <xsl:value-of select="generate-id()"/>
</xsl:attribute> </xsl:attribute>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment