Put input inside label for notifications checkbox (#LEMONDAP-925)

This commit is contained in:
Clément Oudot 2016-02-04 12:58:23 +00:00
parent 8b4c26df6f
commit e4f66952b3

View File

@ -15,13 +15,13 @@
<xsl:for-each select="check">
<xsl:variable name="sublevel" select="position()"/>
<p class="notifCheck">
<xsl:element name="input">
<xsl:attribute name="type">checkbox</xsl:attribute>
<xsl:attribute name="name">check<xsl:value-of select="$start"/>x<xsl:value-of select="$level"/>x<xsl:value-of select="$sublevel"/></xsl:attribute>
<xsl:attribute name="id">check<xsl:value-of select="$start"/>x<xsl:value-of select="$level"/>x<xsl:value-of select="$sublevel"/></xsl:attribute>
</xsl:element>
<xsl:element name="label">
<xsl:attribute name="for">check<xsl:value-of select="$start"/>x<xsl:value-of select="$level"/>x<xsl:value-of select="$sublevel"/></xsl:attribute>
<xsl:element name="input">
<xsl:attribute name="type">checkbox</xsl:attribute>
<xsl:attribute name="name">check<xsl:value-of select="$start"/>x<xsl:value-of select="$level"/>x<xsl:value-of select="$sublevel"/></xsl:attribute>
<xsl:attribute name="id">check<xsl:value-of select="$start"/>x<xsl:value-of select="$level"/>x<xsl:value-of select="$sublevel"/></xsl:attribute>
</xsl:element>
<xsl:value-of select="."/>
</xsl:element>
</p>