Skip to content

Commit

Permalink
Refactoring button.btn-edit markup again
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Sep 5, 2024
1 parent 3546487 commit a5eee5a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ exclude-result-prefixes="#all"
<xsl:message>ldh:BlockRendered</xsl:message>

<!-- insert "Edit" button if the agent has acl:Write access -->
<!--
<xsl:for-each select=".//div[contains-token(@class, 'main')]">
<xsl:if test="not(button[contains-token(@class, 'btn-edit')])">
<xsl:result-document href="?." method="ixsl:replace-content">
Expand All @@ -324,6 +325,7 @@ exclude-result-prefixes="#all"
</xsl:result-document>
</xsl:if>
</xsl:for-each>
-->
</xsl:template>

<!-- EVENT LISTENERS -->
Expand Down Expand Up @@ -577,9 +579,11 @@ exclude-result-prefixes="#all"

<xsl:for-each select="$container/div[contains-token(@class, 'main')]">
<xsl:result-document href="?." method="ixsl:replace-content">
<!--
<button type="button" class="btn btn-edit pull-right">
<xsl:apply-templates select="key('resources', '&ac;EditMode', document(ac:document-uri('&ac;')))" mode="ac:label"/>
</button>
-->

<xsl:copy-of select="$content-value"/>
</xsl:result-document>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,13 @@ extension-element-prefixes="ixsl"
<xsl:attribute name="draggable" select="'false'"/>
</xsl:if>

<button type="button" class="btn btn-edit pull-right">Edit</button>
<div class="row-fluid" style="position: relative; top: 30px; margin-top: -30px; z-index: 1;">
<div class="span12">
<button type="button" class="btn btn-edit pull-right">
<xsl:apply-templates select="key('resources', '&ac;EditMode', document(ac:document-uri('&ac;')))" mode="ac:label"/>
</button>
</div>
</div>

<xsl:apply-templates select="." mode="bs2:Left"/>

Expand Down Expand Up @@ -542,8 +548,14 @@ extension-element-prefixes="ixsl"
<xsl:attribute name="draggable" select="'false'"/>
</xsl:if>

<button type="button" class="btn btn-edit pull-right">Edit</button>

<div class="row-fluid" style="position: relative; top: 30px; margin-top: -30px; z-index: 1;">
<div class="span12">
<button type="button" class="btn btn-edit pull-right">
<xsl:apply-templates select="key('resources', '&ac;EditMode', document(ac:document-uri('&ac;')))" mode="ac:label"/>
</button>
</div>
</div>

<div>
<xsl:if test="$left-class">
<xsl:attribute name="class" select="$left-class"/>
Expand Down

0 comments on commit a5eee5a

Please sign in to comment.